R01UH0822EJ0100 Rev.1.00
Page 834 of 1041
Jul 31, 2019
RX13T Group
26. 12-Bit A/D Converter (S12ADF)
26.2.16
A/D Group Scan Priority Control Register (ADGSPCR)
Note 1. When the PGS bit is to be set to 1, the ADCSR.ADCS[1:0] bits must be set to 01b (group scan mode). If the bits are set to any
other values, proper operation is not guaranteed.
Note 2. When the GBRSCN bit is to be set to 1, the frequency ratio of peripheral module clock PCLK to A/D conversion clock ADCLK
should be set to 1:1.
Note 3. When the GBRP bit has been set to 1, single scan is performed continuously for the lowest-priority group regardless of the
setting of the GBRSCN bit.
ADGSPCR is used to discontinue scanning of the low-priority group and make settings for priority control of scanning
for the priority group in group scan mode.
For the settings on group priority operation, see
and
.
PGS Bit (Group Priority Control Setting)
This bit sets the priority of operation in group scan mode. Set this bit to 1 when giving priority to operation on the group.
When the PGS bit is to be set to 1, the ADCSR.ADCS[1:0] bits must be set to 01b (group scan mode).
During group priority operation, a trigger to start scanning for the priority group is accepted during scan for the low-
priority group, and scan for the priority group is started after scan for the low-priority group was discontinued. The
priority order is group A > group B > group C.
When a trigger to start scanning for group B is accepted during scan for group C, group C scan is discontinued, and scan
for group B is started. When a trigger to start scanning for group A is accepted during scan for group C, group C scan is
discontinued, and scan for group A is started.
Likewise, when a trigger to start scanning for group A is accepted during scan for group B, group B scan is discontinued
and scan for group A is started.
When setting the PGS bit to 0, clearing should be performed by software according to
. When setting the PGS bit to 1, follow the procedure described in
Operation under Group Priority Control
.
Address(es): S12AD.ADGSPCR 0008 9080h
b15
b14
b13
b12
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
GBRP LGRRS
—
—
—
—
—
—
—
—
—
—
—
—
GBRSC
N
PGS
Value after reset:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b0
Group Priority Control
Setting*
0: Operation is without group priority control
1: Operation is with group priority control
R/W
b1
Low-Priority Group
Restart Setting*
(Enabled only when PGS = 1. Reserved when PGS = 0.)
0: Scanning for the group is not restarted after having been
discontinued due to group priority control.
1: Scanning for the group is restarted after having been discontinued
due to group priority control.
R/W
b13 to b2
—
Reserved
These bits are read as 0. The write value should be 0.
R/W
b14
Restart Channel Select
(Enabled when PGS = 1 and GBRSCN = 1. Reserved when PGS = 0
or GBRSCN = 0.)
0: Scanning is restarted from the scan start channel.
1: Scanning is restarted from the channel on which A/D conversion is
not completed.
R/W
b15
Single Scan Continuous
Start*
(Enabled only when PGS = 1. Reserved when PGS = 0.)
0: Single scan is not continuously activated.
1: Single scan for the lowest-priority group is continuously activated.
R/W