R01UH0822EJ0100 Rev.1.00
Page 842 of 1041
Jul 31, 2019
RX13T Group
26. 12-Bit A/D Converter (S12ADF)
26.3.2.4
Channel Selection and Self-Diagnosis (With Channel-Dedicated Sample-and-
Hold Circuits)
When channels and self-diagnosis are selected and a channel-dedicated sample-and-hold circuit is used, sample-and-hold
operations are performed first, and A/D conversion is performed once for the reference voltage supplied to the 12-bit
A/D converter as below. After that, A/D conversion is performed only once on the analog input of the selected channels.
(1) Analog input sampling of all channels for which the channel-dedicated sample-and-hold circuits are to be used is
started when the ADCSR.ADST bit is set to 1 (A/D conversion start) by software, or synchronous or asynchronous
trigger input.
(2) A/D conversion for self-diagnosis is started after completion of sampling and holding.
(3) When A/D conversion for self-diagnosis is completed, A/D conversion result is stored into the A/D self-diagnosis
data register (ADRD), and A/D conversion is performed for ANn channels selected by the ADANSA0 register,
starting from the channel with the smallest number n.
(4) Each time A/D conversion of a single channel is completed, the A/D conversion result is stored into the
corresponding A/D data register (ADDRy).
(5) When A/D conversion of all the selected channels is completed, a scan end interrupt request is generated if the
ADCSR.ADIE bit is 1 (interrupt upon scanning completion enabled).
(6) The ADCSR.ADST bit remains 1 (A/D conversion start) during A/D conversion, and is automatically cleared to 0
when A/D conversion of all the selected channels is completed. Then the 12-bit A/D converter enters a wait state.
Figure 26.5
Example of Operation in Single Scan Mode
(Channel-Dedicated Sample-and-Hold Circuits Used: AN000, AN002 Se Self-Diagnosis)
Note 1. indicates the instruction is executed by software.
ADST
A/D conversion
started
Reference
voltage
(x0, x½, x1)
Waiting for conversion
Waiting for conversion
Waiting for conversion
ADRD
ADDR0
ADDR2
A/D conversion for
self-diagnosis
Set
*1
(1)
(2)
Stored
A/D conversion 1
Waiting for conversion
A/D conversion 2
Waiting for conversion
A/D conversion result 1
A/D conversion result 2
A/D conversion time
Sampling-and-holding and scanning performed once
(4)
(4)
(5)
(6)
Waiting for conversion
Interrupt generated
Stored
Stored
A/D conversion result for self-diagnosis
Sampling
Sampling
Holding
Holding
Sample-and-hold time
(3)
Scan end
interrupt
Channel 0
(AN000)
Channel 2
(AN002)