Renesas Electronics
Below is a list of API functions output by the Code Generator for comparator use.
Table 3.27
API Functions: [Comparator]
API Function Name
Function
R_COMP_Create
Performs initialization necessary to control the comparator.
R_COMP_Create_UserInit
Performs user-defined initialization relating to the comparator.
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_COMP_Reset
Reset the comparator.
R_COMP_Set_PowerOff
Halts the clock supplied to the comparator.