27.
Analog Comparator (AC)
27.1
Features
•
Selectable response time
•
Selectable hysteresis
•
Analog comparator output available on pin
•
Comparator output inversion available
•
Flexible input selection:
–
4 Positive pins
–
3 Negative pins
–
Internal reference voltage generator (DACREF)
•
Interrupt generation on:
–
Rising edge
–
Falling edge
–
Both edges
•
Event generation:
–
Comparator output
27.2
Overview
The Analog Comparator (AC) compares the voltage levels on two inputs and gives a digital output based
on this comparison. The AC can be configured to generate interrupt requests and/or Events upon several
different combinations of input change.
The dynamic behavior of the AC can be adjusted by a hysteresis feature. The hysteresis can be
customized to optimize the operation for each application.
The input selection includes analog port pins and internally generated inputs. The analog comparator
output state can also be output on a pin for use by external devices.
An AC has one positive input and one negative input. The digital output from the comparator is '1' when
the difference between the positive and the negative input voltage is positive, and '0' otherwise.
©
2018 Microchip Technology Inc.
Datasheet Preliminary
®
megaAVR
0-Series
Analog Comparator (AC)
DS40002015A-page 399
Need help?
Do you have a question about the megaAVR 0 Series and is the answer not in the manual?