Below is a list of API functions output by the Code Generator for comparator/programmable gain amplifier use.
Table 3.29 API Functions: [Comparator/ProgrammableGainAmplifier]
| API Function Name | Function | 
| Performs initialization necessary to control the comparator/programmable gain amplifier. | |
| Halts the clock supplied to the comparator/programmable gain amplifier. | |
| Performs user-defined initialization relating to the comparator/programmable gain amplifier. | |
| Performs processing in response to the comparator interrupt INTCMPn. | |
| Begins comparison of reference input voltage and analog input voltage. | |
| Stops comparison of reference input voltage and analog input voltage. | |
| Starts the operation of programmable gain amplifier. | |
| Ends the operation of programmable gain amplifier. | |
| Supplies the clock to the 6-phase PWM option. In addition, sets the operation mode of the 6-phase PWM option. | |
| Halts the clock supplied to the 6-phase PWM option. |