
NUC126
Aug. 08, 2018
Page
252
of 943
Rev 1.03
NUC12
6 S
E
RI
E
S
T
E
CH
NI
CA
L R
E
F
E
RE
NCE
MA
NUA
L
0
1
4R
R
INT_VREF
CRVSSEL
(ACMP_VREF[6])
R
R
R
R
4R
0000
0001
0010
1111
1110
1101
AV
DD
CRVCTL
(ACMP_VREF[3:0])
CRV output
...
...
Figure 6.5-6 Comparator Reference Voltage Block Diagram
6.5.5.6
Window Compare Mode
The NUC126 comparator provides window compare mode. When window compare mode is enabled
by setting WCMPSEL (ACMP_CTL0/1[18]) to 1, user can monitor a specific analog voltage source with
a designated range. User can connect the specific analog voltage source to either the positive inputs
of both comparators or the negative inputs of both comparators. The upper bound and lower bound of
the designated range are determined by the voltages applied to the other inputs of both comparators.
If the output of a comparator is low and the other comparator outputs high, which means two
comparators implies the upper and lower bound. User can directly monitor a specific analog voltage
source via ACMPWO (ACMP_STATUS[16]). If ACMPWO is high, it implies a specific analog voltage
source is in the range of upper and lower bound, which are called as the analog voltage is in the
window.
Figure 6.5-7 illustrates a example connection of window compare mode. In this example, once window
compare mode is selected, user can choose one of four positive input sources of each comparator and
connect these two inputs together outside the chip.