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.
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.
ATmega328 / ATmega328P datasheet (PDF, Microchip)
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 |
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
More from this site
Project variants: the ATmega328 family
- ATmega328P microcontroller: pinout, alternate functions and limits
- ATmega328P standalone board: running the chip without an Arduino board
- Introduction to Arduino UNO (uses AVR ATmega328): the Uno built around this chip
Related projects: other AVR chips
- AVR Atmega8 microcontroller architecture and applications: a smaller AVR
- Using Atmega32 with Arduino IDE: a larger 40-pin AVR
- AVR microcontroller tutorials for beginners: where to start with AVR
Datasheet and downloads
- 📄 ATmega48A/PA/88A/PA/168A/PA/328/P datasheet (DS40002061B)
PDF from the maker, Microchip. Opens in a new tab.
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.
