R01UH0822EJ0100 Rev.1.00
Page 861 of 1041
Jul 31, 2019
RX13T Group
26. 12-Bit A/D Converter (S12ADF)
Operation example 4 shows group priority operation in group scan mode (ADGSPCR.GBRSCN = 0, ADGSPCR.GBRP
= 0, ADGSPCR.LGRRS = 0) when channel 0 is selected for group A and channels 1 to 3 are selected for group B.
Operation example 4: Group A trigger input during group B scan, without rescan setting
(1) When a group B trigger input sets the ADCSR.ADST bit to 1 (A/D conversion start), scan for the ANn channels of
group B selected in the ADANSB0 register, starts from the channel with the smallest number n.
(2) On completion of A/D conversion on a single channel, the result is stored in the corresponding A/D data register
(ADDRy).
(3) If a group A trigger is input during scan for group B, group B scan is discontinued while the ADCSR.ADST bit
remains 1, and scan for the ANn channels of group A selected in the ADANSA0 register, starts from the channel
with the smallest number n.
If A/D conversion is not completed when scan was discontinued, the result is not stored in the corresponding A/D
data register (ADDRy).
(4) On completion of A/D conversion on a single channel, the result is stored in the corresponding A/D data register
(ADDRy).
(5) After scan for group A is completed, a scan end interrupt request is generated if the ADCSR.ADIE bit is 1 (interrupt
generation upon scanning completion enabled).
(6) The ADST bit is automatically cleared to 0 when scan for group A is completed, and the 12-bit A/D converter enters
a wait state. Scan for group B is not started until the next group B trigger is input.
Figure 26.19
Example 4 of Group Priority Operation: Group A Trigger Input during Group B Scan, Without
Rescan Setting (ADGSPCR.GBRSCN = 0, ADGSPCR.GBRP = 0, ADGSPCR.LGRRS = 0)
ADDR1
ADDR2
ADDR3
ADDR0
Group B scanned
(Group B is activated by a group B trigger)
Waiting for conversion
Waiting for conversion
Waiting for conversion
A/D conversion B1
A/D conversion B2
A/D conversion A1
Waiting for conversion
Waiting for conversion
Waiting for conversion
A/D conversion A1
A/D conversion result B1
A/D conversion result B2
Channel 1
(AN001)
Channel 2
(AN002)
Channel 3
(AN003)
ADST
Trigger for
group B
Trigger for
group A
Group A
Group B
Channel 0
(AN000)
A/D conversion
started
(1)
A/D conversion B3
(5)
(2)
(3)
(4)
(6)
(2)
Stored
Stored
Waiting for conversion
Waiting for conversion
Stored
Scan end
interrupt
Group B Scan end
Interrupt
Group A scanned
(Group priority
operation)