Home > Integrated Circuits ICs > ATMEGA328-AU

ATMEGA328-AU


8-bit AVR MCU, 20MHz, 32KB Flash, 2KB SRAM, TQFP-32, NRND

13010

Effective Inventory
Go to Inquiry

Image for reference only

Manufacturer Part:

ATMEGA328-AU

Package:

TQFP-32 (7×7×1.05 mm)

Brand:
Other recommendations you may be interested in.
Description

Product Overview

The Microchip ATMEGA328-AU is an 8-bit AVR RISC microcontroller from the megaAVR family, featuring 32 KB ISP Flash, 2 KB SRAM, and 1 KB EEPROM in a TQFP-32 package. Running at up to 20 MHz with 23 programmable I/O lines, it includes an 8-channel 10-bit ADC, 6 PWM channels, USART, SPI, and I2C interfaces. Though now Not Recommended for New Designs (NRND), it remains widely available and used in legacy and Arduino platforms.

Key Specifications

Core 8-bit AVR RISC
Max Frequency 20 MHz
Flash Memory 32 KB (ISP, Read-While-Write)
SRAM 2 KB
EEPROM 1 KB
I/O Pins 23
ADC 8-channel 10-bit (TQFP/QFN packages)
PWM Channels 6
Timers 2× 8-bit, 1× 16-bit
Communication 1× USART, 2× SPI, 1× I2C (TWI)
Supply Voltage 1.8 V ~ 5.5 V
Package TQFP-32 (7×7 mm)
Operating Temperature -40°C ~ +85°C
Power Consumption 0.2 mA @ 1 MHz, 1.8V

Features

  • High-performance AVR RISC architecture with 131 instructions and single-cycle execution
  • 32 KB ISP Flash with Read-While-Write capability
  • 32 general-purpose working registers directly connected to ALU
  • 8-channel 10-bit ADC with hardware oversampling support
  • Six PWM channels for motor control and LED dimming
  • Five software-selectable power saving modes (Idle, ADC Noise Reduction, Power-save, Power-down, Standby)
  • Programmable watchdog timer with independent oscillator

Applications

  • Arduino Uno and compatible development boards
  • Embedded control and automation
  • Sensor interface and data acquisition
  • Consumer electronics and appliances
  • Motor control and LED lighting

The ATMEGA328-AU from Microchip Technology (formerly Atmel) is an 8-bit AVR RISC-based microcontroller from the megaAVR family, offering 32 KB of In-System Programmable Flash with Read-While-Write capabilities, 2 KB of SRAM, and 1 KB of EEPROM. The device achieves throughputs approaching 1 MIPS per MHz, balancing power consumption and processing speed with up to 20 MIPS at 20 MHz. It features 23 programmable I/O lines, 32 general-purpose working registers, three flexible timer/counters with compare modes, internal and external interrupts, a serial programmable USART, a byte-oriented Two-Wire serial interface (I2C), an SPI serial port, and a 6-channel 10-bit A/D converter. The device operates between 1.8 V and 5.5 V. Note: This device is now classified as Not Recommended for New Designs (NRND); the ATMEGA328PB is the recommended upgrade path.

The ATMEGA328-AU uses a modified Harvard architecture with separate program and data memory spaces connected by dedicated buses. The AVR CPU core features 32 general-purpose 8-bit registers (R0-R31), all directly connected to the Arithmetic Logic Unit (ALU), enabling single-cycle execution of most instructions. Registers R26-R31 serve as 16-bit pointer pairs (X, Y, Z) for indirect addressing. The two-stage pipeline (fetch and execute) enables 1 MIPS per MHz throughput. The Flash memory stores the program and can be reprogrammed in-system via SPI. The 2 KB SRAM provides fast data access, while the 1 KB EEPROM offers non-volatile data storage that survives power cycles. Power management includes five modes: Idle (CPU stopped, peripherals running), ADC Noise Reduction (CPU stopped, ADC active), Power-save (timer running), Power-down (everything stopped except watchdog), and Standby (oscillator running but not driving CPU). Brown-out detection with configurable thresholds prevents erratic operation during voltage dips.

Pin Name Type Function
1 PD3 (INT1/OC2B) I/O Port D, external interrupt 1 / Timer2 output compare B
2-5 PD4-PD7 I/O Port D general I/O, various alternate functions
6-7 XTAL1/XTAL2 Clock External crystal oscillator connections
8 GND Power Ground
9-10 VCC, GND Power Digital supply and ground
11-12 PC6 (RESET), PC5 (ADC5/SCL) I/O Reset pin, ADC5/I2C clock
13-19 PC4-PC0 (ADC4-ADC0/SDA) I/O Port C, ADC inputs, I2C data
20 AVCC Power ADC power supply
21 AREF Analog ADC reference voltage
22-28 PB7-PB0 I/O Port B, SPI, timer I/O, crystal
29-32 PD0-PD2 I/O Port D, USART RX/TX, INT0
  • Arduino ecosystem: Core MCU for Arduino Uno boards, enabling rapid prototyping and education in embedded systems
  • Sensor nodes: Data acquisition from environmental sensors with low-power sleep modes for battery operation
  • Motor control: BLDC and stepper motor control using 6-channel PWM and timer capture/compare
  • Consumer appliances: Simple control logic in home appliances, white goods, and personal care devices
  • LED lighting: PWM-based dimming and color mixing controllers for architectural and decorative lighting
