Opens in a new tab

ATMEGA16U2-AU

AVR MCU, 16KB Flash, USB 2.0 FS, TQFP-32

4500

Effective Inventory

Image for reference only

Manufacturer Part:

ATMEGA16U2-AU

Package:

32-Pin TQFP (7.0 x 7.0 x 1.0 mm)

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Description

Product Overview

The ATMEGA16U2-AU is a Microchip 8-bit AVR MCU with 16KB Flash, 512B SRAM, 512B EEPROM, full-speed USB 2.0 device, 12MHz, and 22 I/O. Packaged in TQFP-32, -40C to +85C.

Key Specifications

Core AVR 8-bit RISC
Flash 16 KB
SRAM 512 B
EEPROM 512 B
USB 2.0 Full-speed device
Speed 16 MHz (12 MHz USB)

Features

  • 16KB Flash, 512B SRAM, 512B EEPROM
  • Full-speed USB 2.0 device controller
  • 12MHz USB clock from internal PLL
  • 22 programmable I/O pins
  • UART, SPI, I2C interfaces
  • 4-channel 10-bit ADC
  • On-chip debug via DW

Applications

  • USB peripheral devices
  • Custom HID keyboards/mice
  • USB-to-serial adapter
  • Arduino Uno USB interface
Product Introduction: ATMEGA16U2-AU Product Introduction

The ATMEGA16U2-AU is a Microchip 8-bit AVR microcontroller with integrated full-speed USB 2.0 device controller in a 32-pin TQFP package. The 16KB Flash program memory, 512B SRAM, and 512B EEPROM provide sufficient resources for USB firmware stack and application code. The USB controller supports all standard USB 2.0 full-speed transfer types (Control, Interrupt, Bulk, Isochronous) with 8 configurable endpoints. An internal PLL generates the 48MHz USB clock from an external 8MHz or 12MHz crystal, or from the calibrated internal RC oscillator. The device is well-known as the USB interface chip in the Arduino Uno R2/R3, handling the PC-to-AVR serial communication over USB. The 22 programmable I/O pins provide flexible peripheral interfacing. Communication peripherals include UART, SPI, and I2C. A 4-channel 10-bit ADC handles analog sensing. The debugWIRE (DW) interface provides single-pin in-circuit debug access. Five sleep modes (Idle, ADC Noise Reduction, Power-save, Power-down, Standby) minimize power consumption. Packaged in TQFP-32 rated for -40C to +85C.

Working Principle: ATMEGA16U2-AU Working Principle

The ATMEGA16U2 uses the AVR enhanced RISC architecture with 131 instructions, most executing in a single clock cycle. The Harvard architecture separates 16-bit instruction words from 8-bit data paths. The CPU core fetches and decodes instructions from Flash while simultaneously accessing data in SRAM or I/O registers. The USB controller handles the USB 2.0 full-speed protocol independently, with endpoint FIFOs that buffer USB packet data. The USB controller interrupts the CPU when a USB event occurs (setup packet, data received, data sent). The PLL multiplies the crystal frequency to generate the 48MHz USB clock required for full-speed timing. The clock system supports multiple clock sources: external crystal, external clock, calibrated internal RC (8MHz), and 32kHz crystal for RTC. The power management unit controls the sleep modes, shutting down unused clock domains and peripherals. The EEPROM is byte-addressable with a dedicated erase/write controller. The debugWIRE interface uses the RESET pin for bidirectional debug communication with the development tool.

Pin Description: ATMEGA16U2-AU Pin Definition and Functions

32-pin TQFP with 22 GPIO across Ports B, C, D. Key peripherals: USB D+/D- (full-speed transceiver), UART0 (TX/RX), SPI (MOSI/MISO/SCK/SS), TWI (SDA/SCL), ADC (4 channels, 10-bit), Timer0/1 (8/16-bit with PWM), Watchdog, debugWIRE (RESET), XTAL1/XTAL2 (crystal), AVCC/AGND (analog supply). Refer to datasheet for complete 32-pin TQFP mapping.

Application Scenarios: In which products and applications is ATMEGA16U2-AU used
  • USB HID custom keyboard or mouse device with 16KB Flash for firmware and descriptors
  • USB-to-serial bridge adapter with UART and USB CDC class
  • Arduino Uno R2/R3 USB interface chip for PC-to-AVR communication
  • USB audio or instrumentation device with isochronous endpoints and ADC
Alternative Models: What chips are recommended as replacements for ATMEGA16U2-AU
Model Manufacturer Key Difference
ATMEGA8U2-AU Microchip 8KB Flash, less memory
ATMEGA32U2-AU Microchip 32KB Flash, more memory
ATMEGA32U4-AU Microchip 32KB, more I/O, ADC, USB
AT90USB162 Microchip Similar USB AVR

Recommend Parts

TMP275AIDR

0.5C I2C temp sensor, 12-bit, 2.7-5.5V, alert output, 8-SOIC

Brand: TI

Package: 8-SOIC (4.90 x 3.91 x 1.50 mm)

IN STOCK: 3681pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IL485E

NVE IL485E IsoLoop isolated RS-485 transceiver, 2.5kVrms isolation, 35Mbps, 16-SOIC WB

Brand: nve

Package: SOIC-16 WB

IN STOCK: 5280pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRFS4227TRLPBF

IRFS4227TRLPBF – 200V N-Channel HEXFET PDP Switch Power MOSFET, 26 mΩ RDS(on), D2PAK (TO-263)

Brand: infineon

Package: D2PAK (TO-263)

IN STOCK: 4334pcs

Cargo cycle: 3-7 Days

The minimum order is 1

CD4070BM96

Quad 2-input XOR gate, 3-18V CMOS, 65ns at 10V, SOIC-14

Brand: TI

Package: SOIC-14 (8.75 x 3.9 x 1.5mm)

IN STOCK: 4245pcs

Cargo cycle: 3-7 Days

The minimum order is 1

AB1526

Bluetooth 5.0 Dual Mode Audio SoC, TWS, AAC, Dual-mic ENC, Integrated Charger, BGA

Brand: airoha

Package: BGA

IN STOCK: 25000pcs

Cargo cycle: 3-7 Days

The minimum order is 1

LP2980IM5-5.0

50mA micropower ultra-low-dropout regulator, 5V, SOT-23-5

Brand: TI

Package: SOT-23-5 (2.9 x 1.6 x 1.1 mm)

IN STOCK: 2557pcs

Cargo cycle: 3-7 Days

The minimum order is 1