RX Family ADC Module Using Firmware Integration Technology
R01AN1666EJ0220 Rev. 2.20 Page 65 of 74
Dec 01, 2016
Special Notes (RX Family Common):
When the A/D conversion start (ADST) bit is 1, settings such as mode must not be changed using this function.
However, the conversion status or the comparison result can be obtained.
When switching channels used for A/D conversion or settings, call the R_ADC_Close() function once and then call the
R_ADC_Open() function again to start.
When waiting completion of A/D conversion using the R_ADC_Control function, use the following commands.
A/D Conversion Channel Settings
Commands for the R_ADC_Control Function
Mode
A/D conversion
start trigger
Interrupt Starts A/D conversion
Waits completion of A/D
conversion
Single scan
Software trigger ADC_CMD_SCAN_NOW
Other than
software trigger
Disabled ADC_CMD_ENABLE_TRIG
ADC_CMD_CHECK_SCAN_
DONE_GROUPA
(1)
Continuous
scan
Software trigger Disabled ADC_CMD_SCAN_NOW
ADC_CMD_CHECK_SCAN_
DONE_GROUPA
(1)
Other than
software trigger
Disabled ADC_CMD_ENABLE_TRIG
ADC_CMD_CHECK_SCAN_
DONE_GROUPA
(1)
Group scan
Other than
software trigger
Disabled ADC_CMD_ENABLE_TRIG
DONE_GROUPA
(1)
ADC_CMD_CHECK_SCAN_
DONE_GROUPB
(2)
ADC_CMD_CHECK_SCAN_
(3)
Note 1. In RX63x, ADC_CMD_CHECK_SCAN_DONE_GROUPA cannot be used. Please check the
interrupt request flag directly for completion of A/D conversion.
Note 2. Use ADC_CMD_CHECK_SCAN_DONE_GROUPB when waiting completion of A/D conversion for
Group B.
Note 3. ADC_CMD_CHECK_SCAN_DONE_GROUPC can be used only with RX65x.
When A/D conversion interrupts are enabled, the R_ADC_Control function cannot be used to wait completion of A/D
conversion except when using single scan mode with software trigger. Use the callback function for the A/D conversion
interrupt to wait completion of A/D conversion.
Special Notes (RX64M/RX71M/RX65x):
This function does not support operation under Group A Priority Control.
Channels and sensors can be combined in the same scan.
ELC is only for S12ADI, not S12GBADI or S12CMPI. (RX64M/RX71M)
ELC is only for S12ADI, not GBADI, GCADI, S12CMPAI or S12CMPBI. (RX65x)
Channel masks are checked against the pin package specified by the equate
BSP_CFG_MCU_PART_PACKAGE in r_bsp_config.h for available A/D channels.
The application should wait 30us after configuring the scan, before enabling the trigger for Temperature Sensor for best
results.
If Group A Priority is selected such that Group B operates in continuous scan mode, it is recommended not to use the
S12GBADI interrupt (RX64M/RX71M) and GBADI interrupt (RX65x). That causes the majority of the processing
time to be spent at the interrupt level.
Enabling the comparator should be done prior to enabling the triggers.