English
Language : 

ATMEGA8_14 Datasheet, PDF (190/331 Pages) ATMEL Corporation – High-performance, Low-power Atmel
ATmega8(L)
Figure 90. Analog to Digital Converter Block Schematic Operation
ADC CONVERSION
COMPLETE IRQ
2486AA–AVR–02/2013
8-BIT DATA BUS
ADC MULTIPLEXER
SELECT (ADMUX)
ADC CTRL. & STATUS
REGISTER (ADCSRA)
15
0
ADC DATA REGISTER
(ADCH/ADCL)
MUX DECODER
PRESCALER
AVCC
INTERNAL 2.56V
REFERENCE
AREF
GND
BANDGAP
REFERENCE
ADC7
ADC6
ADC5
ADC4
ADC3
ADC2
ADC1
ADC0
INPUT
MUX
CONVERSION LOGIC
10-BIT DAC
SAMPLE & HOLD
COMPARATOR
-
+
ADC MULTIPLEXER
OUTPUT
The ADC converts an analog input voltage to a 10-bit digital value through successive approxi-
mation. The minimum value represents GND and the maximum value represents the voltage on
the AREF pin minus 1 LSB. Optionally, AVCC or an internal 2.56V reference voltage may be con-
nected to the AREF pin by writing to the REFSn bits in the ADMUX Register. The internal
voltage reference may thus be decoupled by an external capacitor at the AREF pin to improve
noise immunity.
The analog input channel is selected by writing to the MUX bits in ADMUX. Any of the ADC input
pins, as well as GND and a fixed bandgap voltage reference, can be selected as single ended
inputs to the ADC. The ADC is enabled by setting the ADC Enable bit, ADEN in ADCSRA. Volt-
age reference and input channel selections will not go into effect until ADEN is set. The ADC
does not consume power when ADEN is cleared, so it is recommended to switch off the ADC
before entering power saving sleep modes.
The ADC generates a 10-bit result which is presented in the ADC Data Registers, ADCH and
ADCL. By default, the result is presented right adjusted, but can optionally be presented left
adjusted by setting the ADLAR bit in ADMUX.
190