Opens in a new tab

ATMEGA328P-PU

8-bit AVR MCU, 20MHz, 32KB Flash, 2KB SRAM, 1KB EEPROM, 28-PDIP

9409

Effective Inventory

Image for reference only

Manufacturer Part:

ATMEGA328P-PU

Package:

28-PDIP (37.4 x 6.76 x 3.28mm)

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Description

Product Overview

The ATMEGA328P-PU from Microchip Technology is an 8-bit AVR RISC microcontroller with 32KB Flash, 2KB SRAM, 1KB EEPROM, 23 I/O lines, 10-bit ADC, SPI, I2C, UART, and 6 PWM channels, operating at 20MHz and 1.8V-5.5V in a 28-pin PDIP through-hole package.

Key Specifications

Manufacturer Microchip Technology
Core AVR 8-bit RISC
Max Clock Speed 20MHz
Flash Memory 32KB
SRAM 2KB
EEPROM 1KB
I/O Pins 23
ADC 10-bit, 6 channels (PDIP)
PWM Channels 6
Timers 2x 8-bit, 1x 16-bit
Interfaces SPI, I2C (TWI), USART
Operating Voltage 1.8V to 5.5V
Package 28-PDIP (through-hole)
Operating Temperature -40C to +85C

Features

  • High-performance picoPower AVR RISC architecture
  • 131 instructions, most single-clock-cycle execution
  • 32 x 8 general-purpose working registers
  • Up to 20 MIPS throughput at 20MHz
  • 32KB ISP Flash with read-while-write
  • 1KB EEPROM with 100,000 write/erase cycles
  • 2KB internal SRAM
  • Six software-selectable power-saving modes
  • On-chip analog comparator and watchdog timer
  • QTouch library support for capacitive sensing

Applications

  • Arduino Uno, Nano, and Pro Mini platforms
  • Embedded control systems
  • Consumer electronics
  • Motor control and automation
  • Sensor interfacing and data logging
Product Introduction: ATMEGA328P-PU Product Introduction

The Microchip ATMEGA328P-PU is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the ATmega328P achieves throughputs approaching 1 MIPS/MHz, balancing power consumption and processing speed. The device features 32KB ISP Flash, 1KB EEPROM, 2KB SRAM, 23 general-purpose I/O lines, three flexible timers with PWM, a USART, SPI, TWI (I2C), a 10-bit ADC, watch-dog timer, analog comparator, and six software-selectable power-saving modes. The picoPower technology reduces power consumption to 0.2mA at 1MHz/1.8V active and 0.1uA in power-down mode. The 28-PDIP package makes it ideal for prototyping and hobbyist projects, most notably the Arduino Uno.

Working Principle: ATMEGA328P-PU Working Principle

The ATMEGA328P-PU operates as a complete 8-bit microcontroller system: 1) AVR Core: The enhanced RISC CPU executes 131 instructions with a 2-stage pipeline, achieving nearly 1 instruction per clock cycle. All 32 general-purpose registers are directly connected to the ALU, allowing two independent registers to be accessed in one instruction. 2) Memory: 32KB Flash stores program code with ISP capability. 1KB EEPROM provides non-volatile data storage. 2KB SRAM handles runtime data and stack operations. 3) Peripherals: The 10-bit ADC converts analog inputs with +/-2LSB accuracy. Three timers provide PWM, input capture, and waveform generation. SPI, TWI, and USART enable serial communication. 4) Power Management: Six sleep modes (idle, ADC noise reduction, power-save, power-down, standby, extended standby) allow optimization for minimal power consumption.

Pin Description: ATMEGA328P-PU Pin Definition and Functions
Pin Name Type Function
1 PC6/RESET I/O Port C6 / Reset (active low)
2-3 PD0-PD1/RXD/TXD I/O Port D0-D1 / USART RX/TX
4-5 PD2-PD3/INT0/INT1 I/O Port D2-D3 / External interrupts
6-11 PD4-PD9/T1/AIN1 I/O Port D4-D9 with alternate functions
12-13 PB6-PB7/XTAL I/O Port B6-B7 / Crystal oscillator
14-19 PB0-PB5/SS/MOSI/MISO/SCK I/O Port B0-B5 / SPI and timer functions
20 AVCC Power Analog supply voltage
21 AREF Reference Analog reference
22 GND Ground Ground
23-28 PC0-PC5/ADC0-ADC5/SDA/SCL I/O Port C0-C5 / ADC and I2C
Application Scenarios: In which products and applications is ATMEGA328P-PU used
  • Arduino Uno and compatible board core MCU
  • Embedded control with UART/SPI/I2C peripheral integration
  • Low-power sensor node with sleep mode operation
Alternative Models: What chips are recommended as replacements for ATMEGA328P-PU
Manufacturer Part Number Package Notes
Microchip ATMEGA328PB-PU 28-PDIP Enhanced version with more peripherals
Microchip ATMEGA328P-AU 32-TQFP SMD version, 8 ADC channels
Microchip ATMEGA168P-PU 28-PDIP 16KB Flash, lower cost
ST STM8S005K6T6C 32-LQFP 8-bit alternative, STM8 core

Recommend Parts

ISL95855HRTZ-T

IMVP8 3+2+1 phase buck controller, R3 technology, 4.5-25V input, 48-TQFN

Brand: Renesas

Package: 48-TQFN (6×6 mm, exposed pad)

IN STOCK: 2156pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRFB4019PBF

150V N-Channel HEXFET Power MOSFET, 47A, 34 mΩ RDS(on), TO-220AB

Brand: infineon

Package: TO-220AB

IN STOCK: 2409pcs

Cargo cycle: 3-7 Days

The minimum order is 1

MSP430F247TPMR

TI MSP430 MCU, 16-bit RISC, 92KB Flash, 8KB RAM, 16MHz, LQFP-64

Package: See datasheet

IN STOCK: 13371pcs

Cargo cycle: 3-7 Days

The minimum order is 1

UCC28740DR

CVCC Flyback Controller, 700V startup, opto feedback, <10mW no-load, SOIC-7

Brand: TI

Package: SOIC-7 (4.9 x 3.9 x 1.75 mm)

IN STOCK: 4840pcs

Cargo cycle: 3-7 Days

The minimum order is 1

MMUN2211LT1G

NPN digital transistor, R1=10kΩ R2=10kΩ, 50V, 100mA, SOT-23-3, pre-biased BRT switch

Brand: Onsemi

Package: SOT-23-3 (TO-236, SC-59)

IN STOCK: 8500pcs

Cargo cycle: 3-7 Days

The minimum order is 1

PIC32MX795F512L-80I/PF

32-bit PIC32MX MCU with Ethernet/CAN/USB, 80MHz, 512KB Flash, TQFP-100, industrial

Brand: MICROCHIP

Package: TQFP-100 (14 x 14 mm)

IN STOCK: 7912pcs

Cargo cycle: 3-7 Days

The minimum order is 1