15. Comparators (CMP0 and CMP1)
15.1 Introduction
Analog comparators are used to compare the voltage of two analog inputs, with a digital output indicating which input voltage is higher.
External input connections to device I/O pins and internal connections are available through separate multiplexers on the positive and
negative inputs. Hysteresis, response time, and current consumption may be programmed to suit the specific needs of the application.
CMPn
CMPn+
CMPn-
Programmable
Hysteresis
Programmable
Response Time
D
Q
Q
CPn
(synchronous)
CPnA
(asynchronous)
SYSCLK
GND
Port Pins
Negative Input
Selection
Port Pins
Positive Input
Selection
Internal LDO
Figure 15.1. Comparator Block Diagram
15.2 Features
The comparator module includes the following features:
• Up to 12 external positive inputs.
• Up to 11 external negative inputs.
• Additional input options:
• Capacitive Sense Comparator output.
• VDD.
• VDD divided by 2.
• Internal connection to LDO output.
• Direct connection to GND.
• Synchronous and asynchronous outputs can be routed to pins via crossbar.
• Programmable hysteresis between 0 and +/-20 mV.
• Programmable response time.
• Interrupts generated on rising, falling, or both edges.
EFM8SB2 Reference Manual
Comparators (CMP0 and CMP1)
silabs.com
| Smart. Connected. Energy-friendly.
Rev. 0.1 | 147