Skip to the content
1234567891011121314151617181920212223242526272829303132

ATMEGA328PB-AU

Microchip TechnologyExtended

-40℃~+85℃ 1.8V~5.5V 10bit 1KB 20MHz 27 2KB 32KB 8 Bit AVR Built-in FLASH Power-on reset (POR)、Undervoltage detection (BOR/LVD/LVR/LVI)、Watchdog reset、External pin reset (NRST)、Built-in general-purpose timer、Programmable watchdog、Touch function TQFP-32(7x7) Microcontrollers (MCU/MPU/SOC) ROHS

Part id
microchip/ATMEGA328PB-AU
Category
Microcontrollers (MCU, MPU, SOC)
Package
TQFP-32(7x7)
Pins
32
In stock
5,506 at JLCPCB (C132230)
Used on
183 open-source boards

Overview

The ATMEGA328PB-AU is a microcontroller made by Microchip Technology in a TQFP-32(7x7) package with 32 pins. -40℃~+85℃ 1.8V~5.5V 10bit 1KB 20MHz 27 2KB 32KB 8 Bit AVR Built-in FLASH Power-on reset (POR)、Undervoltage detection (BOR/LVD/LVR/LVI)、Watchdog reset、External pin reset (NRST)、Built-in general-purpose timer、Programmable watchdog、Touch function TQFP-32(7x7) Microcontrollers (MCU/MPU/SOC) ROHS.

