ATMEGA328-AUR - 8-bit AVR MCU 20MHz 32KB Flash TQFP-32 | Microchip
MPN: ATMEGA328-AUR ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $2.85 | $2.85 |
| 10 | $2.56 | $25.60 |
| 100 | $2.28 | $228.00 |
| 500 | $2.05 | $1,025.00 |
| 1,000 | $1.83 | $1,830.00 |
| 3,000 | $1.65 | $4,950.00 |
ATMEGA328-AUR Overview
An 8-bit microcontroller (MCU) is a single integrated circuit that combines a processor core, memory, and peripherals such as timers, UART, SPI, and I2C on one die. MCUs sit at the lowest level of the embedded systems hierarchy - below SoCs and application processors - and are the workhorses of industrial control, consumer appliances, and hobbyist platforms such as the Arduino UNO, which made the ATmega328 family the most recognized 8-bit MCU in the world.
Key features include the AVR enhanced RISC architecture executing most instructions in a single clock cycle, 32 general-purpose working registers, three flexible timer/counters, a 10-bit ADC with 8 multiplexed channels (6 differential with programmable gain), and hardware USART, SPI, and TWI (I2C) serial interfaces. The device supports both 2.5V to 5.5V operation across its speed grades, enabling battery-powered 3.3V designs as well as 5V industrial rails.
Technical depth: the Harvard architecture with separate program and data buses allows single-cycle instruction fetch and execution. In-System Programmable Flash with read-while-write support permits firmware updates in the field via SPI or a bootloader, while independent lock bits protect code IP. Power management includes idle, ADC noise reduction, power-save, power-down, standby, and extended standby modes, plus an on-chip brown-out detector and internal RC oscillator options.
Typical applications include Arduino-compatible boards, industrial sensor nodes, motor control panels, HVAC and appliance control, battery monitors, and consumer electronics - anywhere a low-cost, well-supported 8-bit controller with rich analog and serial peripherals is required.
Design consideration: decouple VCC/AVCC with 100 nF ceramics close to pins, and remember the TQFP-32 version exposes ADC6 and ADC7 (pins 19 and 22) that the 28-pin DIP variant lacks - useful for extra analog channels.
This page synthesizes distributor pricing, drop-in alternatives, pinout data, and practical design notes not found in the manufacturer datasheet, as of 2026-09-17.
Drop-in alternatives for ATMEGA328-AUR — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Variants in this series
Same-series models that are drop-in compatible with ATMEGA328-AUR (same form factor and footprint) — differing in Package, Supply Voltage Range, Timers, EEPROM, SRAM.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
ATMEGA328P-AUR
✅ Drop-In📋 Reference alternative (not in catalog)
ATMEGA328PB-AUR
✅ Drop-In✓ In Stock
$1.31 / Unit
View Datasheet →ATMEGA328-AU
✅ Drop-In ⚠️ 参数待验证📋 Reference alternative (not in catalog)
ATMEGA328P-AU
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$1.85 / Unit
View Datasheet →ATMEGA325PA-AUR
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$3.9 / Unit
View Datasheet →ATMEGA328-AUR Maximum Ratings & Electrical Characteristics
| Core Processor | AVR 8-bit RISC |
| Core Size | 8-bit |
| Speed | 20 MHz |
| Flash Memory | 32 KB (16K x 16) |
| EEPROM | 1 KB |
| SRAM | 2 KB |
| Number of I/O | 23 |
| ADC Resolution | 10-bit |
| Number of ADC Channels | 8 (TQFP-32) |
| Timers/Counters | 2 x 8-bit, 1 x 16-bit |
| Communication Interfaces | USART, SPI, TWI (I2C) |
| Supply Voltage Range | 2.5 V to 5.5 V |
| Operating Temperature | -40C to +85C |
| Package | 32-TQFP (7x7 mm) |
| Mounting Type | Surface Mount |
| Packaging | Tape & Reel (R suffix) |
| Programmability | In-System Programmable (ISP), read-while-write |
| RoHS Status | Compliant |
ATMEGA328-AUR Pin Configuration
| Pin 1 | PD3 (PCINT19/OC2B/INT1) — Port D, GPIO / Timer2 output compare B / external interrupt 1 |
| Pin 2 | PD4 (PCINT20/XCK/T0) — Port D, GPIO / USART external clock / Timer0 clock input |
| Pin 3 | GND — Ground |
| Pin 4 | VCC — Digital supply voltage |
| Pin 5 | GND — Ground |
| Pin 6 | VCC — Digital supply voltage |
| Pin 7 | PB6 (PCINT6/XTAL1/TOSC1) — Port B / crystal oscillator input / Timer oscillator |
| Pin 8 | PB7 (PCINT7/XTAL2/TOSC2) — Port B / crystal oscillator output |
| Pin 9 | PD5 (PCINT21/OC0B/T1) — Port D, GPIO / Timer0 output compare B / Timer1 clock input |
| Pin 10 | PD6 (PCINT22/OC0A/AIN0) — Port D, GPIO / Timer0 output compare A / analog comparator input |
| Pin 11 | PD7 (PCINT23/AIN1) — Port D, GPIO / analog comparator input 1 |
| Pin 12 | PB0 (PCINT8/CLKO/ICP1) — Port B, GPIO / clock output / Timer1 input capture |
| Pin 13 | PB1 (PCINT9/OC1A) — Port B, GPIO / Timer1 output compare A |
| Pin 14 | PB2 (PCINT10/OC1B/SS) — Port B, GPIO / Timer1 output compare B / SPI slave select |
| Pin 15 | PB3 (PCINT11/OC2A/MOSI) — Port B, GPIO / Timer2 output compare A / SPI master out |
| Pin 16 | PB4 (PCINT12/MISO) — Port B, GPIO / SPI master in |
| Pin 17 | PB5 (PCINT13/SCK) — Port B, GPIO / SPI clock |
| Pin 18 | AVCC — ADC supply voltage |
| Pin 19 | ADC6 — ADC input channel 6 (TQFP-32 only) |
| Pin 20 | AREF — Analog reference voltage |
| Pin 21 | GND — Ground |
| Pin 22 | ADC7 — ADC input channel 7 (TQFP-32 only) |
| Pin 23 | PC0 (ADC8/PCINT16) — Port C, GPIO / ADC channel 0 |
| Pin 24 | PC1 (ADC9/PCINT17) — Port C, GPIO / ADC channel 1 |
| Pin 25 | PC2 (ADC10/PCINT18) — Port C, GPIO / ADC channel 2 |
| Pin 26 | PC3 (ADC11/PCINT19) — Port C, GPIO / ADC channel 3 |
| Pin 27 | PC4 (ADC12/SDA/PCINT20) — Port C, GPIO / ADC4 / I2C data |
| Pin 28 | PC5 (ADC13/SCL/PCINT21) — Port C, GPIO / ADC5 / I2C clock |
| Pin 29 | PC6 (RESET/PCINT22) — Reset input (active low) / GPIO after fuse programming |
| Pin 30 | PD0 (PCINT16/RXD) — Port D, GPIO / USART receive |
| Pin 31 | PD1 (PCINT17/TXD) — Port D, GPIO / USART transmit |
| Pin 32 | PD2 (PCINT18/INT0) — Port D, GPIO / external interrupt 0 |
Typical Applications
ATMEGA328-AUR is suitable for 6 applications: Arduino-Compatible Boards, Industrial Sensor Nodes, Home Automation and Smart Devices, Motor Control and PWM Applications, Battery-Powered Instruments, Consumer Appliance Control.
Arduino-Compatible Boards
The ATMEGA328-AUR powers the classic Arduino ecosystem: with a 16 MHz crystal, 22 pF load capacitors, auto-reset capacitor, and the Optiboot bootloader, it becomes an Uno/Nano-compatible controller in a compact 7x7 mm TQFP. Its 32 KB Flash holds large sketches, and hardware USART/SPI/TWI map directly to Arduino pins. Because register maps match the ATmega328P, the full Arduino library ecosystem runs unchanged, making it the default choice for open-source hardware production runs where the DIP package is unnecessary and SMT assembly lowers cost.
Recommended
Industrial Sensor Nodes
In factory sensor acquisition nodes, the ATMEGA328-AUR's 10-bit ADC with 8 channels digitizes thermistors, pressure bridges, and 4-20 mA-derived signals, while the USART links to RS-485 transceivers and the TWI bus reads I2C sensors. The 2.5V-5.5V supply range tolerates noisy industrial rails, and the -40C to +85C industrial grade suits control cabinets. Power-down sleep between samples cuts average current in battery-fed nodes, and the 1 KB EEPROM stores calibration constants that survive power loss without external memory.
Recommended
Home Automation and Smart Devices
Smart plugs, thermostats, and lighting controllers use the ATMEGA328-AUR because its 23 GPIO directly drive relays and triac circuits via opto-isolators, while the ADC monitors mains-derived voltage samples for zero-cross detection. The three timer/counters generate PWM for dimming or motor speed, and the TWI interface reads touch or environmental sensors. At volume, its low cost in tape-and-reel supports consumer pricing pressure, and code compatibility with the huge ATmega community shortens firmware development cycles significantly.
Recommended
Motor Control and PWM Applications
Fan, pump, and small DC motor controllers exploit the ATMEGA328-AUR's 16-bit Timer1 for high-resolution PWM and its 8-bit Timer0/Timer2 for tachometer input capture and phase-correct PWM. The ADC samples current-shunt voltages for overload detection, and the input-capture unit measures period precisely for closed-loop speed control. Operating from a 5V industrial rail with the brown-out detector enabled ensures safe PWM shutdown on supply dips, while the watchdog timer recovers firmware from transient faults in unattended equipment.
Recommended
Battery-Powered Instruments
Portable meters and loggers benefit from the ATMEGA328-AUR's sleep architecture: power-down mode drops consumption below 1 uA, waking on the watchdog or external interrupt to sample, log to EEPROM, or transmit over UART. The 2.5V operation end-of-life threshold lets designs run directly from two alkaline cells through most of their discharge curve, and ADC noise-reduction mode improves measurement resolution during conversions. Designers needing the longest battery life should evaluate the picoPower ATMEGA328P-AUR, which shares this footprint exactly.
Recommended
Consumer Appliance Control
Coffee makers, rice cookers, and small appliance boards use the ATMEGA328-AUR for keypad scanning, display driving (via SPI to LED/LCD drivers), relay control, and thermistor-based temperature regulation with PID firmware. The 20 MHz capability gives headroom for control loops, and the internal 8 MHz RC oscillator removes crystal cost in cost-sensitive products where timing tolerance is acceptable. Tape-and-reel supply supports automated SMT lines, and industrial temperature rating covers kitchen environments near heating elements.
Recommended
Recommended Products Summary
Engineering reference data for ATMEGA328-AUR — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | ATMEGA328P-AUR | ATMEGA328PB-AUR | ATMEGA328-AU | ATMEGA325PA-AUR |
|---|---|---|---|---|---|
| Package | 32-TQFP (7x7 mm) | 32-TQFP (7x7 mm) - same | 32-TQFP (7x7 mm) - same | 32-TQFP (7x7 mm) - same | 32-TQFP - same footprint |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 32 KB | 32 KB | 32 KB | 32 KB | 32 KB |
| Max Clock Speed | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 10 MHz |
| SRAM | 2 KB | 2 KB | 2 KB | 2 KB | 2 KB |
| PicoPower / Low Sleep Current | No | Yes (picoPower) | Yes (XLP-style improvements) | No | Yes (picoPower) |
| Drop-in Compatibility Notes | - | Full pin-to-pin, firmware compatible | Same footprint, 2 pins reassigned, register deltas | Identical die, tray packaging | Different peripheral set - review required |
Key Differentiators
- Lowest cost within the pin-compatible family (vs ATMEGA328P-AUR)
- Two extra ADC channels vs 28-pin DIP versions (vs ATMEGA328-PU (DIP-28))
- Guaranteed legacy register compatibility (vs ATMEGA328PB-AUR)
- Trade-off: higher sleep current (vs ATMEGA328P-AUR)
Design Notes
Place 100 nF ceramic decoupling capacitors directly across each VCC/GND pin pair (pins 4/3 and 6/5) plus one on AVCC (pin 18) to ground, with a 10 uF bulk capacitor near the IC. Tie AVCC to VCC through an LC filter (10 uH + 10 uF) when ADC accuracy matters. Route the AREF pin with its own 100 nF capacitor to ground; never connect AREF to a supply rail directly.
Respect the frequency-versus-voltage curve: 20 MHz requires 4.5V-5.5V; at 3.3V limit the clock to about 10 MHz. If your design uses an external 16 MHz crystal for Arduino compatibility, run the part from 5V to stay within specification. Estimated: at 20 MHz/5V active current of roughly 6 mA, power dissipation is about 30 mW - negligible thermally in the TQFP-32, no heatsinking ever needed.
PB6/PB7 (pins 7/8) default to the crystal function; to use them as GPIO you must program the CKOUT/fuse settings for internal RC oscillator. Enable the brown-out detector (BOD) fuse when running from mains-derived supplies, and set the watchdog in production firmware. When replacing a failed ATMEGA328P with this non-P part in the field, expect slightly higher sleep current - relevant only in battery products.
Keep the crystal within 10 mm of pins 7/8 with short traces and guard with a ground ring for reliable start-up across temperature. For SPI lines longer than 10 cm, add 33-ohm series resistors to reduce ringing. Unused PCINT-capable inputs should be pulled high or low (internal pull-ups suffice) to prevent floating-input oscillation of the input schmitt triggers.
Compliance Information
RoHS compliance per standard Microchip environmental policy for current AVR production; REACH and halogen-free status not stated in provided web data.