Skip to the content
PCBKitNew board
1234567891011121314151617181920212223242526272829303132

ATMEGA328P-AN

Microchip Technology

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

Extended
DatasheetJLCPCBLCSCmicrochip/ATMEGA328P-AN
Category
Microcontrollers (MCU, MPU, SOC)
Package
TQFP-32(7x7)
Pins
32

Overview

The ATMEGA328P-AN is a microcontroller made by Microchip Technology in a TQFP-32(7x7) package with 32 pins. -40℃~+105℃ 1.8V~5.5V 10bit 1KB 20MHz 23 2KB 32KB 8 Bit AVR Built-in FLASH TQFP-32(7x7) Microcontrollers (MCU/MPU/SOC) ROHS.

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

Symbol

PD31PD42GND3VCC4XTAL1/PB67XTAL2/PB78PD59PD610PD711PB012PB113PB214PB315PB416PB517AVCC18ADC619AREF20ADC722PC023PC124PC225PC326PC427PC528RESET/PC629PD030PD131PD232
MCU_Microchip_ATmega:ATmega328P-AFrom KiCad's library

Footprint

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

From the datasheet

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

What it is and has

18
Core
AVR 8-bit microcontroller · p. 1
Instruction set
131 instructions, most single clock cycle · 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
8-bit timers
2, with separate prescaler and compare mode · p. 1
16-bit timers
1, with separate prescaler, compare mode, and capture mode · p. 1
ADC resolution
10-bit · p. 246
ADC integral non-linearity
0.5 LSB · p. 246
ADC absolute accuracy
± 2 LSB · p. 246
ADC conversion time
13 - 260µs · p. 246
ADC sampling rate
Up to 76.9kSPS; up to 15kSPS at maximum resolution · p. 246
ADC input channels
6 multiplexed single ended channels · p. 246
Additional ADC input channels
2 in TQFP and VQFN packages · p. 246
Temperature sensor
ADC input channel · p. 246
ADC reference
Selectable 1.1V · p. 246
Core
AVR 8-bit RISC · p. 1

Specifications

42
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 GroundUpper limit 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) ICCATmega328P; Active 1MHz, VCC = 2V; TA = -40°C to 85°C; typical at 25°C; minimizing power consumption enabledtyp 0.3 · max 0.5 mA312
Power Supply Current(1) ICCATmega328P; Active 4MHz, VCC = 3V; TA = -40°C to 85°C; typical at 25°C; minimizing power consumption enabledtyp 1.7 · max 2.5 mA312
Power Supply Current(1) ICCATmega328P; Active 8MHz, VCC = 5V; TA = -40°C to 85°C; typical at 25°C; minimizing power consumption enabledtyp 5.2 · max 9 mA312
Power Supply Current(1) ICCATmega328P; Idle 1MHz, VCC = 2V; TA = -40°C to 85°C; typical at 25°C; minimizing power consumption enabledtyp 0.04 · max 0.15 mA312
Power Supply Current(1) ICCATmega328P; Idle 4MHz, VCC = 3V; TA = -40°C to 85°C; typical at 25°C; minimizing power consumption enabledtyp 0.3 · max 0.7 mA312
Power Supply Current(1) ICCATmega328P; Idle 8MHz, VCC = 5V; TA = -40°C to 85°C; typical at 25°C; minimizing power consumption enabledtyp 1.2 · max 2.7 mA312
Power-save mode(3) ICCATmega328P; 32kHz TOSC enabled, VCC = 1.8V; TA = -40°C to 85°C; typical at 25°C; includes input leakage currenttyp 0.8 uA312
Power-save mode(3) ICCATmega328P; 32kHz TOSC enabled, VCC = 3V; TA = -40°C to 85°C; typical at 25°C; includes input leakage currenttyp 0.9 uA312
Power-down mode(3) ICCATmega328P; WDT enabled, VCC = 3V; TA = -40°C to 85°C; typical at 25°C; includes input leakage currenttyp 4.2 · max 8 uA312
Power-down mode(3) ICCATmega328P; WDT disabled, VCC = 3V; TA = -40°C to 85°C; typical at 25°C; includes input leakage currenttyp 0.1 · max 2 uA312
Operating TemperatureAbsolute maximum ratingsmin -55 · max 125 °C322
Storage Temperaturemin -65 · max 150 °C322
Voltage on any Pin except RESET with respect to Groundmin -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°Cmin -0.5 V322
Input Low Voltage, except XTAL1 and RESET pin VILVCC = 2.4V - 5.5V; TA = -40°C to 105°Cmin -0.5 V322
Input Low Voltage, XTAL1 pin VIL1VCC = 1.8V - 5.5V; TA = -40°C to 105°Cmin -0.5 V322
Input Low Voltage, RESET pin VIL2VCC = 1.8V - 5.5V; TA = -40°C to 105°Cmin -0.5 V322
Input Low Voltage, RESET pin as I/O VIL3VCC = 1.8V - 2.4V; TA = -40°C to 105°Cmin -0.5 V322
Input Low Voltage, RESET pin as I/O VIL3VCC = 2.4V - 5.5V; TA = -40°C to 105°Cmin -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
Power Supply Current(1) ICCATmega328P; Active 1MHz, VCC = 2V; TA = -40°C to 105°Ctyp 0.3 · max 0.5 mA325
Power Supply Current(1) ICCATmega328P; Active 4MHz, VCC = 3V; TA = -40°C to 105°Ctyp 1.7 · max 2.5 mA325
Power Supply Current(1) ICCATmega328P; Active 8MHz, VCC = 5V; TA = -40°C to 105°Ctyp 5.2 · max 9 mA325
Power Supply Current(1) ICCATmega328P; Idle 1MHz, VCC = 2V; TA = -40°C to 105°Ctyp 0.04 · max 0.15 mA325
Power Supply Current(1) ICCATmega328P; Idle 4MHz, VCC = 3V; TA = -40°C to 105°Ctyp 0.3 · max 0.7 mA325
Power Supply Current(1) ICCATmega328P; Idle 8MHz, VCC = 5V; TA = -40°C to 105°Ctyp 1.2 · max 2.7 mA325
Power-save mode(3) ICCATmega328P; 32kHz TOSC enabled, VCC = 1.8V; TA = -40°C to 105°Ctyp 0.8 uA325
Power-save mode(3) ICCATmega328P; 32kHz TOSC enabled, VCC = 3V; TA = -40°C to 105°Ctyp 0.9 uA325
Power-down mode(3) ICCATmega328P; WDT enabled, VCC = 3V; TA = -40°C to 105°Ctyp 4.2 · max 10 uA325
Power-down mode(3) ICCATmega328P; WDT disabled, VCC = 3V; TA = -40°C to 105°Ctyp 0.1 · max 5 uA325