Manufacturer Part Number Package Notes
Microchip ATMEGA328PB-AU TQFP-32 Recommended replacement, adds 2nd USART, SPI, I2C
Microchip ATMEGA328P-AU TQFP-32 picoPower version, lower power consumption
Microchip ATMEGA328P-PU PDIP-28 Through-hole DIP version for breadboard use
GigaDevice GD32E230F8P6 TSSOP-20 ARM Cortex-M23, 72MHz, modern alternative
Renesas RA2E1A4A2CFM#AA0 LQFP-32 ARM Cortex-M23, 32MHz, low-power alternative
Microchip PIC32MX270F256D-50I/ML QFN-28 32-bit MIPS, 50MHz, more Flash/RAM
Recommend Parts
E1/T1 Line Interface Unit, 8.192Mbps, short/long haul, integrated CDR, 80-MQFP, 3.3V

Brand:

Package:

80-MQFP (14x14mm)
In stock:
14099pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
ARM7TDMI MCU, 55MHz, 256KB Flash, 64KB SRAM, Ethernet MAC, USB, CAN, LQFP-100

Brand:

Package:

LQFP-100
In stock:
3752pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
3A adjustable LDO, 1.24-15V output, 450mV dropout, TO-263-5, fast transient response

Brand:

Package:

TO-263-5 (10.67 x 9.17 x 4.6 mm)
In stock:
7577pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
12-bit single-channel voltage DAC, SPI, rail-to-rail output, 2.7-5.5V, SOIC-8, AEC-Q100

Brand:

Package:

SOIC-8 (4.9 x 3.9 mm)
In stock:
2849pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
8-bit AVR MCU, 32KB Flash, 2KB SRAM, 23 I/O, 8ch 10-bit ADC, TQFP-32, T&R

Brand:

Package:

TQFP-32 (7.0 x 7.0 x 1.05mm)
In stock:
6946pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
8-bit AVR picoPower MCU, 32KB Flash, 2KB SRAM, 23 I/O, 8ch 10-bit ADC, TQFP-32, Arduino Uno MCU

Brand:

Package:

TQFP-32 (7.0 x 7.0 x 1.05mm)
In stock:
4457pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
Quality Assurance

All electronic components we source from our partnered supply chains go through strict incoming inspections.Through careful testing, we ensure everything delivered to customers is genuine original parts and meets quality requirements.In addition, we keep complete inspection records to make the entire supply chain process clear and traceable.

Certification
We have obtained a number of professional certifications and built our own professional testing laboratory.This ensures that every product we deliver to our customers meets the highest quality requirements.We conduct tests in strict accordance with procedures to ensure stable product quality and accurate parameters.To guarantee genuine original parts, we also cooperate with reliable third-party testing institutions for strict quality inspection.We always attach great importance to quality and fully comply with industry standards, relevant regulations, and ISO 9001:2015 requirements.

Shipping & Payment

All electronic components we source from our partnered supply chains go through strict incoming inspections.Through careful testing, we ensure everything delivered to customers is genuine original parts and meets quality requirements.In addition, we keep complete inspection records to make the entire supply chain process clear and traceable.

Certification
We have obtained a number of professional certifications and built our own professional testing laboratory.This ensures that every product we deliver to our customers meets the highest quality requirements.We conduct tests in strict accordance with procedures to ensure stable product quality and accurate parameters.To guarantee genuine original parts, we also cooperate with reliable third-party testing institutions for strict quality inspection.We always attach great importance to quality and fully comply with industry standards, relevant regulations, and ISO 9001:2015 requirements.

Service & Packaging

All electronic components we source from our partnered supply chains go through strict incoming inspections.Through careful testing, we ensure everything delivered to customers is genuine original parts and meets quality requirements.In addition, we keep complete inspection records to make the entire supply chain process clear and traceable.

Certification
We have obtained a number of professional certifications and built our own professional testing laboratory.This ensures that every product we deliver to our customers meets the highest quality requirements.We conduct tests in strict accordance with procedures to ensure stable product quality and accurate parameters.To guarantee genuine original parts, we also cooperate with reliable third-party testing institutions for strict quality inspection.We always attach great importance to quality and fully comply with industry standards, relevant regulations, and ISO 9001:2015 requirements.