Skip to main content

We use cookies to understand how you use our site and improve your experience. See our Privacy Policy.

ATMEGA328P-PU

8-bit AVR Microcontroller

The ATMEGA328P-PU is a 8-bit avr microcontroller from Microchip Technology. View the full ATMEGA328P-PU datasheet below including key specifications, electrical characteristics, absolute maximum ratings.

Official ATMEGA328P-PU datasheet (PDF) — the source this page was extracted from.

Package

28-DIP (0.300", 7.62mm)

ATMEGA328P-PU Key Specifications

ParameterValue
ConnectivityI2C, SPI, UART/USART
Core ProcessorAVR
Core Size8-Bit
Data ConvertersA/D 6x10b
DigiKey ProgrammableVerified
EEPROM Size1K x 8
Mounting TypeThrough Hole
Number of I/O23
Operating Temperature-40°C ~ 85°C (TA)
Oscillator TypeInternal
Package / Case28-DIP (0.300", 7.62mm)
PackagingTube
PeripheralsBrown-out Detect/Reset, POR, PWM, WDT
Flash Memory Size32KB (16K x 16)
Program Memory TypeFLASH
RAM Size2K x 8 B
Clock Speed20MHz
Standard Pack Qty14
Supplier Device Package28-PDIP
Supply Voltage1.8V ~ 5.5V

ATMEGA328P-PU Overview

Part: ATmega328P (ATMEGA328P-PU) — Atmel

Type: 8-bit AVR Microcontroller

Description: Low-power 8-bit AVR RISC microcontroller with 32 KB in-system self-programmable flash, 1 KB EEPROM and 2 KB SRAM, running at up to 16 MHz (16 MIPS) from 2.7–5.5 V.

Operating Conditions:

  • Supply voltage: 2.7–5.5 V
  • Operating temperature: -40 to +125 °C (automotive grade)
  • Speed grade: 0–8 MHz at 2.7–5.5 V; 0–16 MHz at 4.5–5.5 V

Absolute Maximum Ratings:

  • Max operating voltage: 6.0 V
  • Voltage on any pin except RESET: -0.5 V to VCC + 0.5 V
  • Voltage on RESET: -0.5 V to +13.0 V
  • DC current per I/O pin: 40.0 mA
  • DC current VCC and GND pins: 200.0 mA
  • Injection current: ±5.0 mA at VCC = 0 V (max ±30 mA per port); ±1.0 mA at VCC = 5 V
  • Operating temperature: -55 to +125 °C
  • Storage temperature: -65 to +150 °C

Key Specs:

  • CPU: 131 instructions, mostly single-cycle; 32 × 8 general purpose registers; on-chip 2-cycle multiplier
  • Memory: 32 KB flash (10,000 write/erase cycles), 1 KB EEPROM (100,000 cycles), 2 KB SRAM
  • I/O: 23 programmable I/O lines
  • ADC: 10-bit, 8 channels in TQFP/QFN/MLF (6 channels in other packages)
  • Timers: two 8-bit and one 16-bit Timer/Counter; six PWM channels; real-time counter with separate oscillator
  • Active current: 1.5 mA at 3 V, 4 MHz
  • Power-down current: 1 μA at 3 V
  • Data retention: projected failure rate much less than 1 PPM over 20 years at 85 °C or 100 years at 25 °C

Features:

  • Advanced RISC architecture, fully static operation
  • Read-while-write self-programming flash with optional boot section and lock bits
  • USART, SPI master/slave and byte-oriented 2-wire interface (I²C compatible)
  • Programmable watchdog timer with separate on-chip oscillator
  • On-chip analog comparator and temperature measurement
  • Pin-change interrupt and wake-up
  • Power-on reset and programmable brown-out detection
  • Internal calibrated oscillator
  • Six sleep modes: Idle, ADC noise reduction, power-save, power-down, standby, extended standby
  • AEC-Q100 grade 1 qualified

Applications:

  • Automotive and embedded control applications

Package:

  • 32-lead TQFP
  • 32-pad QFN/MLF

ATMEGA328P-PU Features

  • High performance, low power AVR ® 8-bit microcontroller
  • Advanced RISC architecture
  • 131 powerful instructions - most single clock cycle execution
  • 32 8 general purpose working registers
  • Fully static operation
  • Up to 16MIPS throughput at 16MHz
  • On-chip 2-cycle multiplier
  • High endurance non-volatile memory segments
  • 32K bytes of in-system self-programmable flash program memory
  • 1Kbytes EEPROM
  • 2Kbytes internal SRAM
  • Write/erase cycles: 10,000 flash/100,000 EEPROM
  • Optional boot code section with independent lock bits
  • In-system programming by on-chip boot program
  • True read-while-write operation
  • Programming lock for software security
  • Peripheral features
  • Two 8-bit Timer/Counters with separate prescaler and compare mode
  • One 16-bit Timer/Counter with separate prescaler, compare mode, and capture mode
  • Real time counter with separate oscillator
  • Six PWM channels
  • 8-channel 10-bit ADC in TQFP and QFN/MLF package
  • Temperature measurement
  • Programmable serial USART
  • Master/slave SPI serial interface
  • Byte-oriented 2-wire serial interface (Phillips I 2 C compatible)
  • Programmable watchdog timer with separate on-chip oscillator
  • On-chip analog comparator
  • Interrupt and wake-up on pin change
  • Special microcontroller features
  • Power-on reset and programmable brown-out detection
  • Internal calibrated oscillator
  • External and internal interrupt sources
  • Six sleep modes: Idle, ADC noise reduction, power-save, power-down, standby, and extended standby

ATMEGA328P-PU Pin Configuration

Figure 1-1. Pinout

ATMEGA328P-PU Electrical Characteristics

All DC/AC characteristics contained in this datasheet are based on characterization of Atmel ® ATmega328P AVR ® microcontroller manufactured in an automotive process technology.

ATMEGA328P-PU Absolute Maximum Ratings

Stresses beyond those listed under 'Absolute Maximum Ratings' may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.

ParametersMin.Typ.Max.Unit
Operating temperature-55+125°C
Storage temperature-65+150°C
Voltage on any pin except RESET with respect to ground-0.5V CC + 0.5V
Voltage on RESET with respect to ground-0.5+13.0V
Maximum operating voltage6.0V
DC current per I/O pin40.0mA
DC current V CC and GND pins200.0mA
Injection current at V CC = 0V±5.0 (1)mA
Injection current at V CC = 5V±1.0mA

Note: 1. Maximum current per port = ±30mA

Variants on the same datasheet

These parts have exact links to the same datasheet. They are candidates to compare, not verified drop-in replacements; check package, pinout and electrical limits.

Part NumberManufacturerPackage
ATmega328PMicrochip Technology32-lead TQFP
ATMEGA328P-15AZMicrochip Technology—
ATMEGA328P-15MZMicrochip Technology—

Other Microcontrollers (MCU)

  • STM32F407VET6 – STMicroelectronics, ARM Cortex-M4 MCU
  • STM32H563ZIT6 – STMicroelectronics, Arm Cortex-M33 32-bit MCU
  • RP2040 – Raspberry Pi, Microcontroller
  • STM32H743VIT6 – STMicroelectronics, Microcontroller Unit (MCU)
  • STM32U575RIT6 – STMicroelectronics, Ultra-low-power Arm Cortex-M33 32-bit MCU
  • STM32L011F4U6 – STMicroelectronics, Ultra-low-power Arm Cortex-M0+ MCU
  • GD32F103C8T6 – GigaDevice, Arm Cortex-M3 32-bit MCU
  • CH32H417QEU6 – WCH, Dual-Core RISC-V Microcontroller

All Microcontrollers (MCU) datasheetsAll Microchip Technology datasheets (599)

Data on this page is extracted from publicly available manufacturer datasheets using automated tools including AI. It may contain errors or omissions. Always verify specifications against the official manufacturer datasheet before making design or purchasing decisions. See our Terms of Service. Rights holders can submit a takedown request.

Ask your AI agent about the ATMEGA328P-PU

Connect SheetsData to Claude, Cursor, Codex or any MCP client and your agent reads this datasheet for you: pinout, limits, register maps and design checks, with the numbers taken from the PDF.

claude mcp add --transport http sheetsdata https://mcp.sheetsdata.com/mcp

Then ask: "Can the ATMEGA328P-PU run from my 12 V rail? Check it against the datasheet limits."

Create a free account $2 of usage every month, no card needed.