Parameters

18
ADC (Bit)
10bit
CPU Core
AVR
CPU Maximum Speed
20MHz
Core Size
8 Bit
Current - Supply
5.2mA
Current - Supply(Max)
9mA
EEPROM
1KB
Features
Built-in temperature sensor
Number of I/O
23
Operating Temperature
-40℃~+105℃
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

2

Pinout

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

Open-source boards using it

All 6
  • 2 layers57.3 × 61 mmTobo, the printed circuit board in 3D

    Tobo

    eldstal/touchless-xm

    Physical buttons for media control on the Sony WH-1000XM2, WH-1000XM3, WH-1000XM4 and possibly WH-1000XM5 wireless headphones

    91 parts5
  • 4 layers51.2 × 34.3 mmMCU data logger, the printed circuit board in 3D

    MCU data logger

    chislonljoseph/MCU-data-logger

    MCU Data Logger PCB Design using KiCad

    29 parts
  • 2 layers39.8 × 36.2 mmProject 5, the printed circuit board in 3D

    Project 5

    gouravunair/Kicad_project5

    internship pcb designing

    29 parts
  • 4 layers47.5 × 36.9 mmMCU DataLogger, the printed circuit board in 3D

    MCU DataLogger

    graytrace/MCU_DataLogger

    PCB

    30 parts
  • 4 layers50 × 31.5 mmMCU Datalogger, the printed circuit board in 3D

    MCU Datalogger

    ikok07/MCU-Datalogger-KiCad-

    29 parts
  • 4 layers61.7 × 38.7 mmMCU data logger, the printed circuit board in 3D

    MCU data logger

    wazzeemsha/ATMEGA328P-DataLogger-PCB

    4-layer KiCad PCB design of an ATmega328P-AU based microcontroller data logger with dual EEPROMs, RTC, and complete manufacturing-ready Gerber files.

    29 parts

Show this part on your page

A live frame, for any web page
<iframe src="https://pcbkit.io/embed/parts/microchip/ATMEGA328P-AN" title="ATMEGA328P-AN 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/ATMEGA328P-AN.jpg" alt="ATMEGA328P-AN" width="1200" height="900">
A picture that opens the part, for a README
[![ATMEGA328P-AN](https://pcbkit.io/embed/parts/microchip/ATMEGA328P-AN.jpg?size=s)](https://pcbkit.io/parts/microchip/ATMEGA328P-AN)

Questions

Is there a KiCad symbol and footprint for the ATMEGA328P-AN?

Yes. The symbol is MCU_Microchip_ATmega:ATmega328P-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 ATMEGA328P-AN?

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

Where is the ATMEGA328P-AN datasheet?

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

Where can I order the ATMEGA328P-AN?

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

What can replace the ATMEGA328P-AN?

Parts like it in the library: the ATMEGA328P-AU by Microchip Technology, the ATMEGA48PA-AU by Microchip Technology, the ATMEGA328PB-AU by Microchip Technology and the ATMEGA88PA-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 ATMEGA328P-AN?

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

Parts like it

8