Skip to the content
PCBKitNew board
ATMEGA328-PU on a board, in 3D

ATMEGA328-PU

Microchip Technology

-40℃~+85℃ 1.8V~5.5V 10bit 1KB 20MHz 23 2KB 32KB 8 Bit AVR Built-in FLASH PDIP-28 Microcontrollers (MCU/MPU/SOC) ROHS

Extended
DatasheetJLCPCBLCSCmicrochip/ATMEGA328-PU
Category
Microcontrollers (MCU, MPU, SOC)
Package
PDIP-28
Pins
28

Overview

The ATMEGA328-PU is a microcontroller made by Microchip Technology in a PDIP-28 package with 28 pins. -40℃~+85℃ 1.8V~5.5V 10bit 1KB 20MHz 23 2KB 32KB 8 Bit AVR Built-in FLASH PDIP-28 Microcontrollers (MCU/MPU/SOC) ROHS.

PCBKit's library has its KiCad symbol (MCU_Microchip_ATmega:ATmega328-P, from KiCad's library) and its footprint (Package_DIP:DIP-28_W7.62mm, from KiCad's library), ready for a KiCad board. 28 are in stock at JLCPCB (part C613508). 435 open-source boards in 329 repositories on GitHub use it.

Symbol

RESET/PC61PD02PD13PD24PD35PD46VCC7GND8XTAL1/PB69XTAL2/PB710PD511PD612PD713PB014PB115PB216PB317PB418PB519AVCC20AREF21PC023PC124PC225PC326PC427PC528
MCU_Microchip_ATmega:ATmega328-PFrom KiCad's library

Footprint

12345678910111213141516171819202122232425262728
Package_DIP:DIP-28_W7.62mmFrom KiCad's library

From the datasheet

9
Supply, least
1.8 V · VCC, recommended operating min · p. 311
Supply, most
5.5 V · VCC, recommended operating max · p. 311
Works from
-40 °C · Ambient min, DC characteristics · p. 311
Works up to
85 °C · Ambient max, DC characteristics · p. 311
A pin gives at most
40 mA · DC current per I/O pin, absolute max · p. 308
Takes working
5.2 mA · VCC, typical active current at 8MHz, 5V · p. 311
Takes at most
12 mA · VCC, max active current at 8MHz, 5V · p. 311
Takes asleep
100 nA · VCC, typical power-down current, WDT disabled, 3V · p. 311
Supply, absolute maximum
6 V · VCC, absolute maximum · p. 322

What it is and has

14
Core
AVR 8-bit, advanced RISC architecture · p. 1
Maximum throughput
20 MIPS at 20MHz · p. 1
8-bit Timer/Counters
2, with separate prescaler and compare mode · p. 1
16-bit Timer/Counter
1, with separate prescaler, compare mode, and capture mode · p. 1
ADC resolution
10-bit · p. 246
ADC input channels
6 multiplexed single-ended channels · p. 246
ADC absolute accuracy
±2 LSB · p. 246
Temperature sensor
ADC input channel · p. 246
Core
AVR 8-bit RISC · p. 1
Instructions
131, most single clock cycle execution · p. 1
Working registers
32 x 8 · p. 1
CPU throughput
Up to 20 MIPS at 20MHz · p. 1
Multiplier
On-chip, 2-cycle · p. 1
Memory endurance
10,000 Flash / 100,000 EEPROM write/erase cycles · p. 1

Specifications

32
ParameterConditionsAs printedPage
Operating TemperatureAbsolute maximum ratingsmin -55 · max 125 °C308
Storage Temperaturemin -65 · max 150 °C308
Voltage on any Pin except RESET with respect to GroundMaximum: VCC+0.5Vmin -0.5 V308
Voltage on RESET with respect to Groundmin -0.5 · max 13 V308
DC Current per I/O Pinmax 40 mA308
DC Current VCC and GND Pinsmax 200 mA308
Power Supply Current(1) ICCATmega328; Active 1MHz, VCC = 2Vtyp 0.3 · max 0.55 mA311
Power Supply Current(1) ICCATmega328; Active 4MHz, VCC = 3Vtyp 1.7 · max 3.5 mA311
Power Supply Current(1) ICCATmega328; Active 8MHz, VCC = 5Vtyp 5.2 · max 12 mA311
Power Supply Current(1) ICCATmega328; Idle 1MHz, VCC = 2Vtyp 0.04 · max 0.5 mA311
Power Supply Current(1) ICCATmega328; Idle 4MHz, VCC = 3Vtyp 0.3 · max 1.5 mA311
Power Supply Current(1) ICCATmega328; Idle 8MHz, VCC = 5Vtyp 1.2 · max 5.5 mA311
Power-save mode(3) ICCATmega328; 32kHz TOSC enabled, VCC = 1.8Vtyp 0.8 uA311
Power-save mode(3) ICCATmega328; 32kHz TOSC enabled, VCC = 3Vtyp 0.9 uA311
Power-down mode(3) ICCATmega328; WDT enabled, VCC = 3Vtyp 4.2 · max 15 uA311
Power-down mode(3) ICCATmega328; WDT disabled, VCC = 3Vtyp 0.1 · max 2 uA311
Operating TemperatureAbsolute maximum ratingmin -55 · max 125 °C322
Storage Temperaturemin -65 · max 150 °C322
Voltage on any Pin except RESET with respect to GroundMaximum: VCC+0.5Vmin -0.5 V322
Voltage on RESET with respect to Groundmin -0.5 · max 13 V322
Maximum Operating Voltagemax 6 V322
DC Current VCC and GND Pinsmax 200 mA322
Input Low Voltage, except XTAL1 and RESET pin VILVCC = 1.8V - 2.4V; TA = -40°C to 105°C; maximum: 0.2VCC(1)min -0.5 V322
Input Low Voltage, except XTAL1 and RESET pin VILVCC = 2.4V - 5.5V; TA = -40°C to 105°C; maximum: 0.3VCC(1)min -0.5 V322
Input Low Voltage, XTAL1 pin VIL1VCC = 1.8V - 5.5V; TA = -40°C to 105°C; maximum: 0.1VCC(1)min -0.5 V322
Input Low Voltage, RESET pin VIL2VCC = 1.8V - 5.5V; TA = -40°C to 105°C; maximum: 0.1VCC(1)min -0.5 V322
Input Low Voltage, RESET pin as I/O VIL3VCC = 1.8V - 2.4V; TA = -40°C to 105°C; maximum: 0.2VCC(1)min -0.5 V322
Input Low Voltage, RESET pin as I/O VIL3VCC = 2.4V - 5.5V; TA = -40°C to 105°C; maximum: 0.3VCC(1)min -0.5 V322
Output Low Voltage(4) except RESET pin VOLIOL = 20mA, VCC = 5V, TA=85°Cmax 0.9 V322
Output Low Voltage(4) except RESET pin VOLIOL = 20mA, VCC = 5V, TA=105°Cmax 1 V322
Output Low Voltage(4) except RESET pin VOLIOL = 10mA, VCC = 3V, TA=85°Cmax 0.6 V322
Output Low Voltage(4) except RESET pin VOLIOL = 10mA, VCC = 3V, TA=105°Cmax 0.7 V322

Parameters

18
ADC (Bit)
10bit
CPU Core
AVR
CPU Maximum Speed
20MHz
Core Size
8 Bit
Current - Supply
5.2mA
Current - Supply(Max)
12mA
EEPROM
1KB
Features
Calendar function
Number of I/O
23
Operating Temperature
-40℃~+85℃
Oscillator Type
Built-in
Output Current per Pin(Max)
40mA
Program Memory Type
FLASH
Program Storage Size
32KB
RAM Size
2KB
Standby Current
100nA
Voltage - Supply
1.8V~5.5V
Voltage - Supply(Absolute Max)
6V

Order codes

1

Pinout

28
The pins of the ATMEGA328-PU
PinNameType
1RESET/PC6Input/output
2PD0Input/output
3PD1Input/output
4PD2Input/output
5PD3Input/output
6PD4Input/output
7VCCPower in
8GNDPower in
9XTAL1/PB6Input/output
10XTAL2/PB7Input/output
11PD5Input/output
12PD6Input/output
13PD7Input/output
14PB0Input/output
15PB1Input/output
16PB2Input/output
17PB3Input/output
18PB4Input/output
19PB5Input/output
20AVCCPower in
21AREFPassive
22GNDPassive
23PC0Input/output
24PC1Input/output
25PC2Input/output
26PC3Input/output
27PC4Input/output
28PC5Input/output

Open-source boards using it

All 435
  • 2 layers104.9 × 75.2 mmHandipi kb, the printed circuit board in 3D

    Handipi kb

    brickbots/HandiPi

    Handheld RPI4 based computer with keyboard and display

    95 parts814MIT
  • 2 layers228 × 98 mmPlaid, the printed circuit board in 3D

    Plaid

    hsgw/plaid

    12x4 ortholinear usb keyboard made by Through Hole components ONLY.

    139 parts779MIT
  • 2 layers94.6 × 46.1 mmHeaterMeterPI, the printed circuit board in 3D

    HeaterMeterPI

    CapnBry/HeaterMeter

    HeaterMeter and LinkMeter Arduino BBQ Controller

    66 parts557MIT
  • 2 layers50 × 50 mmAvrcraft poed, the printed circuit board in 3D

    Avrcraft poed

    cnlohr/avrcraft

    Minecraft server optimized for 8-bit devices.

    58 parts471
  • 2 layers284.7 × 94.2 mmLumberjack, the printed circuit board in 3D

    Lumberjack

    peej/lumberjack-keyboard

    5x12 ortholinear through-hole component keyboard PCB for standard 60% cases

    165 parts403MIT
  • 2 layers132.1 × 45.7 mmIPoS, the printed circuit board in 3D

    IPoS

    peterheinrich/InternetOverSpaghetti

    Transmitting IP packages over a pair of spaghetti thus demonstrating how media independent IP really is.

    42 parts342
  • 2 layers63.3 × 57.2 mmRam Tester, the printed circuit board in 3D

    Ram Tester

    tops4u/Ram-Tester

    Ram Tester for vintage CBM Computer RAM Chips

    42 parts118
  • 2 layers285 × 117 mmTartan, the printed circuit board in 3D

    Tartan

    hsgw/tartan

    60% keyboard made by through-hole parts only

    171 parts98

Show this part on your page

A live frame, for any web page
<iframe src="https://pcbkit.io/embed/parts/microchip/ATMEGA328-PU" title="ATMEGA328-PU in PCBKit" width="100%" height="480" style="border:0;border-radius:12px" allow="fullscreen" loading="lazy"></iframe>
A picture
<img src="https://pcbkit.io/embed/parts/microchip/ATMEGA328-PU.jpg" alt="ATMEGA328-PU" width="1200" height="900">
A picture that opens the part, for a README
[![ATMEGA328-PU](https://pcbkit.io/embed/parts/microchip/ATMEGA328-PU.jpg?size=s)](https://pcbkit.io/parts/microchip/ATMEGA328-PU)

Questions

Is there a KiCad symbol and footprint for the ATMEGA328-PU?

Yes. The symbol is MCU_Microchip_ATmega:ATmega328-P and the footprint Package_DIP:DIP-28_W7.62mm, both drawn on this page. PCBKit places them on a board for you when you design with it.

What package is the ATMEGA328-PU?

PDIP-28, with 28 pins. Its footprint is drawn on this page.

Where is the ATMEGA328-PU datasheet?

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

Where can I order the ATMEGA328-PU?

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

What can replace the ATMEGA328-PU?

Parts like it in the library: the ATMEGA328P-PU by Microchip Technology, the PIC16F72-I/SP by Microchip Technology, the PIC16F883-I/SP by Microchip Technology and the PIC16F873A-I/SP by Microchip Technology. Check their datasheets: a part that fits the footprint may still differ in its ratings.

Which open-source boards use the ATMEGA328-PU?

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

Parts like it

8