PCBKit's library has its KiCad symbol (MCU_Microchip_ATmega:ATmega328PB-A, from KiCad's library) and its footprint (Package_QFP:TQFP-32_7x7mm_P0.8mm, from KiCad's library), ready for a KiCad board. 5,506 are in stock at JLCPCB (part C132230). 183 open-source boards in 141 repositories on GitHub use it.

Symbol

1PD32PD43PE04VCC5GND6PE17XTAL1/PB68XTAL2/PB79PD510PD611PD712PB013PB114PB215PB316PB417PB518AVCC19PE220AREF22PE323PC024PC125PC226PC327PC428PC529RESET/PC630PD031PD132PD2
MCU_Microchip_ATmega:ATmega328PB-AFrom KiCad's library

Footprint

1234567891011121314151617181920212223242526272829303132
Package_QFP:TQFP-32_7x7mm_P0.8mmFrom KiCad's library

From the datasheet

13
Supply, least
1.8 V · VCC, recommended operating min · p. 12
Supply, most
5.5 V · VCC, recommended operating max · p. 12
Supply, absolute maximum
6 V · VCC, absolute max · p. 405
Works from
-40 °C · AU industrial operating ambient min · p. 12
Works up to
85 °C · AU industrial operating ambient max · p. 12
A pin gives at most
40 mA · I/O pin DC current absolute max · p. 405
Takes working
5.2 mA · VCC, active 8 MHz at 5 V, 85°C typical · p. 407
Takes at most
9 mA · VCC, active 8 MHz at 5 V, 85°C max · p. 407
Takes asleep
200 nA · VCC, power-down WDT disabled, 3 V, 25°C typical · p. 408
Works up to
105 °C · TA, max for DC characteristics · p. 405
Takes at most
10 mA · max active current, 8 MHz, VCC = 5V, T = 105°C · p. 407
Takes asleep
1.3 µA · typical power-save current, 32 KHz TOSC enabled, VCC = 1.8V, T = 25°C · p. 407
Edge
3.6 ns · SPI master rise/fall time, typical · p. 411

What it is and has

43
Core
AVR 8-bit, enhanced RISC · p. 1
Maximum throughput
20 MIPS at 20 MHz · p. 1
Instructions
131 · p. 1
Working registers
32 x 8 · p. 1
Multiplier
On-chip, 2-cycle · p. 1
Flash memory
32 KB, in-system self-programmable · p. 1
EEPROM
1 KB · p. 1
SRAM
2 KB · p. 1
Memory endurance
10,000 Flash / 100,000 EEPROM write/erase cycles · p. 1
Touch controller
24 self-capacitance channels, 144 mutual-capacitance channels · p. 1
8-bit timers
2, separate prescaler and compare mode · p. 1
16-bit timers
3, separate prescaler, compare and capture modes · p. 1
Real-time counter
Separate oscillator · p. 1
PWM
10 channels · p. 1
ADC
10-bit, 8 channels · p. 1
USART
2 · p. 2
SPI
2 master/slave interfaces · p. 2
Two-wire interface
2, Philips I2C compatible · p. 2
Watchdog
Programmable, separate on-chip oscillator · p. 2
Analog comparator
On-chip · p. 2
Pin-change interrupt
Interrupt and wake-up · p. 2
Protection
Power-on reset and programmable brown-out detection · p. 2
Internal oscillator
8 MHz, calibrated · p. 2
GPIO
27 programmable lines · p. 2
Package options
32-pin TQFP and 32-pin QFN/MLF · p. 2
Unique identification
Individual serial number · p. 2
Clock failure detection
Switches system clock to 1 MHz internal RC clock on failure · p. 59
Core
AVR 8-bit, advanced RISC architecture · p. 1
Performance
Up to 20 MIPS at 20 MHz · p. 1
Flash memory
32 KB, In-System Self-Programmable · p. 1
General purpose registers
32 x 8 · p. 1
Touch controller
Peripheral Touch Controller (PTC) · p. 1
16-bit timers
3: TC1, TC3, TC4 · p. 158
ADC resolution
10-bit · p. 340
ADC absolute accuracy
±2 LSB · p. 340
ADC sampling rate
Up to 76.9 kSPS; up to 15 kSPS at maximum resolution · p. 340
ADC input channels
6 multiplexed single-ended channels · p. 340
Additional ADC input channels
2 multiplexed single-ended channels for TQFP and QFN packages · p. 340
Temperature sensor
ADC input channel · p. 340
Instruction set
131 instructions · p. 1
Write/erase endurance
10,000 Flash / 100,000 EEPROM cycles · p. 1
Boot section
Optional boot code section with independent lock bits · p. 1
Peripheral Touch Controller
PTC · p. 1

Around it

1
other low-pass filter
between VCC and AVCC; Use when the ADC is used; AVCC must connect to VCC even if the ADC is unused. · p. 16

Specifications

214
ParameterConditionsAs printedPage
Operating Temperaturemin -55 · max 125 °C405
Storage Temperaturemin -65 · max 150 °C405
Voltage on any Pin except RESET with respect to Groundmin -0.5 V405
Voltage on RESET with respect to Groundmin -0.5 · max 13 V405
Maximum Operating Voltagemax 6 V405
DC Current per I/O Pinmax 40 mA405
DC Current VCC and GND Pinsmax 100 mA405
Input Low Voltage, except XTAL1 and RESET pin VILVCC = 1.8V - 2.4Vmin -0.5 V405
Input Low Voltage, except XTAL1 and RESET pin VILVCC = 2.4V - 5.5Vmin -0.5 V405
Input Low Voltage, XTAL1 pin VIL1VCC = 1.8V - 5.5Vmin -0.5 V405
Input Low Voltage, RESET pin VIL2VCC = 1.8V - 5.5Vmin -0.5 V405
Input Low Voltage, RESET pin as I/O VIL3VCC = 1.8V - 2.4Vmin -0.5 V406
Input Low Voltage, RESET pin as I/O VIL3VCC = 2.4V - 5.5Vmin -0.5 V406
Output Low Voltage(4) except RESET pin VOLIOL = 20mA, TA=85°C, VCC = 5Vmax 0.9 V406
Output Low Voltage(4) except RESET pin VOLIOL = 20mA, TA=105°C, VCC = 5Vmax 1 V406
Output Low Voltage(4) except RESET pin VOLIOL = 10mA, TA=85°C, VCC = 3Vmax 0.6 V406
Output Low Voltage(4) except RESET pin VOLIOL = 10mA, TA=105°C, VCC = 3Vmax 0.7 V406
Output High Voltage(3) except Reset pin VOHIOH = 20mA, TA=85°C, VCC = 5Vmin 4 V406
Output High Voltage(3) except Reset pin VOHIOH = 20mA, TA=105°C, VCC = 5Vmin 3.9 V406
Output High Voltage(3) except Reset pin VOHIOH = 10mA, TA=85°C, VCC = 3Vmin 2.1 V406
Output High Voltage(3) except Reset pin VOHIOH = 10mA, TA=105°C, VCC = 3Vmin 2 V406
Input Leakage Current I/O Pin IILVCC = 5.5V, pin low (absolute value)max 1 uA406
Input Leakage Current I/O Pin IIHVCC = 5.5V, pin high (absolute value)max 1 uA406
Reset Pull-up Resistor RRSTmin 30 · max 60 kΩ406
I/O Pin Pull-up Resistor RPUmin 20 · max 50 kΩ406
Analog Comparator Input Offset Voltage VACIOVCC = 1.8-5V, 0V<Vin<VCC-0.1Vmax 40 mV406
Analog Comparator Input Leakage Current IACLKVCC=5V, Vin = VCC/2min -50 · max 50 nA406
Analog Comparator Propagation Delay tACIDtyp 400 ns406
Power Supply Current(1) ICCActive 1 MHz, VCC = 2V, T=85°Ctyp 0.2 · max 0.5 mA407
Power Supply Current(1) ICCActive 1 MHz, VCC = 2V, T=105°Ctyp 0.2 · max 0.6 mA407
Power Supply Current(1) ICCActive 4 MHz, VCC = 3V, T=85°Ctyp 1.4 · max 2.5 mA407
Power Supply Current(1) ICCActive 4 MHz, VCC = 3V, T=105°Ctyp 1.4 · max 2.75 mA407
Power Supply Current(1) ICCActive 8 MHz, VCC = 5V, T=85°Ctyp 5.2 · max 9 mA407
Power Supply Current(1) ICCActive 8 MHz, VCC = 5V, T=105°Ctyp 5.2 · max 10 mA407
Power Supply Current(1) ICCIdle 1 MHz, VCC = 2V, T=85°Ctyp 0.06 · max 0.15 mA407
Power Supply Current(1) ICCIdle 1 MHz, VCC = 2V, T=105°Ctyp 0.06 · max 0.2 mA407
Power Supply Current(1) ICCIdle 4 MHz, VCC = 3V, T=85°Ctyp 0.4 · max 0.7 mA407
Power Supply Current(1) ICCIdle 4 MHz, VCC = 3V, T=105°Ctyp 0.4 · max 0.8 mA407
Power Supply Current(1) ICCIdle 8 MHz, VCC = 5V, T=85°Ctyp 1.5 · max 2.7 mA407
Power Supply Current(1) ICCIdle 8 MHz, VCC = 5V, T=105°Ctyp 1.5 · max 3 mA407
Power-save mode(3) ICC32 KHz TOSC enabled, VCC = 1.8V, T = 25°Ctyp 1.3 uA407
Power-save mode(3) ICC32 KHz TOSC enabled, VCC = 1.8V, T = 85°Ctyp 1.9 uA407
Power-save mode(3) ICC32 KHz TOSC enabled, VCC = 1.8V, T = 105°Ctyp 2.5 uA407
Power-save mode(3) ICC32 KHz TOSC enabled, VCC = 3V, T = 25°Ctyp 1.5 uA407
Power-save mode(3) ICC32 KHz TOSC enabled, VCC = 3V, T = 85°Ctyp 2.1 uA408
Power-save mode(3) ICC32 KHz TOSC enabled, VCC = 3V, T = 105°Ctyp 2.8 uA408
Power-down mode(3)(4) ICCWDT enabled, VCC = 3V, T = 25°Ctyp 3.2 uA408
Power-down mode(3)(4) ICCWDT enabled, VCC = 3V, T = 85°Ctyp 3.8 · max 8 uA408
Power-down mode(3)(4) ICCWDT enabled, VCC = 3V, T = 105°Ctyp 4.6 · max 10 uA408
Power-down mode(3)(4) ICCWDT disabled, VCC = 3V, T = 25°Ctyp 0.2 uA408
Power-down mode(3)(4) ICCWDT disabled, VCC = 3V, T = 85°Ctyp 0.7 · max 2 uA408
Power-down mode(3)(4) ICCWDT disabled, VCC = 3V, T = 105°Ctyp 1.4 · max 5 uA408
Oscillator Frequency 1/tCLCLVCC= 1.8 - 5.5Vmin 0 · max 4 MHz409
Oscillator Frequency 1/tCLCLVCC= 2.7 - 5.5Vmin 0 · max 10 MHz409
Oscillator Frequency 1/tCLCLVCC= 4.5 - 5.5Vmin 0 · max 20 MHz409
Clock Period tCLCLVCC= 1.8 - 5.5Vmin 250 ns409
Clock Period tCLCLVCC= 2.7 - 5.5Vmin 100 ns409
Clock Period tCLCLVCC= 4.5 - 5.5Vmin 50 ns409
High Time tCHCXVCC= 1.8 - 5.5Vmin 100 ns409
High Time tCHCXVCC= 2.7 - 5.5Vmin 40 ns409
High Time tCHCXVCC= 4.5 - 5.5Vmin 20 ns409
Low Time tCLCXVCC= 1.8 - 5.5Vmin 100 ns409
Low Time tCLCXVCC= 2.7 - 5.5Vmin 40 ns409
Low Time tCLCXVCC= 4.5 - 5.5Vmin 20 ns409
Rise Time tCLCHVCC= 1.8 - 5.5Vmax 2 us409
Rise Time tCLCHVCC= 2.7 - 5.5Vmax 1.6 us409
Rise Time tCLCHVCC= 4.5 - 5.5Vmax 0.5 us409
Fall Time tCHCLVCC= 1.8 - 5.5Vmax 2 us409
Fall Time tCHCLVCC= 2.7 - 5.5Vmax 1.6 us409
Fall Time tCHCLVCC= 4.5 - 5.5Vmax 0.5 us409
Change in period from one clock cycle to the next ΔtCLCLVCC= 1.8 - 5.5Vmax 2 %409
Change in period from one clock cycle to the next ΔtCLCLVCC= 2.7 - 5.5Vmax 2 %409
Change in period from one clock cycle to the next ΔtCLCLVCC= 4.5 - 5.5Vmax 2 %409
Power-on Reset Threshold Voltage (rising) VPOTmin 1.1 · typ 1.5 · max 1.7 V410
Power-on Reset Threshold Voltage (falling)(2) VPOTmin 0.6 · typ 1 · max 1.7 V410
Power-on Slope Rate SRONmin 0.01 · max 9 V/ms410
Minimum pulse width on RESET Pin tRSTmax 2.5 us410
Brown-out Detector Hysteresis VHYSTtyp 50 mV410
Min. Pulse Width on Brown-out Reset tBODtyp 2 us410
Bandgap reference voltage VBGmin 1 · typ 1.1 · max 1.2 V410
Bandgap reference start-up time tBGVCC=2.7, TA=25°Ctyp 40 · max 70 us410
Bandgap reference current consumption IBGVCC=2.7, TA=25°Ctyp 10 uA410
VBOT VBOTBODLEVEL [2:0] Fuses = 110min 1.7 · typ 1.8 · max 2 V410
VBOT VBOTBODLEVEL [2:0] Fuses = 101min 2.5 · typ 2.7 · max 2.9 V410
VBOT VBOTBODLEVEL [2:0] Fuses = 100min 4.1 · typ 4.3 · max 4.5 V410
Rise/Fall timeMastertyp 3.6 ns411
SetupMastertyp 10 ns411
HoldMastertyp 10 ns411
SCK to outMastertyp 10 ns411
SCK to out highMastertyp 10 ns411
SS low to outSlavetyp 15 ns411
Rise/Fall timeSlavemax 1600 ns411
SetupSlavemin 10 ns411
SCK to outSlavetyp 15 ns411
SCK to SS highSlavemin 20 ns411
SS high to tri-stateSlavetyp 10 ns411
Input Low-voltage VILmin -0.5 V412
Output Low-voltage VOL(1)3mA sink currentmin 0 · max 0.4 V413
Rise Time for both SDA and SCL tr(1)Cb = capacitance of one bus line in pF; minimum required only for fSCL > 100 kHzmax 300 ns413
Output Fall Time from VIHmin to VILmax tof(1)10 pF < Cb < 400 pF; minimum required only for fSCL > 100 kHzmax 250 ns413
Spikes Suppressed by Input Filter tSP(1)Required only for fSCL > 100 kHzmin 0 · max 50 ns413
Input Current each I/O Pin Ii0.1VCC < Vi < 0.9VCCmin -10 · max 10 uA413
Capacitance for each I/O Pin Ci(1)max 10 pF413
SCL Clock Frequency fSCLfCK > max(16fSCL, 250 kHz)min 0 · max 400 kHz413
Hold Time (repeated) START Condition tHD;STAfSCL ≤ 100 kHzmin 4 us413
Hold Time (repeated) START Condition tHD;STAfSCL > 100 kHzmin 0.6 us413
Low Period of the SCL Clock tLOWfSCL ≤ 100 kHzmin 4.7 us413
Low Period of the SCL Clock tLOWfSCL > 100 kHzmin 1.3 us413
High period of the SCL clock tHIGHfSCL ≤ 100 kHzmin 4 us413
High period of the SCL clock tHIGHfSCL > 100 kHzmin 0.6 us413
Set-up time for a repeated START condition tSU;STAfSCL ≤ 100 kHzmin 4.7 us413
Set-up time for a repeated START condition tSU;STAfSCL > 100 kHzmin 0.6 us413
Data hold time tHD;DATfSCL ≤ 100 kHzmin 0 · max 3.45 us413
Data hold time tHD;DATfSCL > 100 kHzmin 0 · max 0.9 us413
Data setup time tSU;DATfSCL ≤ 100 kHzmin 250 ns413
Data setup time tSU;DATfSCL > 100 kHzmin 100 ns413
Setup time for STOP condition tSU;STOfSCL ≤ 100 kHzmin 4 us413
Setup time for STOP condition tSU;STOfSCL > 100 kHzmin 0.6 us413
Bus free time between a STOP and START condition tBUFfSCL ≤ 100 kHzmin 4.7 us413
Bus free time between a STOP and START condition tBUFfSCL > 100 kHzmin 1.3 us413
Resolutiontyp 10 Bits414
Absolute accuracy (Including INL, DNL, quantization error, gain and offset error) TUEVREF = 4V, VCC = 4V, clkADC = 200 kHztyp 2 LSB414
Absolute accuracy (Including INL, DNL, quantization error, gain and offset error) TUEVREF = 4V, VCC = 4V, clkADC = 1 MHztyp 4 LSB414
Absolute accuracy (Including INL, DNL, quantization error, gain and offset error) TUEVREF = 4V, VCC = 4V, clkADC = 200 kHz, Noise Reduction Modetyp 2 LSB414
Absolute accuracy (Including INL, DNL, quantization error, gain and offset error) TUEVREF = 4V, VCC = 4V, clkADC = 1 MHz, Noise Reduction Modetyp 4 LSB414
Integral Non-Linearity INLVREF = 4V, VCC = 4V, clkADC = 200 kHztyp 0.5 LSB414
Differential Non-Linearity DNLVREF = 4V, VCC = 4V, clkADC = 200 kHztyp 0.25 LSB414
Gain ErrorVREF = 4V, VCC = 4V, clkADC = 200kHztyp 2 LSB414
Offset ErrorVREF = 4V, VCC = 4V, clkADC = 200 kHztyp 2 LSB414
Conversion TimeFree Running Conversionmin 13 · max 260 us414
Clock Frequencymin 50 · max 1000 kHz414
Reference Voltage VREFmin 1 V415
Input Bandwidthtyp 38.5 kHz415
Internal Voltage Reference VINTmin 1 · typ 1.1 · max 1.2 V415
Reference Input Resistance RREFtyp 50 kΩ415
Analog Input Resistance RAINtyp 100 MΩ415
Programming Enable Voltage VPPVCC = 5V ± 10%min 11.5 · max 12.5 V415
Programming Enable Current IPPVCC = 5V ± 10%max 250 uA415
Data and Control Valid before XTAL1 High tDVXHVCC = 5V ± 10%min 67 ns415
XTAL1 Low to XTAL1 High tXLXHVCC = 5V ± 10%min 300 ns415
XTAL1 Pulse Width High tXHXLVCC = 5V ± 10%min 150 ns415
Data and Control Hold after XTAL1 Low tXLDXVCC = 5V ± 10%min 67 ns415
XTAL1 Low to WR Low tXLWLVCC = 5V ± 10%min 0 ns415
XTAL1 Low to PAGEL high tXLPHVCC = 5V ± 10%min 0 ns415
PAGEL low to XTAL1 high tPLXHVCC = 5V ± 10%min 150 ns415
BS1 Valid before PAGEL High tBVPHVCC = 5V ± 10%min 67 ns415
PAGEL Pulse Width High tPHPLVCC = 5V ± 10%min 200 ns415
BS1 Hold after PAGEL Low tPLBXVCC = 5V ± 10%min 67 ns415
BS2/1 Hold after RDY/BSY high tWLBXVCC = 5V ± 10%min 67 ns415
PAGEL Low to WR Low tPLWLVCC = 5V ± 10%min 67 ns415
BS1 Valid to WR Low tBVWLVCC = 5V ± 10%min 67 ns415
WR Pulse Width Low tWLWHVCC = 5V ± 10%min 150 ns415
WR Low to RDY/BSY Low tWLRLVCC = 5V ± 10%min 0 · max 1 us415
WR Low to RDY/BSY High(1) tWLRHVCC = 5V ± 10%min 2 · max 4.5 ms415
WR Low to RDY/BSY High for Chip Erase(2) tWLRH_CEVCC = 5V ± 10%min 7.5 · max 12 ms415
XTAL1 Low to OE Low tXLOLVCC = 5V ± 10%min 0 ns415
Frequency Range(1)CKSEL[3:0] = 0010(2)min 7.6 · max 8.4 MHz52
Operating TemperatureAbsolute maximum ratingsmin -55 · max 125 °C405
Input Low Voltage, except XTAL1 and RESET pin VILTA = -40°C to 105°C; VCC = 1.8V - 2.4Vmin -0.5 V405
Input Low Voltage, except XTAL1 and RESET pin VILTA = -40°C to 105°C; VCC = 2.4V - 5.5Vmin -0.5 V405
Input Low Voltage, XTAL1 pin VIL1TA = -40°C to 105°C; VCC = 1.8V - 5.5Vmin -0.5 V405
Input Low Voltage, RESET pin VIL2TA = -40°C to 105°C; VCC = 1.8V - 5.5Vmin -0.5 V405
Power Supply Current(1) ICCActive 1 MHz, VCC = 2V; T=85°Ctyp 0.2 · max 0.5 mA407
Power Supply Current(1) ICCActive 1 MHz, VCC = 2V; T=105°Ctyp 0.2 · max 0.6 mA407
Power Supply Current(1) ICCActive 4 MHz, VCC = 3V; T=85°Ctyp 1.4 · max 2.5 mA407
Power Supply Current(1) ICCActive 4 MHz, VCC = 3V; T=105°Ctyp 1.4 · max 2.75 mA407
Power Supply Current(1) ICCActive 8 MHz, VCC = 5V; T=85°Ctyp 5.2 · max 9 mA407
Power Supply Current(1) ICCActive 8 MHz, VCC = 5V; T=105°Ctyp 5.2 · max 10 mA407
Power Supply Current(1) ICCIdle 1 MHz, VCC = 2V; T=85°Ctyp 0.06 · max 0.15 mA407
Power Supply Current(1) ICCIdle 1 MHz, VCC = 2V; T=105°Ctyp 0.06 · max 0.2 mA407
Power Supply Current(1) ICCIdle 4 MHz, VCC = 3V; T=85°Ctyp 0.4 · max 0.7 mA407
Power Supply Current(1) ICCIdle 4 MHz, VCC = 3V; T=105°Ctyp 0.4 · max 0.8 mA407
Power Supply Current(1) ICCIdle 8 MHz, VCC = 5V; T=85°Ctyp 1.5 · max 2.7 mA407
Power Supply Current(1) ICCIdle 8 MHz, VCC = 5V; T=105°Ctyp 1.5 · max 3 mA407
Power-save mode(3) ICC32 KHz TOSC enabled, VCC = 1.8V; T = 25°Ctyp 1.3 uA407
Power-save mode(3) ICC32 KHz TOSC enabled, VCC = 1.8V; T = 85°Ctyp 1.9 uA407
Power-save mode(3) ICC32 KHz TOSC enabled, VCC = 1.8V; T = 105°Ctyp 2.5 uA407
Power-save mode(3) ICC32 KHz TOSC enabled, VCC = 3V; T = 25°Ctyp 1.5 uA407
PRUSART1VCC = 2V, F = 1 MHztyp 4.8 uA423
PRUSART1VCC = 3V, F = 4 MHztyp 28.7 uA423
PRUSART1VCC = 5V, F = 8 MHztyp 107.8 uA423
PRUSART0VCC = 2V, F = 1 MHztyp 4.7 uA423
PRUSART0VCC = 3V, F = 4 MHztyp 28.1 uA423
PRUSART0VCC = 5V, F = 8 MHztyp 110.9 uA423
PRTWIVCC = 2V, F = 1 MHztyp 7.2 uA423
PRTWIVCC = 3V, F = 4 MHztyp 44.2 uA423
PRTWIVCC = 5V, F = 8 MHztyp 169.2 uA423
PRTIM2VCC = 2V, F = 1 MHztyp 5.7 uA423
PRTIM2VCC = 3V, F = 4 MHztyp 38.6 uA423
PRTIM2VCC = 5V, F = 8 MHztyp 140 uA423
PRTIM1VCC = 2V, F = 1 MHztyp 3.8 uA423
PRTIM1VCC = 3V, F = 4 MHztyp 22.9 uA423
PRTIM1VCC = 5V, F = 8 MHztyp 88.8 uA423
PRTIM0VCC = 2V, F = 1 MHztyp 1.9 uA423
PRTIM0VCC = 3V, F = 4 MHztyp 11.6 uA423
PRTIM0VCC = 5V, F = 8 MHztyp 45.2 uA423
PRSPIVCC = 2V, F = 1 MHztyp 5.7 uA423
PRSPIVCC = 3V, F = 4 MHztyp 38.3 uA423
PRSPIVCC = 5V, F = 8 MHztyp 159.8 uA423
PRADCVCC = 2V, F = 1 MHztyp 6.5 uA423
PRADCVCC = 3V, F = 4 MHztyp 44.3 uA423
PRADCVCC = 5V, F = 8 MHztyp 165.11 uA423
PRTIM4VCC = 2V, F = 1 MHztyp 4.1 uA423
PRTIM4VCC = 3V, F = 4 MHztyp 28.2 uA423
PRTIM4VCC = 5V, F = 8 MHztyp 95.5 uA423
PRTIM3VCC = 2V, F = 1 MHztyp 6.7 uA423
PRTIM3VCC = 3V, F = 4 MHztyp 47.1 uA423
PRTIM3VCC = 5V, F = 8 MHztyp 164.1 uA423
PRSPI1VCC = 2V, F = 1 MHztyp 5.8 uA423
PRSPI1VCC = 3V, F = 4 MHztyp 40 uA423
PRSPI1VCC = 5V, F = 8 MHztyp 157.9 uA423
PRPTCVCC = 2V, F = 1 MHztyp 4.7 uA423
PRPTCVCC = 3V, F = 4 MHztyp 27.8 uA423
PRPTCVCC = 5V, F = 8 MHztyp 108.2 uA423

Pins, by the datasheet

32
1 PD[3]
Port D I/O with internal pull-up; INT1, PCINT19, PTC X3/Y11, OC2B. · p. 18
2 PD[4]
Port D I/O with internal pull-up; PCINT20, PTC X4/Y12, T0, XCK0. · p. 18
3 PE[0]
Port E I/O with internal pull-up; PCINT24, ACO, PTC X8/Y16, ICP4, SDA1. · p. 18
4 VCC
Digital supply voltage pin. · p. 18
5 GND
Ground. · p. 18
6 PE[1]
Port E I/O with internal pull-up; PCINT25, PTC X9/Y17, T4, SCL1. · p. 18
7 PB[6]
Port B I/O with internal pull-up; PCINT6, XTAL1/TOSC1 oscillator input. · p. 18
8 PB[7]
Port B I/O with internal pull-up; PCINT7, XTAL2/TOSC2 oscillator function. · p. 18
9 PD[5]
Port D I/O with internal pull-up; PCINT21, PTC X5/Y13, OC0B/T1. · p. 18
10 PD[6]
Port D I/O with internal pull-up; PCINT22, AIN0, PTC X6/Y14, OC0A. · p. 18
11 PD[7]
Port D I/O with internal pull-up; PCINT23, AIN1, PTC X7/Y15. · p. 18
12 PB[0]
Port B I/O with internal pull-up; PCINT0, PTC X10/Y18, CLKO, ICP1. · p. 18
13 PB[1]
Port B I/O with internal pull-up; PCINT1, PTC X11/Y19, OC1A. · p. 18
14 PB[2]
Port B I/O with internal pull-up; PCINT2, PTC X12/Y20, OC1B, SS0. · p. 18
15 PB[3]
Port B I/O with internal pull-up; PCINT3, PTC X13/Y21, OC2A, TXD1, MOSI0. · p. 18
16 PB[4]
Port B I/O with internal pull-up; PCINT4, PTC X14/Y22, RXD1, MISO0. · p. 18
17 PB[5]
Port B I/O with internal pull-up; PCINT5, PTC X15/Y23, XCK1, SCK0. · p. 18
18 AVCC
Supply for ADC, PC[3:0], PE[3:2]; connect to VCC even when ADC is unused, through a low-pass filter when ADC is used. · p. 18
19 PE[2]
Port E I/O with internal pull-up; PCINT26, ADC6, PTC Y6, ICP3, SS1. · p. 18
20 AREF
Analog reference pin for the ADC. · p. 18
21 GND
Ground. · p. 18
22 PE[3]
Port E I/O with internal pull-up; PCINT27, ADC7, PTC Y7, T3, MOSI1. · p. 18
23 PC[0]
Port C I/O with internal pull-up; PCINT8, ADC0, PTC Y0, MISO1. · p. 18
24 PC[1]
Port C I/O with internal pull-up; PCINT9, ADC1, PTC Y1, SCK1. · p. 18
25 PC[2]
Port C I/O with internal pull-up; PCINT10, ADC2, PTC Y2. · p. 18
26 PC[3]
Port C I/O with internal pull-up; PCINT11, ADC3, PTC Y3. · p. 18
27 PC[4]
Port C I/O with internal pull-up; PCINT12, ADC4, PTC Y4, SDA0. · p. 18
28 PC[5]
Port C I/O with internal pull-up; PCINT13, ADC5, PTC Y5, SCL0. · p. 18
29 PC[6]/RESET
Active-low reset input; PC6 I/O when RSTDISBL fuse is programmed; PCINT14. · p. 18
30 PD[0]
Port D I/O with internal pull-up; PCINT16, PTC X0/Y8, OC3A, RXD0. · p. 18
31 PD[1]
Port D I/O with internal pull-up; PCINT17, PTC X1/Y9, OC4A, TXD0. · p. 19
32 PD[2]
Port D I/O with internal pull-up; INT0, PCINT18, PTC X2/Y10, OC3B/OC4B. · p. 19

Ordering codes, by the datasheet

8
ATmega328PB-AU
32A · TQFP, industrial -40°C to 85°C · p. 12
ATmega328PB-AUR
32A · TQFP, industrial -40°C to 85°C, tape and reel · p. 12
ATmega328PB-MU
32MS1 · VQFN, industrial -40°C to 85°C · p. 12
ATmega328PB-MUR
32MS1 · VQFN, industrial -40°C to 85°C, tape and reel · p. 12
ATmega328PB-AN
32A · TQFP, industrial -40°C to 105°C · p. 12
ATmega328PB-ANR
32A · TQFP, industrial -40°C to 105°C, tape and reel · p. 12
ATmega328PB-MN
32MS1 · VQFN, industrial -40°C to 105°C · p. 12
ATmega328PB-MNR
32MS1 · VQFN, industrial -40°C to 105°C, tape and reel · p. 12

Open-source boards using it

183See all 183
  • 2 layers78 × 130 mmLofence, the printed circuit board in 3D

    Lofence

    kiu/lofence

    LoFence is a LoRaWAN capable IoT electric fence monitoring system running on the The Things Network.

    65 parts142MIT
  • 2 layers102 × 81.5 mmC64pico, the printed circuit board in 3D

    C64pico

    silvervest/c64pico

    This is a tiny emulated C64 running on a Raspberry Pi Pico! Full details of the build can be found at https://www.youtube.com/watch?v=hgLhGpbC6E4

    97 parts86
  • 2 layers58.4 × 34.3 mmSIO2SD, the printed circuit board in 3D

    SIO2SD

    c0pperdragon/SIO2SD

    An Arduino-based floppy drive emulator for the atari 8 bit computers.

    26 parts83
  • 2 layers200 × 100 mmRegalodilara, the printed circuit board in 3D

    Regalodilara

    valerionew/very-good-uc-doggos

    A special graduation present for a special friend. Six microcontrollers in one devboard

    91 parts50
  • 2 layers88.9 × 50.8 mmBLDC BIZ CARD, the printed circuit board in 3D

    BLDC BIZ CARD

    ageppert/Brushless-Motor-Biz-Card

    A brushless motor and driver built in to a business card form-factor for learning and experimenting!

    82 parts38MIT
  • 2 layers52.1 × 37.4 mmConsolizer, the printed circuit board in 3D

    Consolizer

    orangeglo/PS2PSP

    Board to connect a PS2 controller to a PSP 2000 (PSP Consolizer)

    25 parts38GPL-3.0
  • 2 layers67.3 × 54 mmJeep radio, the printed circuit board in 3D

    Jeep radio

    latonita/jeep-canbus

    Projects around CAN BUS in Chrysler Jeep - VES enabler, other small features

    52 parts30MIT
  • 2 layers91.4 × 92.5 mmNano328PB, the printed circuit board in 3D

    Nano328PB

    tomaskovacik/hw

    HW (pcb, schematics etc) for my projects

    450 parts27

Parts like it

8

Questions

Is there a KiCad symbol and footprint for the ATMEGA328PB-AU?

Yes. The symbol is MCU_Microchip_ATmega:ATmega328PB-A and the footprint Package_QFP:TQFP-32_7x7mm_P0.8mm, both drawn on this page. PCBKit places them on a board for you when you design with it.

What package is the ATMEGA328PB-AU?

TQFP-32(7x7), with 32 pins. Its footprint is drawn on this page.

Where is the ATMEGA328PB-AU datasheet?

Microchip Technology publishes it: the Datasheet link on this page opens it.

Where can I order the ATMEGA328PB-AU?

JLCPCB lists it as part C132230, with 5,506 in stock; the sellers' links on this page open their listings.

What can replace the ATMEGA328PB-AU?

Parts like it in the library: the ATMEGA328P-AU by Microchip Technology, the ATMEGA48PA-AU by Microchip Technology, the ATMEGA88PA-AU by Microchip Technology and the ATMEGA168PA-AU by Microchip Technology. Check their datasheets: a part that fits the footprint may still differ in its ratings.

Which open-source boards use the ATMEGA328PB-AU?

183 boards in 141 repositories on GitHub; the most starred are listed on this page, with their KiCad files.