ATMEGA16-16AU SL602 Atmel, ATMEGA16-16AU SL602 Datasheet - Page 201

no-image

ATMEGA16-16AU SL602

Manufacturer Part Number
ATMEGA16-16AU SL602
Description
Manufacturer
Atmel
Datasheet
Analog
Comparator
Special Function IO
Register – SFIOR
2466T–AVR–07/10
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 97. Analog Comparator Block Diagram
Notes:
• Bit 3 – ACME: Analog Comparator Multiplexer Enable
When this bit is written logic one and the ADC is switched off (ADEN in ADCSRA is zero), the
ADC multiplexer selects the negative input to the Analog Comparator. When this bit is written
logic zero, AIN1 is applied to the negative input of the Analog Comparator. For a detailed
description of this bit, see
Bit
Read/Write
Initial Value
ADC MULTIPLEXER
1. See
2. Refer to
REFERENCE
ACME
Figure
ADEN
OUTPUT
BANDGAP
ADTS2
R/W
7
0
Table 80 on page
97.
(1)
Figure 1 on page 2
ACBG
ADTS1
R/W
6
0
“Analog Comparator Multiplexed Input” on page
ADTS0
R/W
203.
5
0
and
Table 25 on page 58
R
4
0
(2)
ACME
R/W
3
0
PUD
R/W
2
0
for Analog Comparator pin placement.
PSR2
R/W
1
0
ATmega16(L)
PSR10
R/W
0
0
203.
SFIOR
201

Related parts for ATMEGA16-16AU SL602