Verified by our editorial teamDatasheet verified

atmega328 datasheet

Summary of atmega328 datasheet The ATmega328 is a low-power 8-bit microcontroller based on AVR enhanced RISC architecture, offering approximately 1 MIPS per MHz to balance power and speed. Officially released by Atmel, its datasheet covers full functionality and assembly details, serving queries for variants like the ATmega328p and ATmega328p-pu. Parts used in the ATmega328 Microcontroller […]

Author avatar
By Ibrar Ayyub
Published May 5, 2012
At a glance
CategoryDatasheets
DifficultyBeginner
IncludesArticle
UpdatedNovember 24, 2026
Reading timeabout 3 min
On this page

Summary of atmega328 datasheet


The ATmega328 is a low-power 8-bit microcontroller based on AVR enhanced RISC architecture, offering approximately 1 MIPS per MHz to balance power and speed. Officially released by Atmel, its datasheet covers full functionality and assembly details, serving queries for variants like the ATmega328p and ATmega328p-pu.

Parts used in the ATmega328 Microcontroller Project:

  • ATmega328 microcontroller
  • AVR enhanced RISC architecture chip
  • Atmel official datasheet (PDF)

The ATmega328 and ATmega328P share one datasheet from Microchip (the company that now owns Atmel), document DS40002061B. It also covers the ATmega48A, 48PA, 88A, 88PA, 168A and 168PA. The PDF has 653 pages, so this page links to it and then shows which page holds each part you are likely to need.

HOW THIS PAGE WAS CHECKED

Datasheet verified by us. We opened revision DS40002061B (2020), read its table of contents and checked every page number in the table below against that file. The summary figures were read from the pages named next to them. Microchip may publish a newer revision, so the link below goes to Microchip’s own copy, not to a copy on this site.

DOWNLOAD

ATmega328 / ATmega328P datasheet (PDF, Microchip)

Opens Microchip’s copy in a new tab. Document DS40002061B, 653 pages.
32 KB
flash
2 KB
SRAM
1 KB
EEPROM
20 MHz
top clock at 4.5 V to 5.5 V
1.8 to 5.5 V
supply range

Where to find things in the datasheet

Page numbers are the numbers printed at the foot of each page, which are also the page numbers in a PDF viewer. The links open the PDF at that page.

What you are looking for Page Open the PDF there
Pin configurations and pin descriptions 12 Go to page 12
Block diagram and the family comparison table 15 Go to page 15
AVR CPU core and registers 18 Go to page 18
Memories: flash, SRAM, EEPROM 26 Go to page 26
Clock sources and the clock prescaler 36 Go to page 36
Sleep modes and power saving 48 Go to page 48
Reset sources, brown-out and the watchdog timer 56 Go to page 56
Interrupt vectors for the ATmega328 and 328P 74 Go to page 74
I/O ports and alternate pin functions 84 Go to page 84
Timer/Counter0 (8-bit, PWM) 102 Go to page 102
Timer/Counter1 (16-bit, PWM, input capture) 120 Go to page 120
Timer/Counter2 (8-bit, PWM, asynchronous) 150 Go to page 150
SPI 169 Go to page 169
USART0 and the baud rate tables 179 Go to page 179
Two-wire serial interface (I2C) 215 Go to page 215
Analog comparator 243 Go to page 243
Analog-to-digital converter 246 Go to page 246
Boot loader support 272 Go to page 272
Fuse bits and lock bits 289 Go to page 289
Signature bytes 293 Go to page 293
Serial downloading (ISP programming) 303 Go to page 303
Electrical characteristics, 85 °C 308 Go to page 308
Speed grades (maximum clock against supply voltage) 312 Go to page 312
Typical characteristics, ATmega328P 501 Go to page 501
ATmega328 or ATmega328P? The same datasheet covers both. They have the same pins and memory, and report different signature bytes (0x1E 0x95 0x14 and 0x1E 0x95 0x0F, page 293). Typical characteristic graphs are printed separately for each, on page 477 and page 501.

The numbers most people look up

Item Value Datasheet
Flash, EEPROM, SRAM 32 KB, 1 KB, 2 KB (datasheet p. 16)
I/O lines 23 (28-pin package) (datasheet p. 16)
Timers Two 8-bit and one 16-bit (datasheet p. 1)
ADC 6 channels, 10-bit in the 28-pin package (8 channels in TQFP and VQFN) (datasheet p. 16)
Flash and EEPROM endurance 10,000 and 100,000 write/erase cycles (datasheet p. 1)
Maximum clock 20 MHz at 4.5 V to 5.5 V, 10 MHz at 2.7 V, 4 MHz at 1.8 V (datasheet p. 312)
Default clock from the factory Internal 8 MHz oscillator with CKDIV8 programmed: 1 MHz (datasheet p. 37)
Absolute maximum per I/O pin 40 mA (a damage limit, not a working value) (datasheet p. 308)

Quick answers

Is there a separate ATmega328P-PU datasheet?
No. One document covers the chip in all the packages shown on its page 12, so the same PDF applies whatever letters follow the name in a part number.
Why do some pages say ATmega48 or 168?
The datasheet covers six related chips. Use the sections and tables that name the ATmega328 or ATmega328P, such as the interrupt vector list on page 74.
Where is the pinout?
Page 12. Our ATmega328P pinout page redraws it with the alternate functions and the Arduino pin names.
Does this site host a copy of the PDF?
No. The link goes to Microchip’s own file, so you get the version Microchip currently serves.

Project variants: the ATmega328 family

Related projects: other AVR chips

Datasheet and downloads

Share this project
X
LinkedIn
Reddit
WhatsApp

Quick Solutions to Questions related to ATmega328 Microcontroller Project:

  • What is the ATmega328?
    It is a low-power CMOS 8 bit microcontroller based on AVR enhanced RISC architecture.
  • How much throughput does the ATmega328p achieve?
    It achieves throughput approaching 1 MIPS per MHz.
  • Who officially released the ATmega328?
    The chip was officially released by Atmel.
  • Does the current datasheet cover the ATmega328p variant?
    Yes, the current datasheet serves all queries including atmega 328p.
  • What information is included in the datasheet document?
    It contains all specs of the chip from functionality to an assembly point of view.
  • Can the system designer optimize power consumption versus processing speed?
    Yes, the architecture allows designers to optimize power consumption versus processing speed.
  • Is there a PDF version of the datasheet available?
    Yes, a pdf version of the atmega328 datasheet is provided for download.
Scroll to Top