3.2.28 Comparator/ProgrammableGainAmplifier

Below is a list of API functions output by the Code Generator for comparator/programmable gain amplifier use.

Table 3.28

API Functions: [Comparator/ProgrammableGainAmplifier]

API Function Name

Function

R_COMPPGA_Create

Performs initialization necessary to control the comparator/programmable gain amplifier.

R_COMPPGA_Set_PowerOff

Halts the clock supplied to the comparator/programmable gain amplifier.

R_COMPPGA_Create_UserInit

Performs user-defined initialization relating to the comparator/programmable gain amplifier.

r_compn_interrupt

Performs processing in response to the comparator interrupt INTCMPn.

R_COMPn_Start

Begins comparison of reference input voltage and analog input voltage.

R_COMPn_Stop

Stops comparison of reference input voltage and analog input voltage.

R_PGA_Start

Starts the operation of programmable gain amplifier.

R_PGA_Stop

Ends the operation of programmable gain amplifier.

R_PWMOPT_Start

Supplies the clock to the 6-phase PWM option.

In addition, sets the operation mode of the 6-phase PWM option.

R_PWMOPT_Stop

Halts the clock supplied to the 6-phase PWM option.