R01UH0823EJ0100 Rev.1.00
Page 1571 of 1823
Jul 31, 2019
RX23W Group
44. 12-Bit A/D Converter (S12ADE)
44.2.28
A/D Compare Function Window A Channel Status Register 1 (ADCMPSR1)
The ADCMPSR1 register stores the comparison results of the compare window A function.
CMPSTCHA1n Flag (n = 00 to 04, 11) (Compare Window A Flag)
This flag is comparison result status flag of channel (AN016 to AN020, AN027) to which window A comparison
conditions are applied. When the comparison condition set by ADCMPLR1.CMPLCHA1n is met at the end of A/D
conversion, each of these flags is set to 1. The CMPSTCHA100 bit corresponds to AN016, the CMPSTCHA104 bit
corresponds to AN020, and the CMPSTCHA111 bit corresponds to AN027.
Writing 1 to the CMPSTCHA1n flag (n = 00 to 04, 11) is disabled.
[Setting condition]
The condition set by ADCMPLR1.CMPLCHA1n is met when ADCMPCR.CMPAE = 1
[Clearing condition]
0 is written after reading 1
Address(es): S12AD.ADCMPSR1 0008 90A2h
b15
b14
b13
b12
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
—
—
—
—
CMPST
CHA111
—
—
—
—
—
—
CMPST
CHA104
CMPST
CHA103
CMPST
CHA102
CMPST
CHA101
CMPST
CHA100
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
Compare Window A Flag
When window A operation is enabled (ADCMPCR.CMPAE = 1),
these flags indicate the comparison result of channels (AN016
to AN020) to which window A comparison conditions are
applied.
0: Comparison conditions are not met.
1: Comparison conditions are met.
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
Compare Window A Flag
When window A operation is enabled (ADCMPCR.CMPAE = 1),
this flag indicates the comparison result of channel (AN027) to
which window A comparison condition is applied.
0: Comparison conditions are not met.
1: Comparison conditions are met.
R/W
b15 to b12
—
Reserved
These bits are read as 0. The write value should be 0.
R/W