Datasheet

Table Of Contents
197
2570N–AVR–05/11
ATmega325/3250/645/6450
22. Analog Comparator
The Analog Comparator compares the input values on the positive pin AIN0 and negative pin
AIN1. When the voltage on the positive pin AIN0 is higher than the voltage on the negative pin
AIN1, the Analog Comparator output, ACO, is set. The comparator’s output can be set to trigger
the Timer/Counter1 Input Capture function. In addition, the comparator can trigger a separate
interrupt, exclusive to the Analog Comparator. The user can select Interrupt triggering on com-
parator output rise, fall or toggle. A block diagram of the comparator and its surrounding logic is
shown in Figure 22-1.
The Power Reduction ADC bit, PRADC, in “Power Reduction Register” on page 37 must be dis-
abled by writing a logical zero to be able to use the ADC module.
Figure 22-1. Analog Comparator Block Diagram
(2)
Notes: 1. See Table 22-1 on page 198.
2. Refer to Figure 1-1 on page 2, Figure 1-2 on page 3, and “Alternate Functions of Port E” on
page 72 for Analog Comparator pin placement.
ACBG
BANDGAP
REFERENCE
ADC MULTIPLEXER
OUTPUT
ACME
ADEN
(1)