R01UH0823EJ0100 Rev.1.00
Page 1596 of 1823
Jul 31, 2019
RX23W Group
44. 12-Bit A/D Converter (S12ADE)
Figure 44.14
Example of Operations under Group-A Priority Control (1)
(when ADGSPCR.GBRSCN = 1 and ADGSPCR.GBRP = 0)
The following is an example when a group A trigger is input again during rescanning operation on group B. In this
example, channel 0 is selected for group A and channels 1 to 3 are selected for group B when operation on group A is
given priority (ADGSPCR.GBRSCN = 1, ADGSPCR.GBRP = 0).
(1) When a group B trigger input sets the ADCSR.ADST bit to 1 (A/D conversion start), conversion for the ANn
channels of group B selected in the ADANSB0 and ADANSB1 registers starts in order from the channel with the
lowest 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) The ADCSR.ADST bit is cleared to 0 (A/D conversion stop) on the input of a trigger for group A while operation
for A/D conversion in group B is in progress, and the latter is discontinued.
(4) After that, the ADCSR.ADST bit is set to 1 automatically and A/D conversion for the ANn group A channels
selected in the ADANSA0 and ADANSA1 registers starts in order from the channel with the lowest number n.
(5) On completion of A/D conversion on a single channel, the result is stored in the corresponding A/D data register
(ADDRy).
(6) An S12ADI0 interrupt request is generated if the setting of the ADCSR.ADIE bit is 1 (S12ADI0 interrupt upon
scanning completion enabled).
Channel 1
(AN001)
Waiting for conversion
Channel 2
(AN002)
Waiting for conversion
Channel 3
(AN003)
Waiting for conversion
ADDR1
ADDR2
ADDR3
A/D conversion B1
(2)
Stored
A/D conversion B2
Waiting for conversion
Waiting for conversion
*
1
A/D conversion B3
A/D conversion result B1
A/D conversion result B2
A/D conversion result B6
A/D conversion result B4
(2)
(7)
(5)
(7)
Interrupt generated
Stored
Stored
Stored
Waiting for conversion
ADST
A/D
conversion
started
Waiting for conversion
ADDR0
A/D conversion result A1
Interrupt generated
A/D conversion A1
(6)
(3)
Channel 0
(AN000)
(1)
A/D conversion B4
A/D conversion B5
Waiting for conversion
A/D conversion B6
Waiting for conversion
Waiting for conversion
A/D conversion result B5
(7)
Stored
Trigger for
group B
Trigger for
group A
Group A
Group B
Waiting for conversion
(4)
Stored
GBADI
(8)
(9)
First A/D conversion on group B
(Group B is activated by a group B
trigger.)
Second A/D conversion on group B
(Group B is automatically activated
for rescanning.)
A/D conversion
on group A
under group-A
priority control
Note 1. The converted data of A/D conversion B3 is ignored.
S12ADI0