796
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
COMP5, and COMP6 share one interrupt entry, , COMP7 has one interrupt entry exclusively. There are two cases of
interrupt generation as follows.
The polarity of COMPx_CTRL.POL is not reversed, and the interrupt is enabled. When INPSEL > INMSEL,
the comparator interrupt will be generated when COMPx_CTRL.OUT is set to 1 by hardware.
The polarity of COMPx_CTRL.POL is reversed, and the interrupt is enabled. When INPSEL < INMSEL, the
comparator interrupt is generated when COMPx_CTRL.OUT is set to 1 by hardware.
COMP register
26.7.1
COMP register overview
Table 26-1 COMP register overview
Offset
Register
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
010h
COMP1_CTRL
R
es
er
ve
d
INPDAC
OUT
B
L
KI
NG
[2:0]
HY
S
T
[1:0]
P
OL
OU
T
S
E
L
[3:0]
INPS
E
L
[2:0]
INM
S
E
L
[2
:0
]
EN
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
014h
COMP1_FILC
R
es
er
ve
d
S
AM
P
W
[4:0]
T
HR
E
S
H[
4:0]
F
IL
E
N
Reset Value
0
0
0
0
0
0
0
0
0
0
0
018h
COMP1_FILP
Reserved
CLKPSC[15:0]
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
01Ch
Reserved
020h
COMP2_CTRL
R
es
er
ve
d
INPDAC
OUT
B
L
KI
NG
[2:0]
HY
S
T
[1:0]
P
OL
OU
T
S
E
L
[3:0]
INPS
E
L
[2:0]
INM
S
E
L
[2:0
]
EN
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
024h
COMP2_FILC
R
es
er
ve
d
S
AM
P
W
[4:0]
T
HR
E
S
H[
4:0]
F
IL
E
N
Reset Value
0
0
0
0
0
0
0
0
0
0
0
028h
COMP2_FILP
Reserved
CLKPSC[15:0]
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
02Ch
Reserved
030h
COMP3_CTRL
R
es
er
ve
d
INPDAC
OUT
B
L
KI
NG
[2:0]
HY
S
T
[1:0]
P
OL
OU
T
S
E
L
[3:0]
INPS
E
L
[2:0]
INM
S
E
L
[2:0
]
EN
Reset Value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
034h
COMP3_FILC
R
es
er
ve
d
S
AM
P
W
[4:0]
T
HR
E
S
H[
4:0]
F
IL
E
N
Reset Value
0
0
0
0
0
0
0
0
0
0
0