R01UH0823EJ0100 Rev.1.00
Page 1574 of 1823
Jul 31, 2019
RX23W Group
44. 12-Bit A/D Converter (S12ADE)
44.2.31
A/D Compare Function Window A/B Status Monitor Register (ADWINMON)
The ADWINMON register can monitor the comparison result and the combination result.
MONCOMB Flag (Combination Result Monitor Flag)
This read-only flag indicates the result in combination of comparison condition result A and comparison result condition
B with the combination condition set by the ADCMPCR.CMPAB[1:0] bits.
[Setting condition]
The combined result meets the combination condition set by the ADCMPCR.CMPAB[1:0] bits when
ADCMPCR.CMPAE = 1 and ADCMPCR.CMPBE = 1.
[Clearing conditions]
The combined result does not meet the combination condition set by the ADCMPCR.CMPAB[1:0] bits.
ADCMPCR.CMPAE = 0 or ADCMPCR.CMPBE = 0.
MONCMPA Flag (Comparison Result Monitor A Flag)
This read-only flag is read as 1 when the A/D-converted value of the window A target channel meets the condition set in
the ADCMPLR0, ADCMPLR1, and ADCMPLER registers, and is read as 0 otherwise.
[Setting condition]
The A/D-converted value meets the condition set by the ADCMPLR0.CMPLCHA0n bit when
ADCMPCR.CMPAE = 1.
[Clearing conditions]
The A/D-converted value does not meet the condition set by the ADCMPLR0.CMPLCHA0n bit when
ADCMPCR.CMPAE = 1.
ADCMPCR.CMPAE = 0 (Automatically cleared when the ADCMPCR.CMPAE bit value changes from 1 to 0.)
MONCMPB Flag (Comparison Result Monitor B Flag)
This read-only flag is read as 1 when the A/D converted value of the window B target channel meets the condition set by
the ADCMPBNSR.CMPLB bit, and is read as 0 in other cases.
[Setting condition]
The A/D-converted value meets the condition set by ADCMPBNSR.CMPLB bit when ADCMPCR.CMPBE = 1.
Address(es): S12AD.ADWINMON 0008 908Ch
b7
b6
b5
b4
b3
b2
b1
b0
—
—
MONC
MPB
MONC
MPA
—
—
—
MONC
OMB
Value after reset:
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b0
Combination Result Monitor
Flag
This flag indicates the combination result.
This flag is valid when both window A operation and window B
operation are enabled.
0: Window A/window B composite conditions are not met.
1: Window A/window B composite conditions are met.
R
b3 to b1
—
Reserved
These bits are read as 0. The write value should be 0.
R
b4
Comparison Result Monitor A
Flag
0: Window A comparison conditions are not met.
1: Window A comparison conditions are met.
R
b5
Comparison Result Monitor B
Flag
0: Window B comparison conditions are not met.
1: Window B comparison conditions are met.
R
b7, b6
—
Reserved
These bits are read as 0.
R