Opens in a new tab

Home » Integrated Circuits ICs » ATmega328P-AU

ATmega328P-AU

8-bit AVR MCU, 32KB Flash, 2KB SRAM, 20MHz, TQFP-32, Arduino Uno core

25000

Effective Inventory

Image for reference only

Manufacturer Part:

ATmega328P-AU

Package:

TQFP-32 (7.00 x 7.00 x 1.20 mm)

Brand:

Product Categories:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Description

Product Overview

The ATmega328P-AU from Microchip (formerly Atmel) is a high-performance 8-bit AVR RISC microcontroller with 32KB Flash, 2KB SRAM, and 1KB EEPROM in a TQFP-32 package. Running at up to 20MHz with single-cycle instruction execution, it is the heart of the Arduino Uno and Nano boards.

Key Specifications

Architecture 8-bit AVR RISC
Flash Memory 32KB
SRAM 2KB
EEPROM 1KB
Max Clock 20MHz
I/O Pins 23
ADC 10-bit, 8 channels
Supply Voltage 1.8V to 5.5V
Active Current 0.9mA @ 4MHz, 3V
Power-Down Current 0.1uA
Package TQFP-32 (7mm x 7mm)

Features

  • 131 instructions, most single-cycle
  • 32 x 8 general purpose registers
  • 10-bit ADC with 8 channels
  • 6 PWM channels
  • USART, SPI, TWI (I2C)
  • 5 sleep modes
  • Programmable Watchdog Timer
  • On-chip analog comparator

Applications

  • Arduino Uno / Nano
  • Embedded control systems
  • Sensor data acquisition
  • Motor control
  • Home automation
Product Introduction: ATmega328P-AU Product Introduction

The ATmega328P-AU from Microchip is a high-performance, low-power 8-bit AVR RISC microcontroller in a TQFP-32 package. It combines 32KB Flash, 2KB SRAM, and 1KB EEPROM with a rich peripheral set including 10-bit ADC, USART, SPI, TWI, and flexible timer/counters with PWM. The picoPower technology enables ultra-low power consumption with 0.1uA in power-down mode and 0.9mA active at 4MHz/3V. Running at up to 20MHz with most instructions executing in a single clock cycle, it delivers up to 20 MIPS. The ATmega328P is the core of the Arduino Uno and Nano platforms.

Working Principle: ATmega328P-AU Working Principle

The ATmega328P-AU uses the AVR enhanced RISC architecture with a Harvard memory model (separate program and data buses). The CPU fetches instructions from Flash via the 16-bit program bus and executes most in one clock cycle thanks to pipelining. The 32 general-purpose registers connect directly to the ALU. The 10-bit ADC uses successive approximation at up to 76.9ksps. Timer0 and Timer2 are 8-bit with PWM; Timer1 is 16-bit with input capture and PWM. picoPower technology uses clock gating to disable unused peripherals, and sleep modes selectively shut down CPU, Flash, ADC, and oscillators for minimum power.

Pin Description: ATmega328P-AU Pin Definition and Functions
Pin Name Alt Func Description
1 PD3 INT1/OC2B Port D3, ext int 1, Timer2 PWM B
2 PD4 XCK Port D4, USART ext clock
3 GND – Ground
4 VCC – Digital supply
7 PB6 XTAL1 Crystal osc input
8 PB7 XTAL2 Crystal osc output
13 PB1 OC1A Port B1, Timer1 PWM A
14 PB2 OC1B/SS Port B2, Timer1 PWM B, SPI SS
15 PB3 MOSI/OC2A SPI MOSI, Timer2 PWM A
16 PB4 MISO SPI MISO
17 PB5 SCK SPI clock
18 AVCC – ADC supply
20 AREF – ADC reference
23 PC0 SDA/ADC0 TWI data, ADC ch0
24 PC1 SCL/ADC1 TWI clock, ADC ch1
29 RESET PC6 Reset; active LOW
30 PD0 RXD USART receive
31 PD1 TXD USART transmit
32 PD2 INT0 External interrupt 0
Application Scenarios: In which products and applications is ATmega328P-AU used
  • Arduino Uno/Nano: Core MCU running Arduino bootloader with 32KB Flash and rich GPIO/ADC/UART/SPI/I2C peripherals
  • Sensor Data Logger: Reads sensors via ADC and I2C/SPI, stores in EEPROM, transmits via UART with picoPower sleep extending battery life
  • Motor Speed Controller: Generates 16-bit PWM from Timer1 for precise motor control with ADC feedback
Alternative Models: What chips are recommended as replacements for ATmega328P-AU
Model Manufacturer Flash Arch Key Difference
ATmega328P-PU Microchip 32KB AVR DIP-28, same die
ATmega328PB-AU Microchip 32KB AVR 2nd USART/SPI
ATmega2560 Microchip 256KB AVR More Flash/RAM, 100-pin
STM32F103C8T6 ST 64KB Cortex-M3 32-bit, 72MHz

Recommend Parts

0751.0505

Schurter fuse, 0751.0505

Brand: schurter

Package: See datasheet

IN STOCK: 6768pcs

Cargo cycle: 3-7 Days

The minimum order is 1

TL062CDR

Low-power JFET-input dual op-amp, 1MHz GBW, 30pA Ibias, SOIC-8, ±3.5V to ±18V

Brand: TI

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

IN STOCK: 11576pcs

Cargo cycle: 3-7 Days

The minimum order is 1

P89LPC922FN

8-bit 80C51 MCU, 8KB Flash, 256B RAM, 20-SSOP

Brand: NXP

Package: SSOP-20 (7.2 x 5.3 mm)

IN STOCK: 12628pcs

Cargo cycle: 3-7 Days

The minimum order is 1

AC0603JR-070RL

Chip Resistor, 0Ω (Zero Ohm Jumper), ±5%, 0603 (1608 Metric), 1/10W (100mW)

Brand: Yageo

Package: 0603 (1608 Metric)

IN STOCK: 100000pcs

Cargo cycle: 3-7 Days

The minimum order is 1

LMR34206FSC5RNXRQ1

42V 2A sync buck, 5V fixed, 2.2MHz, 18uA Iq, AEC-Q100, SOT-563

Brand: TI

Package: SOT-563 (1.6 x 1.2 x 0.55mm)

IN STOCK: 6500pcs

Cargo cycle: 3-7 Days

The minimum order is 1

AO3402

30V N-channel trench MOSFET, SOT-23, 4A, RDS(on) 52m ohm max @ 10V, Qg 10nC, 2.5V gate drive capable, -55C to +150C.

Brand: aosmd

Package: SOT-23 (2.9 x 1.6 x 1.25mm)

IN STOCK: 14066pcs

Cargo cycle: 3-7 Days

The minimum order is 1