246
7647H–AVR–03/12
Atmel ATmega16/32/64/M1/C1
• Bit 4, 2, 1, 0 – MUX4, MUX3, MUX2, MUX1, MUX0: ADC Channel Selection Bits
These 4 bits determine which analog inputs are connected to the ADC input. The different set-
ting are shown in Table 18-5.
If these bits are changed during a conversion, the change will not take effect until this conversion
is complete (it means while the ADIF bit in ADCSRA register is set).
18.9.2 ADC Control and Status Register A – ADCSRA
• Bit 7 – ADEN: ADC Enable Bit
Set this bit to enable the ADC.
Clear this bit to disable the ADC.
Clearing this bit while a conversion is running will take effect at the end of the conversion.
Table 18-5. ADC Input Channel Selection
MUX4 MUX3 MUX2 MUX1 MUX0 Description
00000ADC0
00001ADC1
00010ADC2
00011ADC3
00100ADC4
00101ADC5
00110ADC6
00111ADC7
01000ADC8
01001ADC9
01010ADC10
01011Temp Sensor
01100VCC/4
01101ISRC
01110AMP0
01111AMP1 (- is ADC8, + is ADC9)
10000AMP2 (- is ADC6)
10001Bandgap
10010GND
10011Reserved
101xxReserved
11xxxReserved
Bit 76543210
ADEN ADSC ADATE ADIF ADIE ADPS2 ADPS1 ADPS0 ADCSRA
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value 00000000