ATMEGA325-16AJ ATMEL [ATMEL Corporation], ATMEGA325-16AJ Datasheet - Page 192

no-image

ATMEGA325-16AJ

Manufacturer Part Number
ATMEGA325-16AJ
Description
8-bit Microcontroller with In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Analog Comparator
Multiplexed Input
Digital Input Disable
Register 1 – DIDR1
192
ATmega325/3250/645/6450
It is possible to select any of the ADC7..0 pins to replace the negative input to the Ana-
log Comparator. The ADC multiplexer is used to select this input, and consequently, the
ADC must be switched off to utilize this feature. If the Analog Comparator Multiplexer
Enable bit (ACME in ADCSRB) is set and the ADC is switched off (ADEN in ADCSRA is
zero), MUX2..0 in ADMUX select the input pin to replace the negative input to the Ana-
log Comparator, as shown in Table 84. If ACME is cleared or ADEN is set, AIN1 is
applied to the negative input to the Analog Comparator.
Table 84. Analog Comparator Multiplexed Input
• Bit 1, 0 – AIN1D, AIN0D: AIN1, AIN0 Digital Input Disable
When this bit is written logic one, the digital input buffer on the AIN1/0 pin is disabled.
The corresponding PIN Register bit will always read as zero when this bit is set. When
an analog signal is applied to the AIN1/0 pin and the digital input from this pin is not
needed, this bit should be written logic one to reduce power consumption in the digital
input buffer.
Bit
Read/Write
Initial Value
ACME
0
1
1
1
1
1
1
1
1
1
ADEN
R
7
0
x
1
0
0
0
0
0
0
0
0
R
6
0
MUX2..0
000
001
010
011
100
101
110
111
xxx
xxx
R
5
0
Analog Comparator Negative Input
AIN1
AIN1
ADC0
ADC1
ADC2
ADC3
ADC4
ADC5
ADC6
ADC7
R
4
0
R
3
0
R
2
0
AIN1D
R/W
1
0
AIN0D
R/W
0
0
2570A–AVR–09/04
DIDR1

Related parts for ATMEGA325-16AJ