Product Specs

Table Of Contents
38 COMP Comparator
Page
392
MUX
PSEL
38 COMP Comparator
The Comparator (COMP) compares the input voltage (VIN+) that is derived from an analog input pin
selected via the PSEL register against a second input voltage (VIN-) that can be derived from multiple
sources depending on operation mode.
Listed here are the main features for COMP:
Input range from 0 V to VDD
Single-ended mode
Fully flexible hysteresis using a 64-level reference ladder
Differential mode
Configurable 50 mV hysteresis
Reference inputs:
VDD
External reference from AIN0 to AIN1 (between 0 V and VDD)
Internal references 1.2 V, 1.8 V and 2.4 V
Three operation modes: low power, normal and high-speed
Single-pin capacitive sensor support
Event generation on output changes
UP event on VIN- > VIN+
DOWN event on VIN- < VIN+
CROSS event on VIN+ and VIN- crossing
READY event on core and internal reference (if used) ready
ISOURCE
VIN+
MODE
+ -
Comparator
core
VIN-
HYST
RESULT
Output
0 = BELOW (VIN+ < VIN-)
1 = ABOVE (VIN+ > VIN-)
Figure 109: Comparator overview
Important: COMP cannot be used (STARTed) at the same time as LPCOMP. Only one comparator
can be used at a time.
The COMP is started by triggering the START task, and stopped by triggering the STOP task. After a start-
up time of t
COMP,START
35
the COMP will generate a READY event to indicate that the comparator is ready
35
See t
PROPDLY,LP
, t
PROPDLY,N
, t
PROPDLY,HS
, I
COMP,LP
, I
COMP,N
and I
COMP,HS
in Electrical parameters for
more information about COMP speed and power characteristics related to these different modes.
READY
SAMPLE
DOWN
STOP
CROSS
START
UP
AIN0
AIN1
AIN2
AIN3
AIN4
AIN5
AIN6
AIN7