Bit
Name
Reset
Access
Description
Value
Name
Description
0x0
DISABLED
Negative Hysteresis disabled.
0x1
ENABLED_MODE1
Negative Hysteresis = Hysteresis 1.
0x2
ENABLED_MODE2
Negative Hysteresis = Hysteresis 2.
0x3
ENABLED_MODE3
Negative Hysteresis = Hysteresis 3 (Maximum).
15.5.2 CMP1MD: Comparator 1 Mode
Bit
7
6
5
4
3
2
1
0
Name
Reserved
CPRIE
CPFIE
Reserved
CPMD
Access
RW
R
RW
RW
R
RW
Reset
0x2
0
0
0x0
0x2
SFR Page = 0x0; SFR Address: 0x9C
Bit
Name
Reset
Access
Description
7:6
Reserved
Must write reset value.
5
CPRIE
0
RW
Comparator Rising-Edge Interrupt Enable.
Value
Name
Description
0
RISE_INT_DISABLED
Comparator rising-edge interrupt disabled.
1
RISE_INT_ENABLED
Comparator rising-edge interrupt enabled.
4
CPFIE
0
RW
Comparator Falling-Edge Interrupt Enable.
Value
Name
Description
0
FALL_INT_DISABLED
Comparator falling-edge interrupt disabled.
1
FALL_INT_ENABLED
Comparator falling-edge interrupt enabled.
3:2
Reserved
Must write reset value.
1:0
CPMD
0x2
RW
Comparator Mode Select.
These bits affect the response time and power consumption of the comparator.
Value
Name
Description
0x0
MODE0
Mode 0 (Fastest Response Time, Highest Power Consumption)
0x1
MODE1
Mode 1
0x2
MODE2
Mode 2
0x3
MODE3
Mode 3 (Slowest Response Time, Lowest Power Consumption)
EFM8SB2 Reference Manual
Comparators (CMP0 and CMP1)
silabs.com
| Smart. Connected. Energy-friendly.
Rev. 0.1 | 156