Download RL78 Design - Renesas Electronics

Transcript
CubeSuite+ V2.01.00
C.2.18
APPENDIX C API FUNCTIONS
A/D converter
Below is a list of API functions output by the Code Generator for A/D converter use.
Table C-18. 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_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).
R20UT2684EJ0100 Rev.1.00
Sep 01, 2013
Page 261 of 480