1 I/O Port Multiplexing

Each pin of ATmega328PB is default controlled as a general purpose I/O and can be alternatively assigned to one of the peripheral functions. The table below describes the peripheral signals multiplexed to the PORT I/O pins.

Table 1-1. Port Function Multiplexing
NoPADEXINTPCINTADC/ACPTC XPTC YOSCT/C #0T/C #1USARTI2CSPI
1PD[3]INT1PCINT19X3Y11OC2A
2PD[4]PCINT20X4Y12T0XCK0
3PE[0]PCINT24ACOX8Y16ICP4SDA1
4VCC
5GND
6PE[1]PCINT25X9Y17TC4SCL1
7PB[6]PCINT6XTAL1/TOSC1
8PB[7]PCINT7XTAL2/TOSC2
9PD[5]PCINT21X5Y13OC0BT1
10PD[6]PCINT22AIN0X6Y14OC0A
11PD[7]PCINT23AIN1X7Y15
12PB[0]PCINT0X10Y18CLKOICP1
13PB[1]PCINT1X11Y19OC1A
14PB[2]PCINT2X12Y20OC1BSS0
15PB[3]PCINT3X13Y21OC2ATXD1MOSI0
16PB[4]PCINT4X14Y22RXD1MISO0
17PB[5]PCINT5X15Y23XCK1SCK0
18AVCC
19PE[2]PCINT26ADC6Y6ICP3SS1
20AREF
21GND
22PE[3]PCINT27ADC7Y7T3MOSI1
23PC[0]PCINT8ADC0Y0MISO1
24PC[1]PCINT9ADC1Y1SCK1
25PC[2]PCINT10ADC2Y2
26PC[3]PCINT11ADC3Y3
27PC[4]PCINT12ADC4Y4SDA0
28PC[5]PCINT13ADC5Y5SCL0
29PC[6]/ResetPCINT14
30PD[0]PCINT16X0Y8OC3ARXD0
31PD[1]PCINT17X1Y9OC4ATXD0
32PD[2]PCINT18X2Y10OC3BOC4B