Everything

Usage example

Use Operational amplifer for Comparator as + side input.

 

[GUI setting example]

Operational amplifer

OPAMP

Used

Operational amplifer operation setting

Used

Use operational amplifer 0

Used

Use operational amplifer 1

Unused

Use operational amplifer 2

Unused

Use operational amplifer 3

Unused

Reference current circuit setting

Stop

 

 

 

Operation mode setting

Low-power mode

 

 

 

ELC trigger setting

Operational amplifer 0: Opeartional amplifer ELC trigger 0

Operational amplifer 1: Opeartional amplifer ELC trigger 1

Operational amplifer 2: Opeartional amplifer ELC trigger 2

Operational amplifer 3: Opeartional amplifer ELC trigger 3

 

 

Operational Amplifier 0

Used

 

 

 

Activation/stop trigger control setting

Software trigger mode

 

Comparator

COMP

Used

Operation setting

Use only comparator 0 (Comparator input:AMP0O)

Speed setting

Low speed

Comparator 0

Used

Comparator0 Mode setting

Normal

Comparator0 Edge setting

Rising edge

Comparator0 Digital filter setting

Unused

 

 

 

Comparator0 Enable output (VCOUT0)

Unused

 

 

 

Comparator0 Use comparator 0 interrupt (INTCMP0)

Used

 

 

 

Comparator0 Priority

Low

 

 

 

[API setting example]

r_cg_main.c

void main(void)

{

       R_MAIN_UserInit();

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

       /* Start the operational amplifier 0 */

       R_OPAMP0_Start();

 

       /* Start the comparator 0 */

       R_COMP0_Start();

 

       while (1U)

       {

              ;

       }

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

}