R01UH0823EJ0100 Rev.1.00
Page 1546 of 1823
Jul 31, 2019
RX23W Group
44. 12-Bit A/D Converter (S12ADE)
44.2.9
A/D-Converted Value Addition/Average Function Select Register 1 (ADADS1)
ADADS1 selects the channels 16 to 20 and 27 on which A/D conversion is performed successively 2, 3, 4, or 16 times
and then converted values are added (integrated) or averaged.
ADS1n Bit (n = 00 to 04, 11) (A/D-Converted Value Addition/Average Channel Select)
When the ADS1n bit of the number that is the same as that of A/D-converted channel selected by the
ADANSA1.ANSA1n bit (n = 00 to 04, 11) or ADCSR.DBLANS[4:0] bits and ADANSB1.ANSB1n bit (n = 00 to 04,
11) is set to 1, A/D conversion of analog input of the selected channels is performed successively 2, 3, 4, or 16 times that
is set with the ADADC.ADC[2:0] bits. When the ADADC.AVEE bit is 0, the value obtained by addition (integration) is
stored in the A/D data register. When the ADADC.AVEE bit is 1, the mean value of the results obtained by addition
(integration) is stored in the A/D data register. As for the channel on which the A/D conversion is performed and
addition/average mode is not selected, a normal one-time conversion is executed and the conversion result is stored to the
A/D data register.
The ADS1n bit should be set while the ADCSR.ADST bit is 0.
shows a scanning operation sequence in which both the ADS002 and ADS006 bits are set to 1.
It is assumed that addition mode is selected (ADADC.AVEE = 0), the addition count is set to three times
(ADADC.ADC[2:0] = 011b), and the channels AN000 to AN007 are selected (ADANSA0.ANSA0n = FFh) in
continuous scan mode (ADCSR.ADCS[1:0] = 10b). The conversion process begins with AN000. The AN002 conversion
is performed successively four times (addition three times), and the added (integrated) value is stored in A/D data
register 2. After that the AN003 conversion is started. The AN006 conversion is performed successively 4 times and the
added (integrated) value is stored in A/D data register 6. After conversion of AN007, the conversion operation is once
again performed in the same sequence from AN000.
Address(es): S12AD.ADADS1 0008 900Ah
b15
b14
b13
b12
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
—
—
—
—
ADS11
1
—
—
—
—
—
—
ADS10
4
ADS10
3
ADS10
2
ADS10
1
ADS10
0
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
A/D-Converted Value Addition/
Average Channel Select
0: A/D-converted value addition/average mode for AN016
to AN020 is not selected.
1: A/D-converted value addition/average mode for AN016
to AN020 is selected.
R/W
b1
R/W
b2
R/W
b3
R/W
b4
R/W
b10 to b5
—
Reserved
These bits are read as 0. The write value should be 0.
R/W
b11
A/D-Converted Value Addition/
Average Channel Select
0: A/D-converted value addition/average mode for AN027
is not selected.
1: A/D-converted value addition/average mode for AN027
is selected.
R/W
b15 to b12
—
Reserved
These bits are read as 0. The write value should be 0.
R/W