Everything

Usage example

Perform Operational amplifer output by using analog switch.

 

[GUI setting example]

operational amplifier&Analog switch

AMPANSW

Used

OPAMP

Used

Opeartional amplifer operation setting

Used

Use operational amplifer 0

Used

Use operational amplifer 1

Used

Use operational amplifer 2

Used

OPAMP0/OPAMP1 reference current circuit setting

Stop

 

 

 

OPAMP0/OPAMP1 operation mode setting

Low-power mode

 

 

 

OPAMP2 operation mode setting

Low-power mode

 

 

 

ELC trigger setting

Operational amplifer 0: operational amplifer ELC trigger 0

Operational amplifer 1: operational amplifer ELC trigger 1

Operational amplifer 2: operational amplifer ELC trigger 2

 

 

 

Activation/stop trigger control setting

Softwaretrigger  mode

 

 

ANSW

 

Used

 

 

 

Analog switch operation setting

Used

 

 

 

Enable analog multiplexer MUX00

Used

 

 

 

Enable analog multiplexer MUX01

Used

 

 

 

Enable analog multiplexer MUX02

Used

 

 

 

Enable analog multiplexer MUX03

Used

 

 

 

Enable analog multiplexer MUX10

Unused

 

 

 

Enable analog multiplexer MUX11

Unused

 

 

 

Enable analog multiplexer MUX12

Unused

 

 

 

Enable analog multiplexer MUX13

Unused

 

 

 

Enable low-resistance switch 0

Unused

 

 

 

Enable low-resistance switch 1

Unused

 

 

 

Enable low-resistance switch 2

Unused

 

 

 

[API setting example]

r_cg_main.c

void main(void)

{

       R_MAIN_UserInit();

       /* Start user code. Do not edit comment generated here */

       /* Start charge pump 0 */

       R_ANSW_ChargePump0_On();

 

       /* Start the operational amplifier 0 */

       R_OPAMP0_Start();

 

       while (1U)

       {

              ;

       }

       /* End user code. Do not edit comment generated here */

}