ATMEGA32U2-AU - 8-bit AVR USB MCU 32KB Flash 16MHz | Microchip
MPN: ATMEGA32U2-AU β Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $5.76 | $5.76 |
| 10 | $5.19 | $51.90 |
| 100 | $4.63 | $463.00 |
| 500 | $4.18 | $2,090.00 |
| 1,000 | $3.75 | $3,750.00 |
ATMEGA32U2-AU Overview
An 8-bit microcontroller (MCU) is a single-chip processor integrating CPU, program memory, data memory, and peripherals such as USB, SPI, and UART. Within the power/performance hierarchy of embedded systems, ATmega-class MCUs occupy the cost-sensitive, low-power segment below 32-bit MCUs and application processors, and are widely deployed in consumer and industrial firmware platforms.
Key features include AVR enhanced RISC architecture executing most instructions in a single clock cycle for throughput approaching 1 MIPS per MHz, read-while-write ISP Flash for self-programming and in-field firmware updates, and an integrated full-speed USB device controller that eliminates an external USB interface chip. The ATmega32U2 also provides two flexible timer/counters and 32 general purpose working registers.
Technically, the device belongs to the ATmega8U2/16U2/32U2 family, sharing a common die architecture and pinout across Flash sizes, which eases platform scaling. The USB controller supports device operation with dedicated data pins and HWB bootstrap pin for USB bootloader entry, enabling driver-less DFU-style programming.
Typical applications include USB HID devices (keyboards, mice, game controllers), USB-to-UART bridge adapters, small USB peripherals, and firmware upgrade handlers in larger systems.
A key design consideration: program the HWB pin state and fuse bits correctly so the device enters the USB bootloader or application firmware as intended at reset.
This page synthesizes distributor pricing, drop-in family alternatives, and practical design notes not found in the manufacturer datasheet.
Drop-in alternatives for ATMEGA32U2-AU β 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 ATMEGA32U2-AU (same form factor and footprint) β differing in EEPROM, Flash Memory, General Purpose I/O, SRAM.
Quick Comparison Tool β Select alternative parts for side-by-side comparison:
ATMEGA16U2-AU
β Drop-Inβ In Stock
$1.86 / Unit
View Datasheet βATMEGA8U2-AU
β Drop-In β οΈ εζ°εΎ ιͺθ―π Reference alternative (not in catalog)
ATMEGA32U2-AU Maximum Ratings & Electrical Characteristics
| Core Architecture | 8-bit AVR RISC |
| Core Size | 8-bit |
| Max Clock Frequency | 16 MHz |
| Flash Memory | 32 KB (16K x 16) ISP |
| EEPROM | 1 KB |
| SRAM | 1 KB |
| General Purpose I/O | 22 lines |
| Working Registers | 32 |
| Timer/Counters | 2 |
| USB | Full-Speed USB 2.0 device |
| Programmability | In-Circuit Serial Programming (ICSP), read-while-write |
| Package | 32-TQFP (7x7 mm) |
| Mounting Type | Surface Mount |
| Debug / Program Interface | ICSP via debugWIRE-compatible connector and MPLAB SNAP |
| RoHS Status | Compliant (lead-free AU suffix) |
ATMEGA32U2-AU Pin Configuration
| Pin 1 | PB7 β Port B bit 7, timer output/PCINT7 (per datasheet) |
| Pin 2 | PB6 β Port B bit 6, timer output/PCINT6 (per datasheet) |
| Pin 3 | PB5 β Port B bit 5, timer output/PCINT5 (per datasheet) |
| Pin 4 | PB4 β Port B bit 4, ADC/PCINT4 (per datasheet) |
| Pin 5 | PB3 β Port B bit 3, MISO/PCINT3 (per datasheet) |
| Pin 6 | PB2 β Port B bit 2, MOSI/PCINT2 (per datasheet) |
| Pin 7 | PB1 β Port B bit 1, SCK/PCINT1 (per datasheet) |
| Pin 8 | PB0 β Port B bit 0, SS/PCINT0 (per datasheet) |
| Pin 9 | GND β Ground |
| Pin 10 | VCC β Digital supply voltage |
| Pin 11 | PD7 β Port D bit 7, timer output/ADC (per datasheet) |
| Pin 12 | PD6 β Port D bit 6, timer output/ADC (per datasheet) |
| Pin 13 | PD5 β Port D bit 5, ADC (per datasheet) |
| Pin 14 | PD4 β Port D bit 4, ADC (per datasheet) |
| Pin 15 | PD3 β Port D bit 3, INT3/timer output (per datasheet) |
| Pin 16 | PD2 β Port D bit 2, RXD1/INT2 (per datasheet) |
| Pin 17 | PD1 β Port D bit 1, TXD1/INT1 (per datasheet) |
| Pin 18 | PD0 β Port D bit 0, INT0 (per datasheet) |
| Pin 19 | XTAL2 β Crystal oscillator output |
| Pin 20 | XTAL1 β Crystal oscillator input / external clock |
| Pin 21 | UGND β USB ground reference (per datasheet) |
| Pin 22 | UVCC β USB pad supply (per datasheet) |
| Pin 23 | D+ β USB full-speed data line positive (UD+) |
| Pin 24 | D- β USB full-speed data line negative (UD-) |
| Pin 25 | VBUS β USB bus voltage monitor input (per datasheet) |
| Pin 26 | PC7 β Port C bit 7 (per datasheet) |
| Pin 27 | PC6 β Port C bit 6 (per datasheet) |
| Pin 28 | PC5 β Port C bit 5 (per datasheet) |
| Pin 29 | PC4 β Port C bit 4 (per datasheet) |
| Pin 30 | PC2 β Port C bit 2 (per datasheet) |
| Pin 31 | PE2 β Port E bit 2 / HWB hardware bootstrap pin |
| Pin 32 | RESET β Active-low reset input |
Typical Applications
ATMEGA32U2-AU is suitable for 6 applications: USB HID Devices (Keyboards, Mice, Game Controllers), USB-to-UART Bridge Adapters, Firmware Upgrade Handlers in Larger Systems, Small USB Peripheral Products, Industrial Control Panels and Legacy USB Interfaces, Hobbyist and Educational USB Development Boards.
USB HID Devices (Keyboards, Mice, Game Controllers)
The ATMEGA32U2-AU is a natural fit for USB HID peripherals because its integrated full-speed USB 2.0 device controller handles enumeration, endpoint management, and HID report transfers in hardware, eliminating any external USB interface chip. At a 16 MHz clock delivering roughly 1 MIPS per MHz, the AVR core services the 1 ms to 8 ms HID polling intervals with large margin while simultaneously scanning key matrices or quadrature encoders. The 32 KB Flash accommodates HID report descriptors, debounce logic, LED control, and even configurable macros, while 1 KB SRAM buffers endpoint traffic. The HWB bootstrap pin enables field firmware updates over the same USB cable, a feature HID vendors rely on for post-release customization.
Recommended
USB-to-UART Bridge Adapters
For USB-to-UART bridge duty, the ATMEGA32U2-AU combines its hardware USART with the full-speed USB device controller to implement CDC-class firmware, presenting a virtual COM port to host operating systems. The 1 MIPS-per-MHz AVR throughput easily sustains bridge data rates at 16 MHz, and 1 KB SRAM buffers bursts between USB bulk transfers and UART framing. Unlike fixed-function bridge ICs, this MCU lets designers customize baud tables, add vendor-specific control requests, or embed custom logic such as RS-485 direction control in the same chip. The 32 KB Flash leaves generous room for CDC firmware plus application-specific extensions, and the ICSP interface (supported by MPLAB SNAP) simplifies production programming of adapter boards.
Recommended
Firmware Upgrade Handlers in Larger Systems
In multi-chip systems, the ATMEGA32U2-AU frequently serves as a dedicated firmware-update handler: its full-speed USB controller receives new application images from a host PC, and its read-while-write ISP Flash allows the bootloader to erase and reprogram its own 32 KB program memory without losing USB connectivity. The 1 KB EEPROM safely stores update flags, versioning, and rollback metadata across power cycles. Two flexible timer/counters support watchdog-style supervision of the update process. Because the whole family shares one pinout, the same PCB layout can carry the 8U2, 16U2, or 32U2 depending on how much bootloader plus feature code the update handler needs, simplifying procurement across product tiers.
Recommended
Small USB Peripheral Products
Cost-sensitive USB accessories - dongles, sensor adapters, dongle-style programmers, and small instrumentation - benefit from the ATMEGA32U2-AU single-chip approach. Integrating the USB physical layer, device controller, and general-purpose I/O in one 7x7 mm TQFP keeps BOM count and board area minimal, while 22 GPIO lines drive status LEDs, config switches, and SPI peripherals. The 32 general purpose working registers and single-cycle instruction execution give predictable real-time response for endpoint servicing. Its low-power CMOS process suits bus-powered designs, since the USB VBUS pin allows the device to detect cable attachment and gate its own wake-up behavior. The HWB pin again enables zero-tooling firmware updates in the field.
Recommended
Industrial Control Panels and Legacy USB Interfaces
Industrial equipment that must expose a USB service port - for configuration, diagnostics, or logging - uses the ATMEGA32U2-AU as a low-cost USB front end. Its AVR RISC core at 16 MHz handles protocol framing and CRC checks deterministically, while the 32 KB Flash holds both USB device firmware and diagnostic logic. Two timer/counters generate PWM or measure pulse inputs from panel controls. The wide availability through DigiKey, Mouser, and LCSC supports long-life industrial sourcing strategies, and the shared ATmega8U2/16U2/32U2 pinout means a single qualified PCB footprint can absorb Flash-density substitutions during shortages - an important supply-chain resilience feature for industrial product lines with multi-year production runs.
Recommended
Hobbyist and Educational USB Development Boards
The ATMEGA32U2-AU is a staple of educational and hobbyist USB projects because it is programmable entirely over USB: hold HWB during reset, and the factory bootloader enumerates the board for firmware flashing without any external programmer. Throughputs approaching 1 MIPS per MHz make classroom exercises in embedded C and USB protocol theory behave predictably. The 32 GPIO-rich TQFP-32 package is hand-solderable on 2-layer boards, keeping learning-platform costs low. Community firmware ecosystems (CDC bridges, HID keyboards, DFU tools) built around the 8U2/16U2/32U2 family transfer directly to the 32U2, giving students and makers a well-documented, easily reproducible development path.
Recommended
Recommended Products Summary
Engineering reference data for ATMEGA32U2-AU β comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | ATMEGA16U2-AU | ATMEGA8U2-AU |
|---|---|---|---|
| Package | TQFP-32 (7x7) | TQFP-32 (7x7) - same | TQFP-32 (7x7) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash Memory | 32 KB | 16 KB | 8 KB |
| SRAM | 1 KB | 1 KB | 1 KB |
| EEPROM | 1 KB | 1 KB | 1 KB |
| Max Clock Frequency | 16 MHz | 16 MHz | 16 MHz |
| USB Controller | Full-Speed USB 2.0 device | Full-Speed USB 2.0 device | Full-Speed USB 2.0 device |
| GPIO | 22 | 22 | 22 |
Key Differentiators
- Maximum family Flash density (vs ATMEGA16U2-AU)
- Single-chip full-speed USB (vs ATMEGA8U2-AU)
- Family footprint commonality (vs ATMEGA16U2-AU)
Design Notes
Estimated: budget the USB pad supply (UVCC) separately from the digital VCC rail and decouple each with 1 uF plus 0.1 uF ceramics placed within 2 mm of the pins; VBUS should be monitored through a resistor divider into a GPIO so firmware can detect cable attachment and enter low-power suspend states per the USB 2.0 specification. Verify exact supply ranges in the electrical characteristics section of the current datasheet before finalizing regulator selection.
Route the D+/D- USB pair as a 90-ohm differential pair with matched lengths (skew under 1 mm ideally), keep the pair away from switching clock traces, and reference it to a solid ground plane. UGND should tie to system ground at a single point near the connector to keep USB pad noise clean. XTAL1/XTAL2 crystals need short traces with load capacitors to ground placed directly adjacent to the pins for reliable 16 MHz startup.
A frequent failure mode is incorrect HWB handling: if PE2/HWB is pulled low externally without accounting for fuse settings, the device may enter the USB bootloader instead of application firmware at reset, making the board appear dead. Decide the bootloader-vs-application boot strategy at design time, fit a pull-down or strap option on HWB, and program fuse bits deliberately during production. Also confirm firmware fits the chosen Flash density before substituting family members such as ATMEGA16U2-AU.
For production programming, expose the ICSP signals (two device I/O pins plus RESET) on a standard 8-pin SIL or 2x3 header compatible with the MPLAB SNAP, as described on the Microchip product page. Keeping this header populated on the PCB costs little board area and enables in-circuit debugging and field reprogramming without desoldering the TQFP, which materially reduces rework cost during bring-up and firmware iteration.
Compliance Information
RoHS compliance and lead-free finish inferred from distributor classification (RoHS-compliant 8-bit MCU listings) and the AU package suffix. REACH, halogen-free, and conflict minerals status not stated in provided data - request compliance documentation from Microchip.