Atmel Xplained Pro Evaluation Kit ATSAMD20-XPRO ATSAMD20-XPRO Data Sheet

Product codes
ATSAMD20-XPRO
Page of 660
513
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
29.
 AC – Analog Comparators
29.1
Overview
The Analog Comparator (AC) supports two individual comparators. Each comparator (COMP) compares the voltage 
levels on two inputs, and provides a digital output based on this comparison. Each comparator may be configured to 
generate interrupt requests and/or peripheral events upon several different combinations of input change.
Hysteresis and propagation delay are two important properties of the comparators; dynamic behavior. Both parameters 
may be adjusted to achieve the optimal operation for each application.
The input selection includes four shared analog port pins and several internal signals. Each comparator output state can 
also be output on a pin for use by external devices.
The comparators are always grouped in pairs on each port. The AC module may implement one pair. These are called 
Comparator 0 (COMP0) and Comparator 1 (COMP1). They have identical behaviors, but separate control registers. The 
pair can be set in window mode to compare a signal to a voltage range instead of a single voltage level.
29.2
Features
z
Two individual comparators
z
Selectable propagation delay versus current consumption
z
Selectable hysteresis
z
On/Off
z
Analog comparator outputs available on pins
z
Asynchronous or synchronous
z
Flexible input selection
z
Four pins selectable for positive or negative inputs
z
Ground (for zero crossing)
z
Bandgap reference voltage
z
64-level programmable V
DDANA
 scaler per comparator
z
DAC 
z
Interrupt generation on:
z
Rising or falling edge
z
Toggle
z
End of comparison
z
Window function interrupt generation on:
z
Signal above window
z
Signal inside window
z
Signal below window
z
Signal outside window
z
Event generation on:
z
Comparator output
z
Window function inside/outside window
z
Optional digital filter on comparator output
z
Low-power option 
z
Single-shot support