ATmega328P Datasheet
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.
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))
| Pin | Name | Function |
|---|---|---|
| 1 | PC6 | PCINT14 / RESET |
| 2 | PD0 | PCINT16 / RXD |
| 3 | PD1 | PCINT17 / TXD |
| 4 | PD2 | PCINT18 / INT0 |
| 5 | PD3 | PCINT19 / OC2B / INT1 |
| 6 | PD4 | PCINT20 / XCK / T0 |
| 7 | VCC | Power Supply |
| 8 | GND | Ground |
| 9 | PB6 | PCINT6 / XTAL1 / TOSC1 |
| 10 | PB7 | PCINT7 / XTAL2 / TOSC2 |
| 11 | PD5 | PCINT21 / OC0B / T1 |
| 12 | PD6 | PCINT22 / OC0A / AIN0 |
| 13 | PD7 | PCINT23 / AIN1 |
| 14 | PB0 | PCINT0 / CLKO / ICP1 |
| 15 | PB1 | OC1A / PCINT1 |
| 16 | PB2 | SS / OC1B / PCINT2 |
| 17 | PB3 | MOSI / OC2A / PCINT3 |
| 18 | PB4 | MISO / PCINT4 |
| 19 | PB5 | SCK / PCINT5 |
| 20 | AVCC | Analog Power Supply |
| 21 | AREF | Analog Reference Voltage |
| 22 | GND | Ground |
| 23 | PC0 | ADC0 / PCINT8 |
| 24 | PC1 | ADC1 / PCINT9 |
| 25 | PC2 | ADC2 / PCINT10 |
| 26 | PC3 | ADC3 / PCINT11 |
| 27 | PC4 | ADC4 / SDA / PCINT12 |
| 28 | PC5 | ADC5 / 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.
ATmega328
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.
ATMEGA328P-AU
8-bit AVR microcontroller featuring 32KB FLASH memory and 2KB RAM. Operates at up to 20MHz with an 8-bit data bus. Offers 23 programmable I/O pins, 6 PWM channels, and 3 timers/counters. Supports I2C, SPI, and USART interfaces. Packaged in a 32-pin TQFP for surface mounting, with a wide operating temperature range of -40°C to 85°C.
ATMEGA328P-AN
8-bit AVR microcontroller featuring 32KB FLASH memory and 2KB RAM. Operates at up to 20MHz with an 8-bit data bus width. Offers I2C, SPI, and UART/USART interfaces, 8 ADC channels, and 6 PWM channels. Includes 3 timers/counters and internal oscillator. Surface mountable in a 32-pin TQFP package, operating from 1.8V to 5.5V, with a temperature range of -40°C to 105°C.
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.
ATMEGA328PB-AU
8-Bit MCU, 32KB Flash, 20MHz, 32-Pin TQFP, Industrial
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.
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.
ATMEGA328P-AUR
8-Bit 32KB FLASH MCU, 20MHz, 23 I/O, TQFP, I2C, SPI, UART
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.
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
- Category
- SemiconductorsMicrocontrollers
- File Size
- 363 KB
Ask AI Assistant
Ask questions about ATmega328P specifications
Click to ask a quick question:
Parameters
| Contact Plating | Tin |
| Core Architecture | PIC |
| Data Bus Width | 8b |
| Height | 1.2mm |
| Interface | I2C, SPI, UART, USART |
| Lead Free | Lead Free |
| Max Frequency | 20MHz |
| Max Operating Temperature | 85°C |
| Max Supply Voltage | 5.5V |
| Memory Size | 32KB |
| Memory Type | FLASH, |
| Min Operating Temperature | -40°C |
| Min Supply Voltage | 1.8V |
| Mount | Surface Mount |
| Number of ADC Channels | 8 |
| Number of I2C Channels | 1 |
| Number of I/Os | 23 |
| Number of Programmable I/O | 23 |
| Number of PWM Channels | 6 |
| Number of SPI Channels | 2 |
| Number of Timers/Counters | 3 |
| Number of UART Channels | 1 |
| Oscillator Type | Internal |
| Package/Case | TQFP |
| Packaging | Cut Tape |
| Peripherals | Brown-out Detect/Reset, POR, PWM, WDT |
| RAM Size | 2KB |
| Reach SVHC Compliant | No |
| RoHS | Compliant |
| RoHS Compliant | Yes |
| Series | PIC® 18F |
| Watchdog Timer | Yes |