ATmega328P Datasheet

MicrochipMicrocontroller

8-bit microcontroller (MCU) with 32KB FLASH memory and 2KB RAM. Features an 8-bit PIC core architecture, operating at a maximum frequency of 20MHz. Offers 23 programmable I/O pins, 8 ADC channels, and 6 PWM channels. Supports I2C, SPI, and UART/USART interfaces. Packaged in a 32-pin TQFP with tin contact plating, suitable for surface mounting. Operates within a supply voltage range of 1.8V to 5.5V and an extended temperature range of -40°C to 85°C. Includes integrated peripherals like Brown-out Detect/Reset, POR, and WDT.

The ATmega328/P is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture, featuring 32KBytes of Flash, 2KBytes of SRAM, and 1KBytes of EEPROM. It is designed for embedded control and touch applications, offering a highly flexible and cost-effective solution. The device supports various low-power sleep modes and peripherals like timers, ADC, SPI, and USART to optimize power consumption versus processing speed.

Download PDF

ATmega328P Key Specifications

Max Frequency
20MHz
Max Supply Voltage
5.5V
Memory Size
32KB
Memory Type
FLASH,
Min Supply Voltage
1.8V
Number of ADC Channels
8
Number of I2C Channels
1
Number of PWM Channels
6

ATmega328P Pinout (28-pin PDIP (28P3), 32-lead TQFP (32A), 28-pad QFN/MLF (28M1), 32-pad QFN/MLF (32M1-A))

PinNameFunction
1PC6PCINT14 / RESET
2PD0PCINT16 / RXD
3PD1PCINT17 / TXD
4PD2PCINT18 / INT0
5PD3PCINT19 / OC2B / INT1
6PD4PCINT20 / XCK / T0
7VCCPower Supply
8GNDGround
9PB6PCINT6 / XTAL1 / TOSC1
10PB7PCINT7 / XTAL2 / TOSC2
11PD5PCINT21 / OC0B / T1
12PD6PCINT22 / OC0A / AIN0
13PD7PCINT23 / AIN1
14PB0PCINT0 / CLKO / ICP1
15PB1OC1A / PCINT1
16PB2SS / OC1B / PCINT2
17PB3MOSI / OC2A / PCINT3
18PB4MISO / PCINT4
19PB5SCK / PCINT5
20AVCCAnalog Power Supply
21AREFAnalog Reference Voltage
22GNDGround
23PC0ADC0 / PCINT8
24PC1ADC1 / PCINT9
25PC2ADC2 / PCINT10
26PC3ADC3 / PCINT11
27PC4ADC4 / SDA / PCINT12
28PC5ADC5 / SCL / PCINT13

From the ATmega328P datasheet. Check the PDF for package-specific pin numbering.

Characteristics (datasheet)

Operating Voltage
1.8 - 5.5V
Temperature Range
-40°C to 105°C
Max Speed Grade
0 - 20MHz @ 4.5 - 5.5V
Active Mode Power Consumption
0.2mA @ 1MHz, 1.8V, 25°C
Power-down Mode Power Consumption
0.1μA @ 1.8V, 25°C
Power-save Mode Power Consumption
0.75μA (including 32kHz RTC) @ 1.8V, 25°C
Flash Memory Size
32KBytes
SRAM Size
2KBytes
EEPROM Size
1KBytes

ATmega328P Applications

  • Embedded control applications
  • Capacitive touch sensing applications (buttons, sliders, wheels)

ATmega328P Package

Package/Case
TQFP
Mount
Surface Mount

The full pin configuration and pin descriptions are in the ATmega328P PDF datasheet above.

ATmega328P Equivalents & Similar Components

Drop-in equivalents

Same package and key ratings at least as high.

Similar parts

Matching key ratings; package or pinout may differ.

ATmega328PB

8-bit RISC microcontroller featuring 32KB FLASH program memory and 2KB RAM. Operates at a maximum clock frequency of 20MHz with 27 I/O lines. This industrial-grade component supports a supply voltage range of 4.5V to 5.5V, with a nominal 5V. Includes PWM channels and an ADC, housed in a 32-terminal, 7x7mm S-PQFP-G32 package. Operating temperature range is -40°C to 85°C.

MicrochipMicrocontrollers
73 19

ATMEGA328PB-AU

8-Bit MCU, 32KB Flash, 20MHz, 32-Pin TQFP, Industrial

MicrochipMicrocontrollers
67 17

ATMEGA328P-PU

8-bit AVR microcontroller featuring 32KB FLASH memory and 2KB RAM. Operates at up to 20MHz with 23 I/O pins. Supports I2C, SPI, USART, and UART interfaces. Includes 6 ADC channels, 6 PWM channels, and 3 timers. Packaged in a 28-pin PDIP for through-hole mounting.

MicrochipMicrocontrollers
87 14

ATMEGA328-PU

8-bit AVR microcontroller featuring 32KB FLASH memory and 2KB RAM. Operates at up to 20MHz with an 8-bit data bus. Offers 23 I/Os, 6 ADC channels, 6 PWM channels, and 3 timers/counters. Includes I2C and SPI interfaces, POR, WDT, and operates from 1.8V to 5.5V. Packaged in a 28-pin PDIP for through-hole mounting, with an operating temperature range of -40°C to 85°C.

MicrochipMicrocontrollers
64 15

ATMEGA328P-AUR

8-Bit 32KB FLASH MCU, 20MHz, 23 I/O, TQFP, I2C, SPI, UART

MicrochipMicrocontrollers
78 21

ATmega32

