Port B pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
B pins are tri-stated during a reset condition even if the clock is not running.
Depending on the clock selection fuse settings, PB6 can be used as input to the inverting Oscillator
amplifier and input to the internal clock operating circuit.
Depending on the clock selection fuse settings, PB7 can be used as output from the inverting Oscillator
amplifier.
If the Internal Calibrated RC Oscillator is used as chip clock source, PB[7:6] is used as TOSC[2:1] input
for the Asynchronous Timer/Counter2 if the AS2 bit in ASSR is set.
5.1.4 Port C (PC[5:0])
Port C is a 7-bit bi-directional I/O port with internal pull-up resistors (selected for each pin). The PC[5:0]
output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs,
Port C pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
C pins are tri-stated during a reset condition even if the clock is not running.
5.1.5 PC6/RESET
If the RSTDISBL Fuse is programmed, PC6 is used as an I/O pin. Note that the electrical characteristics
of PC6 differ from those of the other pins of Port C.
If the RSTDISBL Fuse is unprogrammed, PC6 is used as a Reset input. A low level on this pin for longer
than the minimum pulse length will generate a Reset, even if the clock is not running. Shorter pulses are
not guaranteed to generate a Reset.
The various special features of Port C are elaborated in the Alternate Functions of Port C section.
5.1.6 Port D (PD[7:0])
Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each pin). The Port D
output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs,
Port D pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
D pins are tri-stated during a reset condition even if the clock is not running.
5.1.7 Port E (PE[3:0])
Port E is an 4-bit bi-directional I/O port with internal pull-up resistors (selected for each pin). The Port E
output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs,
Port E pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
E pins are tri-stated during a reset condition even if the clock is not running.
5.1.8 AV
CC
AV
CC
is the supply voltage pin for the A/D Converter, PC[3:0], and PE[3:2]. It should be externally
connected to V
CC
, even if the ADC is not used. If the ADC is used, it should be connected to V
CC
through
a low-pass filter. Note that PC[6:4] use digital supply voltage, V
CC
.
5.1.9 AREF
AREF is the analog reference pin for the A/D Converter.
5.1.10 ADC[7:6] (TQFP and VFQFN Package Only)
In the TQFP and VFQFN package, ADC[7:6] serve as analog inputs to the A/D converter. These pins are
powered from the analog supply and serve as 10-bit ADC channels.
ATmega328PB
© 2017 Microchip Technology Inc.
Datasheet Summary
40001907A-page 10
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. PORT Function Multiplexing
No
PAD EXTINT PCINT ADC/AC PTC X PTC Y OSC T/C USART I2C SPI
1 PD[3] INT1 PCINT19 X3 Y11 OC2B
2 PD[4] PCINT20 X4 Y12 T0 XCK0
3 PE[0] PCINT24 ACO X8 Y16 ICP4 SDA1
4 VCC
5 GND
6 PE[1] PCINT25 X9 Y17 TC4 SCL1
7 PB[6] PCINT6 XTAL1/TOSC1
8 PB[7] PCINT7 XTAL2/TOSC2
9 PD[5] PCINT21 X5 Y13 OC0B / T1
10 PD[6] PCINT22 AIN0 X6 Y14 OC0A
11 PD[7] PCINT23 AIN1 X7 Y15
12 PB[0] PCINT0 X10 Y18 CLKO ICP1
13 PB[1] PCINT1 X11 Y19 OC1A
14 PB[2] PCINT2 X12 Y20 OC1B SS0
15 PB[3] PCINT3 X13 Y21 OC2A TXD1 MOSI0
16 PB[4] PCINT4 X14 Y22 RXD1 MISO0
17 PB[5] PCINT5 X15 Y23 XCK1 SCK0
18 AVCC
19 PE[2] PCINT26 ADC6 Y6 ICP3 SS1
20 AREF
21 GND
22 PE[3] PCINT27 ADC7 Y7 T3 MOSI1
23 PC[0] PCINT8 ADC0 Y0 MISO1
24 PC[1] PCINT9 ADC1 Y1 SCK1
25 PC[2] PCINT10 ADC2 Y2
26 PC[3] PCINT11 ADC3 Y3
27 PC[4] PCINT12 ADC4 Y4 SDA0
28 PC[5] PCINT13 ADC5 Y5 SCL0
29 PC[6]/RESET PCINT14
30 PD[0] PCINT16 X0 Y8 OC3A RXD0
31 PD[1] PCINT17 X1 Y9 OC4A TXD0
32 PD[2] INT0 PCINT18 X2 Y10 OC3B / OC4B
ATmega328PB
© 2017 Microchip Technology Inc.
Datasheet Summary
40001907A-page 11
7. Resources
A comprehensive set of development tools, application notes, and datasheets are available for download
on http://www.microchip.com/design-centers/8-bit/microchip-avr-mcus.
ATmega328PB
© 2017 Microchip Technology Inc.
Datasheet Summary
40001907A-page 12

ATMEGA328PB-AU

Mfr. #:
Manufacturer:
Microchip Technology / Atmel
Description:
8-bit Microcontrollers - MCU ATMEGA328PB 20MHZ IND TEMP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union