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

Other recommendations you may be interested in.

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

IRFS4310ZTRLPBF

IRFS4310ZTRLPBF – 100V N-Channel HEXFET Power MOSFET, 7 mΩ RDS(on), D2PAK (TO-263AB)

Brand: infineon

Package: D2PAK (TO-263AB)

IN STOCK: 11137pcs

Cargo cycle: 3-7 Days

The minimum order is 1

MSASJ105BB5475MFNA01

4.7uF 6.3V X5R MLCC, 0402, Taiyo Yuden

Brand: gigadevice

Package: 0402 (1005 Metric, 1.0 x 0.5 x 0.5 mm)

IN STOCK: 9701pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRF3415PBF

150V N-channel power MOSFET, 43A, 41mΩ RDS(on), TO-220AB package

Brand: infineon

Package: TO-220AB

IN STOCK: 2940pcs

Cargo cycle: 3-7 Days

The minimum order is 1

105017-1001

USB Type-C receptacle connector, 24-pin, SMD

Brand: Amphenol

Package: SMD (8.9 x 7.3 x 3.2 mm, right angle)

IN STOCK: 5335pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRLB3034PBF

IRLB3034PBF – 40V N-Channel StrongIRFET Power MOSFET (Logic Level), 1.7 mΩ (max) @ 10V; 2.0 mΩ @ 4.5V RDS(on), TO-220AB

Brand: infineon

Package: TO-220AB

IN STOCK: 9724pcs

Cargo cycle: 3-7 Days

The minimum order is 1

XC6SLX75-2FGG484I

Spartan-6 LX75 FPGA, 74637 logic cells, 132 DSP, 3096KB BRAM, 408 I/O, FBGA-484 23x23mm, -2 speed, industrial -40~100C, AMD Xilinx

Brand: xilinx

Package: FGG484 (484-ball fine-pitch BGA, 23x23mm body, 1.0mm ball pitch, 22×22 ball array, 6 I/O banks, lead-free)

IN STOCK: 890pcs

Cargo cycle: 3-7 Days

The minimum order is 1