
273
8210C–AVR–09/11
Atmel AVR XMEGA D
(falling edge). Events are generated at all times for the same condition as the interrupt, regard-
less of whether the interrupt is enabled or not.
22.6
Window Mode
Two analog comparators on the same port can be configured to work together in window mode.
In this mode, a voltage range is defined, and the analog comparators give information about
whether an input signal is within this range or not.
Figure 22-2.
The Analog comparators in window mode.
22.7
Input Hysteresis
Application software can select between no-, low-, and high hysteresis
for the comparison
.
Applying a hysteresis will help prevent constant toggling of the output
that can be caused by
noise when
the input signals are close to each other.
AC0
+
-
AC1
+
-
Input signal
Upper limit of window
Lower limit of window
Interrupt
sensitivity
control
Interrupts
Events