CMXN Setting in
Register
CMP1MX
Signal Name
Enumeration Name
QFP32 Pin
Name
QFN32 Pin
Name
QFN24 Pin
Name
1001
CMP1N.9
CMP1N9
P2.3
P2.3
Reserved
1010
CMP1N.10
CMP1N10
P2.5
P2.5
Reserved
1011
CMP1N.11
Reserved
Reserved
Reserved
1100
CMP1N.12
CS_COMPARE
Capacitive Sense Compare
1101
CMP1N.13
VDD_DIV_2
VDD divided by 2
1110
CMP1N.14
LDO_OUT
Internal 1.8V LDO output
1111
CMP1N.15
GND
Ground
15.3.4 Output Routing
The comparator’s synchronous and asynchronous outputs can optionally be routed to port I/O pins through the port I/O crossbar. The
output of either comparator may be configured to generate a system interrupt on rising, falling, or both edges. CMP0 may also be used
as a reset source or as a trigger to kill a PCA output channel.
The output state of the comparator can be obtained at any time by reading the CPOUT bit. The comparator is enabled by setting the
CPEN bit to logic 1, and is disabled by clearing this bit to logic 0. When disabled, the comparator output (if assigned to a port I/O pin via
the crossbar) defaults to the logic low state, and the power supply to the comparator is turned off.
Comparator interrupts can be generated on both rising-edge and falling-edge output transitions. The CPFIF flag is set to logic 1 upon a
comparator falling-edge occurrence, and the CPRIF flag is set to logic 1 upon the comparator rising-edge occurrence. Once set, these
bits remain set until cleared by software. The comparator rising-edge interrupt mask is enabled by setting CPRIE to a logic 1. The com-
parator falling-edge interrupt mask is enabled by setting CPFIE to a logic 1.
False rising edges and falling edges may be detected when the comparator is first powered on or if changes are made to the hysteresis
or response time control bits. Therefore, it is recommended that the rising-edge and falling-edge flags be explicitly cleared to logic 0 a
short time after the comparator is enabled or its mode bits have been changed, before enabling comparator interrupts.
EFM8SB2 Reference Manual
Comparators (CMP0 and CMP1)
silabs.com
| Smart. Connected. Energy-friendly.
Rev. 0.1 | 151