R01UH0822EJ0100 Rev.1.00
Page 868 of 1041
Jul 31, 2019
RX13T Group
26. 12-Bit A/D Converter (S12ADF)
Figure 26.23
Example 3 of Group Priority Operation: Low-Priority Group Trigger Input during Priority Group
Scan, With Rescan Setting
(ADGSPCR.GBRSCN = 1, ADGSPCR.GBRP = 0, ADGSPCR.LGRRS = 1, ADGCTRGR.GRCE = 1)
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, channels 1 and 2 are selected for group B, and
channels 3 and 4 are selected for group C.
Operation example 4: Priority group trigger input during low-priority group scan, without rescan
setting
(1) When a group C trigger input sets the ADCSR.ADST bit to 1 (A/D conversion start), scan for the ANn channels
selected in the ADANSC0 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 B trigger is input during scan for group C, group C scan is discontinued while the ADCSR.ADST bit
remains 1, and scan for the ANn channels of group B selected in the ADANSB0 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) 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 ADANSB0 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).
(6) 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).
(12)
(9)
(5)
(6)
(3)
(2)
ADDR1
ADDR2
ADDR3
ADDR0
(1)
Group B scan end
interrupt
ADST bit
Waiting for
conversion
A/D conversion A1
Waiting for conversion
Waiting for conversion
A/D conversion B1
Waiting for conversion
Waiting for conversion
Result of A/D conversion B1
Result of A/D conversion A1
Result of A/D conversion C1
Waiting for conversion
Result of A/D conversion B2
Waiting for conversion
A/D conversion C1
Waiting for conversion
Waiting for conversion
Waiting for conversion
ADDR4
Result of A/D conversion C3
A/D conversion B2
A/D conversion C2
Trigger for group A
Trigger for group B
Trigger for group C
Group C scanned
Group B scanned
Group A scanned
Group A
Group B
Group C
Scan Started
Group C scan end
interrupt
Scan end interrupt
Stored
Stored
Stored
Stored
Stored
(7)
(7)
(4)
(8)
(10)
(10)
(11)
Channel 0 (AN000)
Channel 1 (AN001)
Channel 2 (AN002)
Channel 3 (AN003)
Channel 4 (AN004)