13.4 CMP0 Control Registers
13.4.1 CMP0CN0: Comparator 0 Control 0
Bit
7
6
5
4
3
2
1
0
Name
CPEN
CPOUT
CPRIF
CPFIF
CPHYP
CPHYN
Access
RW
R
RW
RW
RW
RW
Reset
0
0
0
0
0x0
0x0
SFR Page = 0x0, 0x10; SFR Address: 0x9B
Bit
Name
Reset
Access Description
7
CPEN
0
RW
Comparator Enable.
Value
Name
Description
0
DISABLED
Comparator disabled.
1
ENABLED
Comparator enabled.
6
CPOUT
0
R
Comparator Output State Flag.
Value
Name
Description
0
POS_LESS_THAN_NE
G
Voltage on CP0P < CP0N.
1
POS_GREAT-
ER_THAN_NEG
Voltage on CP0P > CP0N.
5
CPRIF
0
RW
Comparator Rising-Edge Flag.
Must be cleared by firmware.
Value
Name
Description
0
NOT_SET
No comparator rising edge has occurred since this flag was last
cleared.
1
RISING_EDGE
Comparator rising edge has occurred.
4
CPFIF
0
RW
Comparator Falling-Edge Flag.
Must be cleared by firmware.
Value
Name
Description
0
NOT_SET
No comparator falling edge has occurred since this flag was last
cleared.
1
FALLING_EDGE
Comparator falling edge has occurred.
3:2
CPHYP
0x0
RW
Comparator Positive Hysteresis Control.
Value
Name
Description
0x0
DISABLED
Positive Hysteresis disabled.
0x1
ENABLED_MODE1
Positive Hysteresis = Hysteresis 1.
0x2
ENABLED_MODE2
Positive Hysteresis = Hysteresis 2.
0x3
ENABLED_MODE3
Positive Hysteresis = Hysteresis 3 (Maximum).
EFM8UB3 Reference Manual
Comparators (CMP0 and CMP1)
silabs.com
| Building a more connected world.
Rev. 0.2 | 155