Datasheet
213
ATmega48PA/88PA/168PA [DATASHEET]
9223F–AVR–04/14
24. Analog-to-Digital Converter
24.1 Features
● 10-bit resolution
● 0.5 LSB integral non-linearity
● ±2 LSB absolute accuracy
● 13 to 260µs conversion time
● Up to 76.9kSPS (up to 15kSPS at maximum resolution)
● 6 multiplexed single ended input channels
● 2 additional multiplexed single ended input channels
● Temperature sensor input channel
● Optional left adjustment for ADC result readout
● 0 to V
CC
ADC input voltage range
● Selectable 1.1V ADC reference voltage
● Free running or single conversion mode
● Interrupt on ADC conversion complete
● Sleep mode noise canceler
24.2 Overview
The Atmel
®
ATmega48PA/88PA/168PA features a 10-bit successive approximation ADC. The ADC is connected to an 8-
channel Analog Multiplexer which allows eight single-ended voltage inputs constructed from the pins of Port A. The single-
ended voltage inputs refer to 0V (GND).
The ADC contains a sample and hold circuit which ensures that the input voltage to the ADC is held at a constant level
during conversion. A block diagram of the ADC is shown in Figure 24-1 on page 214.
The ADC has a separate analog supply voltage pin, AV
CC
. AV
CC
must not differ more than ±0.3V from V
CC
. See Section 24.6
“ADC Noise Canceler” on page 220 on how to connect this pin.
Internal reference voltages of nominally 1.1V or AV
CC
are provided on-chip. The voltage reference may be externally
decoupled at the AREF pin by a capacitor for better noise performance.
The Power Reduction ADC bit, PRADC, in Section 10.10 “Minimizing Power Consumption” on page 37 must be disabled by
writing a logical zero to enable the ADC.
The ADC converts an analog input voltage to a 10-bit digital value through successive approximation. The minimum value
represents GND and the maximum value represents the voltage on the AREF pin minus 1 LSB. Optionally, AV
CC
or an
internal 1.1V reference voltage may be connected 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.