3.2.21 A/D converter

Below is a list of API functions output by the Code Generator for A/D converter use.

Table 3.21

API Functions: [A/D Converter]

API Function Name

Function

R_ADC_Create

Performs initialization necessary to control the A/D converter.

R_ADC_Create_UserInit

Performs user-defined initialization relating to the A/D converter.

r_adc_interrupt

Performs processing in response to the A/D conversion end interrupt INTAD.

R_ADC_Set_OperationOn

Enables operation of voltage converter.

R_ADC_Set_OperationOff

Disables operation of voltage converter.

R_ADC_Start

Starts A/D conversion.

R_ADC_Stop

Ends A/D conversion.

R_ADC_Reset

Reset A/D conversion.

R_ADC_Set_PowerOff

Halts the clock supplied to the A/D converter.

R_ADC_Set_ADChannel

Configures the analog voltage input pin for A/D conversion.

R_ADC_Set_SnoozeOn

Enables the switch from STOP mode to SNOOZE mode.

R_ADC_Set_SnoozeOff

Disables the switch from STOP mode to SNOOZE mode.

R_ADC_Set_TestChannel

Sets the operation mode of A/D converter.

R_ADC_Get_Result

Reads the results of A/D conversion (10 bits).

R_ADC_Get_Result_8bit

Reads the results of A/D conversion (8 bits; most significant 8 bits of 10-bit resolution).