R01UH0823EJ0100 Rev.1.00
Page 1580 of 1823
Jul 31, 2019
RX23W Group
44. 12-Bit A/D Converter (S12ADE)
Flush-left format (A/D-converted value addition mode and 1-time to 4-time conversion selected)
Set bits 15 to 2 to the upper-side comparison level for comparison with the A/D-converted value of the same
channel. Write 0 to bits 1 and 0.
Flush-left format (A/D-converted value addition mode and 16-time conversion selected)
Set bits 15 to 0 to the upper-side comparison level for comparison with the A/D-converted value of the same
channel.
When A/D-converted addition mode is selected, set the value added by the A/D-converted value of the same channel.
The number of A/D conversions can be set to 1, 2, 3, 4, or 16 times. If A/D-converted addition mode is selected, when
the A/D conversion count is set to 1 to 4 times, set the number of conversion accuracy bits extended by 2 bits in the
ADWINULB register; when the A/D conversion count is set to 16 times, set the number of conversion accuracy bits
extended by 4 bits in the ADWINULB register.
Even if A/D converted value addition mode is selected, set the reference data in the A/D data register according to the
settings of the A/D data register format select bits.
44.2.35
A/D Compare Function Window B Channel Status Register (ADCMPBSR)
The ADCMPBSR register stores the comparison result of the compare window B function.
CMPSTB Flag (Compare Window B Flag)
This flag is a status flag that indicates the results of comparison for the channels (AN000 to AN007, AN016 to AN020,
AN027, temperature sensor, and internal reference voltage) to which the window B comparison conditions are applied.
When the comparison condition set by ADCMPBNSR.CMPCHB[5:0] bits is met at the end of A/D conversion, this flag
is set to 1.
Writing 1 to the CMPSTB flag is disabled.
[Setting condition]
The condition set by ADCMPBNSR.CMPLB bit is met when ADCMPCR.CMPAE = 1
[Clearing condition]
0 is written after reading 1
Address(es): S12AD.ADCMPBSR 0008 90ACh
b7
b6
b5
b4
b3
b2
b1
b0
—
—
—
—
—
—
—
CMPST
B
Value after reset:
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b0
Compare Window B Flag
0: Comparison conditions are not met.
1: Comparison conditions are met.
R/W
b7 to b1
—
Reserved
These bits are read as 0. The write value should be 0.
R/W