
M0A21/M0A23 Series
May 06, 2022
Page
726
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
mode is selected, user can choose 1 positive input sources of each comparator and connect these two
inputs together outside the chip.
If ACMPS0 outputs high and ACMPS1 outputs low, it means the voltage source is in the range of lower
bound and upper bound, which are called as the voltage source is in the window. Otherwise, the voltage
source is outside the window.
ACMP0
ACMP1
Analog macro
Voltage of
lower bound
ACMPS1
ACMPS0
ACMPWO
Voltage
source
Voltage of
upper bound
Figure 6.21-7 Example of Window Compare Mode
The comparator window output (ACMPWO) can be shown in ACMP_STATUS[16] and the truth table of
window compare logic are shown in Table 6.21-1.
ACMPS0
ACMPS1
ACMPWO
0
0
0
0
1
1
1
1
0
1
0
1
Table 6.21-1 Truth Table of Window Compare Logic