6 I/O Multiplexing

Each pin is by default controlled by the PORT as a general purpose I/O and alternatively it can be assigned to one of the peripheral functions.

The following table describes the peripheral signals multiplexed to the PORT I/O pins.

Table 6-1. 32-Pin TQFP and MLF: PORT Function Multiplexing
NoPAD32EXTINTADC/ACOSCT/C # 0T/C # 1USARTI2CSPI
1PD[3]INT1
2PD[4] T0 XCK0
3GND
4VCC
5GND
6VCC
7PB[6] XTAL1/TOSC1
8PB[7] XTAL2/TOSC2
9PD[5] T1
10PD[6] AIN0
11PD[7] AIN1
12PB[0] ICP1
13PB[1] OC1A
14PB[2] OC1B SS0
15PB[3] OC2 MOSI0
16PB[4] MISO0
17PB[5] SCK0
18AVCC
19ADC6 ADC6
20AREF
21GND
22ADC7 ADC7
23PC[0] ADC0
24PC[1] ADC1
25PC[2] ADC2
26PC[3] ADC3
27PC[4] ADC4 SDA0
28PC[5] ADC5 SCL0
29PC[6]/RESET
30PD[0] RXD0
31PD[1] TXD0
32PD[2]INT0
Table 6-2. 28-Pin PDIP: PORT Function Multiplexing
NoPAD28EXTINTADC/ACOSCT/C # 0T/C # 1USARTI2CSPI
1PC[6]/RESET
2PD[0] RXD0
3PD[1] TXD0
4PD[2]INT0
5PD[3]INT1
6PD[4] T0 XCK0
7VCC
8GND
9PB[6] XTAL1/TOSC1
10PB[7] XTAL2/TOSC2
11PD[5] T1
12PD[6] AIN0
13PD[7] AIN1
14PB[0] ICP1
15PB[1] OC1A
16PB[2] OC1B SS0
17PB[3] OC2 MOSI0
18PB[4] MISO0
19PB[5] SCK0
20AVCC
21AREF
22GND
23PC[0] ADC0
24PC[1] ADC1
25PC[2] ADC2
26PC[3] ADC3
27PC[4] ADC4 SDA0
28PC[5] ADC5 SCL0