19.15.1 ADC Multiplexer Selection Register

Name: ADMUX
Offset: 0x1B
Reset: 0x00
Property: -

Bit 76543210 
 REFSn[1:0]   MUXn[2:0] 
Access R/WR/WR/WR/WR/W 
Reset 00000 

Bits 7:6 – REFSn[1:0] Reference Selection [n = 1:0]

These bits select the voltage reference for the ADC. If these bits are changed during a conversion, the change will not go in effect until this conversion is complete (ADIF in ADCSRA is set).

Table 19-2. ADC Voltage Reference Selection
REFS[1:0]Voltage Reference Selection
00Vcc
01Internal 1.1V reference
10Internal 2.2V reference
11Internal 4.3V reference

Bits 2:0 – MUXn[2:0] Analog Channel Selection [n = 2:0]

The value of these bits selects which analog inputs are connected to the ADC. If these bits are changed during a conversion, the change will not go in effect until this conversion is complete (ADCSRA.ADIF is set).

Table 19-3. Input Channel Selection
MUX[2:0]Single Ended InputPin name
000ADC0PA[0]
001ADC1PA[1]
010ADC2PA[5]
011ADC3PA[6]
100ADC4PB[0]
101ADC5PB[1]
110ADC6PB[2]
111ADC7PB[3]