13. Comparators (CMP0 and CMP1)
13.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
Reference
DAC
Inversion
Positive Input
Selection
Negative Input
Selection
Internal LDO
VDD
Port Pins
VDD
Port Pins
GND
Figure 13.1. Comparator Block Diagram
13.2 Features
The comparator includes the following features:
• Up to 8 (CMP0) or 8 (CMP1) external positive inputs
• Up to 8 (CMP0) or 8 (CMP1) external negative inputs
• Additional input options:
• Internal connection to LDO output
• Direct connection to GND
• Direct connection to VDD
• Dedicated 6-bit reference DAC
• 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
• PWM output kill feature
EFM8UB3 Reference Manual
Comparators (CMP0 and CMP1)
silabs.com
| Building a more connected world.
Rev. 0.2 | 147