Features
High Performance, Low Power AVR
®
8-Bit Microcontroller
Advanced RISC Architecture
125 Powerful Instructions – Most Single Clock Cycle Execution
32 x 8 General Purpose Working Registers
Fully Static Operation
Up to 16 MIPS Throughput at 16 MHz
Non-volatile Program and Data Memories
8K/16K/32K Bytes of In-System Self-Programmable Flash
512/512/1024 EEPROM
512/512/1024 Internal SRAM
Write/Erase Cycles: 10,000 Flash/ 100,000 EEPROM
Data retention: 20 years at 85C/ 100 years at 25C
(1)
Optional Boot Code Section with Independent Lock Bits
In-System Programming by on-chip Boot Program hardware-activated after
reset
True Read-While-Write Operation
Programming Lock for Software Security
USB 2.0 Full-speed Device Module with Interrupt on Transfer Completion
Complies fully with Universal Serial Bus Specification REV 2.0
48 MHz PLL for Full-speed Bus Operation : data transfer rates at 12 Mbit/s
Fully independant 176 bytes USB DPRAM for endpoint memory allocation
Endpoint 0 for Control Transfers: from 8 up to 64-bytes
4 Programmable Endpoints:
IN or Out Directions
Bulk, Interrupt and IsochronousTransfers
Programmable maximum packet size from 8 to 64 bytes
Programmable single or double buffer
Suspend/Resume Interrupts
Microcontroller reset on USB Bus Reset without detach
USB Bus Disconnection on Microcontroller Request
Peripheral Features
One 8-bit Timer/Counters with Separate Prescaler and Compare Mode (two 8-bit
PWM channels)
One 16-bit Timer/Counter with Separate Prescaler, Compare and Capture Mode
(three 8-bit PWM channels)
USART with SPI master only mode and hardware flow control (RTS/CTS)
Master/Slave SPI Serial Interface
Programmable Watchdog Timer with Separate On-chip Oscillator
On-chip Analog Comparator
Interrupt and Wake-up on Pin Change
On Chip Debug Interface (debugWIRE)
Special Microcontroller Features
Power-On Reset and Programmable Brown-out Detection
Internal Calibrated Oscillator
External and Internal Interrupt Sources
Five Sleep Modes: Idle, Power-save, Power-down, Standby, and Extended Standby
I/O and Packages
22 Programmable I/O Lines
QFN32 (5x5mm) / TQFP32 packages
Operating Voltages
2.7 - 5.5V
Operating temperature
Industrial (-40°C to +85°C)
Maximum Frequency
8 MHz at 2.7V - Industrial range
16 MHz at 4.5V - Industrial range
Note: 1. See “Data Retention” on page 6 for details.
8-bit
Microcontroller
with
8/16/32K Bytes
of ISP Flash
and USB
Controller
ATmega8U2
ATmega16U2
ATmega32U2
7799ES–AVR–09/2012
2
7799ES–AVR–09/2012
ATmega8U2/16U2/32U2
1. Pin Configurations
Figure 1-1. Pinout
Note: The large center pad underneath the QFN package should be soldered to ground on the board to
ensure good mechanical stability.
1.1 Disclaimer
Typical values contained in this datasheet are based on simulations and characterization of
other AVR microcontrollers manufactured on the same process technology. Min and Max values
will be available after the device is characterized.
UVCC
QFN32
(PCINT11 / AIN2 ) PC2
(OC.0B / INT0) PD0
VCC
XTAL1
(INT5/ AIN3) PD4
(TXD1 / INT3) PD3
(XCK / AIN4 / PCINT12) PD5
PB3 (PDO / MISO / PCINT3)
GND
(PC0) XTAL2
UGND
PB4 (T1 / PCINT4)
28 27 26
1
2
3
4
5
6
7
24
23
22
21
20
19
18
1211109131415
(AIN0 / INT1) PD1
8
16
17
PB6 (PCINT6)
D-
D+
2529303132
PB7 (PCINT7 / OC.0A / OC.1C)
PB5 (PCINT5)
PC7 (INT4 / ICP1 / CLKO)
PC6 (OC.1A / PCINT8)
Reset (PC1 / dW)
PC5 ( PCINT9/ OC.1B)
PC4 (PCINT10)
UCAP
(RXD1 / AIN1 / INT2) PD2
(RTS / AIN5 / INT6) PD6
(CTS / HWB / AIN6 / T0 / INT7) PD7
(
SS / PCINT0) PB0
(SCLK / PCINT1) PB1
(PDI / MOSI / PCINT2) PB2
AVCC
UVCC
TQFP32
(PCINT11 /AIN2 ) PC2
(OC.0B / INT0) PD0
VCC
XTAL1
(INT5/ AIN3) PD4
(TXD1 / INT3) PD3
(XCK AIN4 / PCINT12) PD5
PB3 (PDO / MISO / PCINT3)
GND
(PC0) XTAL2
UGND
PB4 (T1 / PCINT4)
28 27 26
1
2
3
4
5
6
7
24
23
22
21
20
19
18
1211109131415
(AIN0 / INT1) PD1
8
16
17
PB6 (PCINT6)
D-
D+
2529303132
PB7 (PCINT7 / OC.0A / OC.1C)
PB5 (PCINT5)
PC7 (INT4 / ICP1 / CLKO)
PC6 (OC.1A / PCINT8)
Reset (PC1 / dW)
PC5 ( PCINT9/ OC.1B)
PC4 (PCINT10)
UCAP
(RXD1 / AIN1 / INT2) PD2
(RTS / AIN5 / INT6) PD6
/ HWB / AIN6 / T0 / INT7) PD7
(SS / PCINT0) PB0
(SCLK / PCINT1) PB1
(PDI / MOSI / PCINT2) PB2
AVCC
3
7799ES–AVR–09/2012
ATmega8U2/16U2/32U2
2. Overview
The ATmega8U2/16U2/32U2 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture.
By executing powerful instructions in a single clock cycle, the ATmega8U2/16U2/32U2 achieves throughputs approaching
1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed.
2.1 Block Diagram
Figure 2-1. Block Diagram
The AVR core combines a rich instruction set with 32 general purpose working registers. All the
32 registers are directly connected to the Arithmetic Logic Unit (ALU), allowing two independent
registers to be accessed in one single instruction executed in one clock cycle. The resulting
PROGRAM
COUNTER
STACK
POINTER
PROGRAM
FLASH
MCU CONTROL
REGISTER
SRAM
GENERAL
PURPOSE
REGISTERS
INSTRUCTION
REGISTER
TIMER/
COUNTERS
INSTRUCTION
DECODER
DATA DIR.
REG. PORTC
DATA REGISTER
PORTC
INTERRUPT
UNIT
EEPROM
USART1
STATUS
REGISTER
Z
Y
X
ALU
PORTC DRIVERS
PORTD DRIVERS
PORTB DRIVERS
PC7 - PC0 PD7 - PD0
RESET
VCC
GND
XTAL1
XTAL2
CONTROL
LINES
ANALOG
COMPARATOR
PB7 - PB0
D+/SCK
D-/SDATA
INTERNAL
OSCILLATOR
WATCHDOG
TIMER
8-BIT DA TA BUS
USB
PS/2
TIMING AND
CONTROL
OSCILLATOR
CALIB. OSC
DATA DIR.
REG. PORTB
DATA REGISTER
PORTB
ON-CHIP DEBUG
Debug-Wire
PROGRAMMING
LOGIC
DATA DIR.
REG. PORTD
DATA REGISTER
PORTD
POR - BOD
RESET
PLL
+
-
SPI
ON-CHIP
3.3V
REGULATOR
UVcc
UCap
1uF

ATMEGA16U2-AU

Mfr. #:
Manufacturer:
Microchip Technology / Atmel
Description:
8-bit Microcontrollers - MCU AVR USB 8K FLASH AVR,USB16K FLASH
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union