
NUC126
Aug. 08, 2018
Page
255
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
6.5.7
Register Description
Analog Comparator 0 Control Register (ACMP_CTL0)
Register
Offset
R/W Description
Reset Value
ACMP_CTL0
AC0x00 R/W Analog Comparator 0 Control Register
0x0000_0000
31
30
29
28
27
26
25
24
Reserved
23
22
21
20
19
18
17
16
Reserved
WCMPSEL
WLATEN
WKEN
15
14
13
12
11
10
9
8
FILTSEL
OUTSEL
Reserved
INTPOL
7
6
5
4
3
2
1
0
POSSEL
NEGSEL
ACMPOINV
HYSEN
ACMPIE
ACMPEN
Bits
Description
[31:19]
Reserved
Reserved.
[18]
WCMPSEL
Window Compare Mode Selection
0 = Window Compare Mode Disabled.
1 = Window Compare Mode Selected.
[17]
WLATEN
Window Latch Function Enable Bit
0 = Window Latch Function Disabled.
1 = Window Latch Function Enabled.
[16]
WKEN
Power-down Wake-up Enable Bit
0 = Wake-up function Disabled.
1 = Wake-up function Enabled.
[15:13]
FILTSEL
Comparator Output Filter Count Selection
000 = Filter function Disabled.
001 = ACMP0 output is sampled 1 consecutive PCLK.
010 = ACMP0 output is sampled 2 consecutive PCLKs.
011 = ACMP0 output is sampled 4 consecutive PCLKs.
100 = ACMP0 output is sampled 8 consecutive PCLKs.
101 = ACMP0 output is sampled 16 consecutive PCLKs.
110 = ACMP0 output is sampled 32 consecutive PCLKs.
111 = ACMP0 output is sampled 64 consecutive PCLKs.
[12]
OUTSEL
Comparator Output Selection
0 = Comparator 0 output to ACMP0_O pin is unfiltered comparator output.
1 = Comparator 0 output to ACMP0_O pin is from filter output.
[11:10]
Reserved
Reserved.
[9:8]
INTPOL
Interrupt Condition Polarity Selection
ACMPIF0 will be set to 1 when comparator output edge condition is detected.