6 ADC Pin Configuration

After setting the ADEN bit of the ADC control status register A, port PC[5:0],PE2,PE3 can be used as ADC input pin ADC[7:0] by configuring the MUX bits of the ADMUX register.

Figure 6-1. ADC Control Status Register A

Bit 7 – ADEN: ADC Enable

Figure 6-2. ADC Multiplexer Selection Register

Bits 3:0—MUXn: Analog Channel Selection[n=3:0]

The value of these bits selects which analog inputs are connected to the ADC as the following table.

MUX[3:0]Single ended input
0000ADC0
0001ADC1
0010ADC2
0011ADC3
0100ADC4
0101ADC5
0110ADC6
0111ADC7
1000Temperature sensor
1001Reserved
1010Reserved
1011Reserved
1100Reserved
1101Reserved
11101.1V (VBG)
11110V (GND)