ATmega16U4 Atmel Corporation, ATmega16U4 Datasheet
ATmega16U4
Specifications of ATmega16U4
Available stocks
Related parts for ATmega16U4
ATmega16U4 Summary of contents
Page 1
... MIPS Throughput at 16 MHz – On-Chip 2-cycle Multiplier • Non-volatile Program and Data Memories – 16/32K Bytes of In-System Self-Programmable Flash (ATmega16U4/ATmega32U4) – 1.25/2.5K Bytes Internal SRAM (ATmega16U4/ATmega32U4) – 512Bytes/1K Bytes Internal EEPROM (ATmega16U4/ATmega32U4) – Write/Erase Cycles: 10,000 Flash/100,000 EEPROM – Data retention: 20 years at 85°C/ 100 years at 25°C – ...
Page 2
Byte Oriented 2-wire Serial Interface – Programmable Watchdog Timer with Separate On-chip Oscillator – On-chip Analog Comparator – Interrupt and Wake-up on Pin Change – On-chip Temperature Sensor • Special Microcontroller Features – Power-on Reset and Programmable Brown-out Detection ...
Page 3
... PB2 (PDO/PCINT3/MISO) PB3 2. Overview The ATmega16U4/ATmega32U4 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 ATmega16U4/ATmega32U4 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed. ...
Page 4
... CISC microcontrollers. The ATmega16U4/ATmega32U4 provides the following features: 16/32K bytes of In-System Programmable Flash with Read-While-Write capabilities, 512Bytes/1K bytes EEPROM, 1.25/2.5K bytes SRAM, 26 general purpose I/O lines (CMOS outputs and LVTTL inputs), 32 ...
Page 5
... As inputs, Port B pins that are externally pulled low will source current if the pull-up resistors are activated. The Port B pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port B has better driving capabilities than the other ports. Port B also serves the functions of various special features of the ATmega16U4/ATmega32U4 as listed on 2.2.4 Port C (PC7,PC6) Port 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit) ...
Page 6
... Only bits 6 and 7 are present on the product pinout. Port C also serves the functions of special features of the ATmega16U4/ATmega32U4 as listed on page 2.2.5 Port D (PD7..PD0) Port 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port D output buffers have symmetrical drive characteristics with both high sink and source capability ...
Page 7
UVCC USB Pads Internal Regulator Input supply voltage. 2.2.12 UCAP USB Pads Internal Regulator Output supply voltage. Should be connected to an external capac- itor (1µF). 2.2.13 VBUS USB VBUS monitor input. 2.2.14 RESET Reset input. A low level ...
Page 8
About 3.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. 3.2 Resources ...
Page 9
Register Summary Address Name Bit 7 (0xFF) Reserved - (0xFE) Reserved - (0xFD) Reserved - (0xFC) Reserved - (0xFB) Reserved - (0xFA) Reserved - (0xF9) Reserved (0xF8) Reserved - (0xF7) Reserved - (0xF6) Reserved - (0xF5) Reserved - (0xF4) ...
Page 10
Address Name Bit 7 (0xBE) TCNT4 (0xBD) TWAMR TWAM6 (0xBC) TWCR TWINT (0xBB) TWDR (0xBA) TWAR TWA6 (0xB9) TWSR TWS7 (0xB8) TWBR (0xB7) Reserved - (0xB6) Reserved - (0xB5) Reserved - (0xB4) Reserved - (0xB3) Reserved - (0xB2) Reserved - ...
Page 11
Address Name Bit 7 (0x7C) ADMUX REFS1 (0x7B) ADCSRB ADHSM (0x7A) ADCSRA ADEN (0x79) ADCH (0x78) ADCL (0x77) Reserved - (0x76) Reserved - (0x75) Reserved - (0x74) Reserved - (0x73) Reserved - (0x72) TIMSK4 OCIE4D (0x71) TIMSK3 - (0x70) Reserved ...
Page 12
... When using the I/O specific commands IN and OUT, the I/O addresses $00 - $3F must be used. When addressing I/O regis- ters as data space using LD and ST instructions, $20 must be added to these addresses. The ATmega16U4/ATmega32U4 is a complex microcontroller with more peripheral units than can be supported within the 64 location reserved in Opcode for the IN and OUT instructions ...
Page 13
Instruction Set Summary Mnemonics Operands ARITHMETIC AND LOGIC INSTRUCTIONS ADD Rd, Rr ADC Rd, Rr ADIW Rdl,K SUB Rd, Rr SUBI Rd, K SBC Rd, Rr SBCI Rd, K SBIW Rdl,K AND Rd, Rr ANDI Rd Rd, ...
Page 14
Mnemonics Operands BRVC k BRIE k BRID k BIT AND BIT-TEST INSTRUCTIONS SBI P,b CBI P,b LSL Rd LSR Rd ROL Rd ROR Rd ASR Rd SWAP Rd BSET s BCLR s BST Rr, b BLD Rd, b SEC CLC ...
Page 15
Mnemonics Operands SPM IN Rd, P OUT P, Rr PUSH Rr POP Rd MCU CONTROL INSTRUCTIONS NOP SLEEP WDR BREAK 7766FS–AVR–11/10 Description Store Program Memory In Port Out Port Push Register on Stack Pop Register from Stack No Operation Sleep ...
Page 16
... Speed (MHz) Power Supply Ordering Code ATmega16U4-AU ATmega16U4RC-AU 16 2.7 - 5.5V ATmega16U4-MU ATmega16U4RC-MU ML Lead Body Size, 1.0 mm Body Thickness 44ML 0.8 mm Lead Pitch, Thin Profile Plastic Quad Flat Package (TQFP) PW Lead 7.0 x 7.0 mm Body, 0.50 mm Pitch 44PW Quad Flat No Lead Package (QFN) 7766FS–AVR–11/10 ...
Page 17
ATmega32U4 Speed (MHz) Power Supply Ordering Code ATmega32U4-AU ATmega32U4RC-AU 16 2.7 - 5.5 V ATmega32U4-MU ATmega32U4RC-MU ML Lead Body Size, 1.0 mm Body Thickness 44ML 0.8 mm Lead Pitch, Thin Profile Plastic Quad ...
Page 18
Packaging Information 7.1 TQFP44 7766FS–AVR–11/10 ATmega16/32U4 18 ...
Page 19
QFN44 7766FS–AVR–11/10 ATmega16/32U4 19 ...
Page 20
... Errata The revision letter in this section refers to the revision of the ATmega16U4/ATmega32U4 device. 8.1 ATmega16U4/ATmega32U4 Rev E • Spike on TWI pins when TWI is enabled • High current consumption in sleep mode • MSB of OCR4A/B/D is write only in 11-bits enhanced PWM mode 1. Spike on TWI pins when TWI is enabled 100 ns negative spike occurs on SDA and SCL pins when TWI is enabled ...
Page 21
... SDA and SCL pins when TWI is enabled. Problem Fix/work around Enable ATmega16U4/ATmega32U4 TWI before the other nodes of the TWI network. 2. High current consumption in sleep mode If a pending interrupt cannot wake the part up from the selected mode, the current consump- tion will increase during sleep when executing the SLEEP instruction directly after a SEI instruction ...
Page 22
... SDA and SCL pins when TWI is enabled. Problem Fix/work around Enable ATmega16U4/ATmega32U4 TWI before the other nodes of the TWI network. 2. High current consumption in sleep mode If a pending interrupt cannot wake the part up from the selected mode, the current consump- tion will increase during sleep when executing the SLEEP instruction directly after a SEI instruction ...
Page 23
PWM mode T Timer 4 11-bits enhanced mode is not functional. Problem Fix/work around None. ATmega16/32U4 23 7766FS–AVR–11/10 ...
Page 24
... Datasheet Revision History for ATmega16U4/ATmega32U4 Please note that the referring page numbers in this section are referred to this document. The referring revision in this section are referring to the document revision. 9.1 Rev. 7766F – 11/ 9.2 Rev. 7766E – 04/ 10. 11. ...
Page 25
... Rev. 7766B – 11/ 9.6 Rev. 7766A – 07/08 1. ATmega16/32U4 25 Added ATmega16U4 device. Created errata section and added ATmega16U4. Updated High Speed Timer, asynchronous description Initial revision Section 15. on page 139 7766FS–AVR–11/10 ...
Page 26
... Atmel Corporation. All rights reserved. / Rev. CORP072610 ® Atmel , logo and combinations thereof, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products ...