
ML51/ML54/ML56
Sep. 01, 2020
Page
223
of 719
Rev 2.00
ML
51
/ML
54
/ML
5
6 S
E
RI
E
S
TECHNI
CA
L
RE
F
E
R
E
NC
E
M
A
NU
A
L
ML51/M
L54
/M
L56
Series
Tec
hnical Reference
Manual
ACMPCR1
– Analog Comparator Control Register 1
Register
SFR Address
Reset Value
ACMPCR1
D3H, Page 0
0000_0000 b
7
6
5
4
3
2
1
0
POSSEL
NEGSEL
WKEN
HYSEN
ACMPIE
ACMPEN
R/W
R/W
R/W
R/W
R/W
R/W
Bit
Name
Description
[7:6]
POSSEL
Comparator 1 Positive Input Selection
00 = ACMP1_P0 (P2.5) pin.
01 = ACMP1_P1 (P2.3) pin.
10 = ACMP1_P2 (P2.1) pin.
11 = ACMP1_P3 (P3.0) pin.
[5:4]
NEGSEL
Comparator 1 Negative Input Selection
00 = ACMP1_N0 (P2.2) pin.
01 = Internal comparator reference voltage (CRV).
10 = VBG (Band-gap).
11 = ACMP1_N1 (P3.1)pin.
[3]
WKEN
Comparator 1 Power-Down Wake-Up Enable Bit
0 = Comparator 1 Wake-up function Disabled.
1 = Comparator 1 Wake-up function Enabled.
[2]
HYSEN
Comparator 1 Hysteresis Enable Bit
0 = Comparator 1 hysteresis Disabled.
1 = Comparator 1 hysteresis Enabled.
[1]
ACMPIE
Comparator 1 Interrupt Enable Bit
0 = Comparator 1 interrupt Disabled.
1 = Comparator 1 interrupt Enabled. If WKEN (ACMPCR2[3]) is set to 1, the wake-up interrupt
function will be enabled as well.
[0]
ACMPEN
Comparator 1 Enable Bit
0 = Comparator 1 Disabled.
1 = Comparator 1 Enabled.