8-bit AVR microcontroller featuring 32KB FLASH memory and 2KB RAM. Operates at up to 16MHz with an 8-bit address and data bus. Offers 32 I/O pins, 8 ADC channels, 4 PWM channels, and interfaces including SPI, USART, and 2-Wire. Packaged in a 44-TQFP surface mount configuration, this lead-free component supports a supply voltage range of 4.5V to 5.5V and operates from -40°C to 85°C. Includes peripherals like POR, PWM, and WDT.

MicrochipMicrocontrollers
76 18

Check pinout and ratings in both datasheets before substituting.

Other Microchip parts

  • KSZ8463RLI — 3-Port 100Mbps LQFP-64 Managed Switch
  • ATmega4809 — Automotive-grade 16-bit RISC microcontroller featuring a maximum clock frequency...
  • PIC16F1829-I/SO — 8-bit RISC Flash Microcontroller, operating at up to 32MHz. Features 14KB Flash...
  • MCP4921-E/P — 12-bit, single-channel digital-to-analog converter (DAC) with SPI serial interfa...
  • ATtiny13A-PU — 8-bit AVR RISC microcontroller featuring 1KB Flash program memory and 64B RAM....
  • PIC18F25K22-I/SO — 8-bit RISC microcontroller featuring 64MHz clock speed and 32KB FLASH memory. T...
  • WV3EG232M64STSU335D4ING — DDR SDRAM 512MB 200-SODIMM 333MHz 64-bit USODIMM
  • PIC18F27Q43-I/SO — 8-bit RISC microcontroller featuring 128KB Flash, 8KB RAM, and 1KB EEPROM. Offe...

More Microcontrollers

  • STM32F407VET6 — 32-bit ARM Cortex-M4 microcontroller featuring a 168MHz CPU with DSP and FPU cap...
  • STM32F103C8T6 — 32-bit ARM Cortex-M3 microcontroller featuring a 72 MHz CPU and 64KB FLASH memor...
  • STM32H743VIT6 — ARM® Cortex®-M7 STM32H7 Microcontroller IC 32-Bit 480MHz 2MB (2M x 8) FLASH 100-...
  • ESP32 — The ESP32-WROOM-32E-N4 is a powerful, generic Wi-Fi + BT + BLE MCU module design...
  • STM32G431C8T6 — Mainstream Arm Cortex-M4+ MCU 170MHz with 64Kbytes of Flash memory, Math Acceler...
  • STM32F429ZGT6 — The STM32F429ZGT6 is a 32-bit ARM microcontroller with a maximum frequency of 18...
  • PIC18F4550 — 8-bit PIC RISC microcontroller featuring 32KB Flash memory and 2KB RAM. Operates...
  • C8051F921-F-GM — MCU 8-bit C8051F92x 8051 CISC 32KB Flash 1.8V/2.5V/3.3V 24-Pin QFN EP

Compare ATmega328P

ATmega328P belongs to the ATmega AVR Microcontrollers family — see all its parts in one comparison table.

ATmega328P FAQ

What is ATmega328P?

ATmega328P is a Microcontroller from Microchip. 8-bit microcontroller (MCU) with 32KB FLASH memory and 2KB RAM. Features an 8-bit PIC core architecture, operating at a maximum frequency of 20MHz. Offers 23 programmable I/O pins, 8 ADC channels, and 6 PWM channels. Supports I2C, SPI, and UART/USART interfaces. Packaged in a 32-pin TQFP with tin contact plating, suitable for surface mounting. Operates within a supply voltage range of 1.8V to 5.5V and an extended temperature range of -40°C to 85°C. Includes integrated peripherals like Brown-out Detect/Reset, POR, and WDT.

Who manufactures ATmega328P?

ATmega328P is manufactured by Microchip.

What package and pinout does ATmega328P have?

ATmega328P comes in TQFP package, surface mount mounting. The pin configuration and pin descriptions are given in the PDF datasheet.

What is the pinout of ATmega328P?

ATmega328P has 28 pins listed in its datasheet: pin 1 PC6, pin 2 PD0, pin 3 PD1, pin 4 PD2, pin 5 PD3, pin 6 PD4, pin 7 VCC, pin 8 GND, …. The full pin table is shown above.

What is the operating temperature range of ATmega328P?

ATmega328P operates from -40°C to 85°C.

Where can I download the ATmega328P datasheet PDF?

The ATmega328P datasheet PDF (363 KB) can be downloaded free from this page using the Download PDF button.

What are the equivalents or alternatives to ATmega328P?

Parts with a similar function (Microcontroller) include ATmega328, ATMEGA328P-AU, ATMEGA328P-AN. Always compare pinout and electrical ratings in both datasheets before substituting.

Specifications

Manufacturer
Microchip
File Size
363 KB

Ask AI Assistant

Ask questions about ATmega328P specifications

AI Powered

Click to ask a quick question:

Parameters

Contact PlatingTin
Core ArchitecturePIC
Data Bus Width8b
Height1.2mm
InterfaceI2C, SPI, UART, USART
Lead FreeLead Free
Max Frequency20MHz
Max Operating Temperature85°C
Max Supply Voltage5.5V
Memory Size32KB
Memory TypeFLASH,
Min Operating Temperature-40°C
Min Supply Voltage1.8V
MountSurface Mount
Number of ADC Channels8
Number of I2C Channels1
Number of I/Os23
Number of Programmable I/O23
Number of PWM Channels6
Number of SPI Channels2
Number of Timers/Counters3
Number of UART Channels1
Oscillator TypeInternal
Package/CaseTQFP
PackagingCut Tape
PeripheralsBrown-out Detect/Reset, POR, PWM, WDT
RAM Size2KB
Reach SVHC CompliantNo
RoHSCompliant
RoHS CompliantYes
SeriesPIC® 18F
Watchdog TimerYes