
ML51/ML54/ML56
Sep. 01, 2020
Page
222
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
ACMPCR0
– Analog Comparator Control Register 0
Register
SFR Address
Reset Value
ACMPCR0
D2H, 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 0 Positive Input Selection
00 = ACMP0_P0 (P2.5) pin.
01 = ACMP0_P1 (P2.3) pin.
10 = ACMP0_P2 (P2.1) pin.
11 = ACMP0_P3 (P3.0) pin.
[5:4]
NEGSEL
Comparator 0 Negative Input Selection
00 = ACMP0_N0 (P2.4) pin.
01 = Internal comparator reference voltage (CRV).
10 = VBG (Band-gap).
11 = ACMP0_N1 (P2.0)pin.
[3]
WKEN
Comparator 0 Power-Down Wake-Up Enable Bit
0 = Comparator 0 Wake-up function Disabled.
1 = Comparator 0 Wake-up function Enabled.
[2]
HYSEN
Comparator 0 Hysteresis Enable Bit
0 = Comparator 0 hysteresis Disabled.
1 = Comparator 0 hysteresis Enabled.
[1]
ACMPIE
Comparator 0 Interrupt Enable Bit
0 = Comparator 0 interrupt Disabled.
1 = Comparator 0 interrupt Enabled. If WKEN (ACMPCR1[3]) is set to 1, the wake-up interrupt
function will be enabled as well.
[0]
ACMPEN
Comparator 0 Enable Bit
0 = Comparator 0 Disabled.
1 = Comparator 0 Enabled.