AT43USB326-AU

AT43USB326-AU Datasheet


The Atmel AT43USB326 is an 8-bit microcontroller based on the AVR RISC architecture. By executing powerful instructions in a single clock cycle, the AT43USB326 achieves throughputs approaching 12 MIPS. The AVR core combines a rich instruction set with 32 general-purpose working registers. All 32 registers are directly connected to the ALU allowing two independent registers to be accessed in one single instruction executed in one clock cycle. The resulting architecture is more code efficient while achieving throughputs up to ten times faster than conventional CISC microcontrollers.

Part Datasheet
AT43USB326-AU AT43USB326-AU AT43USB326-AU (pdf)
Related Parts Information
AT43USB326-AC AT43USB326-AC AT43USB326-AC
PDF Datasheet Preview
• 8-bit RISC Microcontroller with 83 ns Instruction Cycle Time
• USB Hub with One Attached and Two External Ports
• USB Keyboard Function with Three Programmable Endpoints
• 16 KB Program Memory, 512 Bytes Data SRAM
• 32 x 8 General-purpose Working Registers
• 32 Programmable I/O Port Pins
• Support for 18 x 8 Keyboard Matrix
• Keyboard Scan Inputs with Pull-up Resistor
• Four LED Driver Outputs
• One 8-bit Timer/Counter with Separate Pre-scaler
• External and Internal Interrupt Sources
• Programmable Watchdog Timer
• 6 MHz Oscillator with On-chip PLL
• 5V Operation with On-chip 3.3V Power Supply
• 48-lead LQFP Package

The Atmel AT43USB326 is an 8-bit microcontroller based on the AVR RISC architecture. By executing powerful instructions in a single clock cycle, the AT43USB326 achieves throughputs approaching 12 MIPS. The AVR core combines a rich instruction set with 32 general-purpose working registers. All 32 registers are directly connected to the ALU allowing two independent registers to be accessed in one single instruction executed in one clock cycle. The resulting architecture is more code efficient while achieving throughputs up to ten times faster than conventional CISC microcontrollers.

Furthermore, the AT43USB326 features an on-chip 16-Kbyte program memory and 512 bytes of data memory. It is supported by a standard set of peripherals such as timer/counter modules, watchdog timer and internal and external interrupt sources. The major peripheral included in the AT43USB326 is the USB Hub with an embedded keyboard controller function.

Multimedia USB Keyboard Controller with Embedded Hub

AT43USB326

Pin Configuration

Figure AT43USB326 48-lead LQFP

VSS2

CEXT2

RESETN

AT43USB326

CEXT1

XTAL2

XTAL1

VSS1

TEST
2 AT43USB326

Pin Assignment

Pin# 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Signal TEST VSS1 LFT XTAL1 XTAL2 CEXT1 VCC PE4 PE5 PE6 PE7 PE1/COL17 PE0/COL16 PB7/COL15 PB6/COL14 PB5/COL13 PB4/COL12 PB3/COL11 PB2/COL10 PB1/COL9 PB0/COL8 PA7/COL7 PA6/COL6 PA5/COL5

Type Input Power Supply/Ground Output Input Output Power Supply/Ground Power Supply/Ground Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional

AT43USB326

Pin# 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48

Signal PA4/CL4 PA3/CL3 PA2/CL2 PA1/CL1 PA0/CL0 PC7/ROW7 PC6/ROW6 PC5/ROW5 PC4/ROW4 PC3/ROW3 PC2/ROW2 PC1/ROW1 PC0/ROW0

PD0 PD1 VSS2 CEXT2 DP3 DM3 DP2 DM2 DP0 DM0 RESETN

Type Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Power Supply/Ground Power Supply/Ground Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional

Signal Description

Name

Type

VCC VSS1, 2 CEXT1, 2

Power Supply/Ground Power Supply/Ground Power Supply/Ground

XTAL1 XTAL2 LFT

Input Output Input

DMO DP[2,3]

Bi-directional

Bi-directional Bi-directional

DM[2,3] PA[0:7] PB[0:7] PC[0:7] PD[0:1] PE[0:1] PE[4:7] TEST RESETN

Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Bi-directional Input

Function
5V Digital Power Supply

Ground
Ordering Information
Ordering Code AT43USB326-AC

AT43USB326-AU

Package 48 LQFP
48 LQFP

Operation Range

Commercial 0°C to 70°C

Green, Industrial -40°C to +85°C
96 AT43USB326

Packaging Information
48AA LQFP

AT43USB326

PIN 1 e

PIN 1 IDENTIFIER

B E1 E

A1 A2 L

This package conforms to JEDEC reference MS-026, Variation BBC. Dimensions D1 and E1 do not include mold protrusion. Allowable
protrusion is mm per side. Dimensions D1 and E1 are maximum plastic body size dimensions including mold mismatch. Lead coplanarity is mm maximum.

COMMON DIMENSIONS Unit of Measure = mm

SYMBOL MIN

NOTE

Note 2 Note 2
2325 Orchard Parkway R San Jose, CA 95131
48AA, 48-lead, 7 x 7 mm Body Size, mm Body Thickness, mm Lead Pitch, Low Profile Plastic Quad Flat Package LQFP
48AA

Errata Sheet

Problem

Fix/Workaround

Errata All Date Codes Missed Watchdog Timer Reset

There is a synchronization problem between the watchdog clock and the AVR clock. Even though the clock inputs to both the watchdog timer and the AVR core are generated through the same crystal, the two clock sources are not going through the same PLL. The AVR is clocked at 12 MHz and the watchdog timer is clocked at 1MHz. The WDR Watchdog Reset instruction is a one-clock-cycle instruction. As such, when a watchdog timer reset occurs due to a WDR, the watchdog timer may miss the reset. This happens frequently if the AVR is clocked much faster than the watchdog timer.

A workaround is to invoke the WDR repetitively to ensure that the watchdog timer will be able to receive the reset signal. If the AVR runs at 12 MHz, the WDR command must be invoked fourteen times back to back. The following is the sample code for resetting and arming the watchdog timer, assuming the AVR is running at 12 MHz:
asm "ldi out 0x21,r16 " ;

To disarm and disable the watchdog, do the following:
asm "ldi out 0x21,r17 " ;

Please note that if the AVR runs at 24 MHz, the WDR should be invoked twenty-six times.
98 AT43USB326

AT43USB326
3313C 3313D

Comments
• Missing Data Correction Inserted the section “Watchdog Timer” on page
• Additions Added an “Errata Sheet” on page 98, a “Revision History” on page 99, and a “Table of Contents” on page i.
• Data Correction Corrected references to part number AT43USB325 to AT43USB326 in the section “Watchdog Timer” on page 39 and on “Example Schematics” on page
• Additions Added AT43USB326-AU part number to Ordering Information.

Table of Contents

AT43USB326

Description 1

Pin Configuration 2 Pin 3 Signal 4

Architectural 6

The General-purpose Register File 7

X-, Y- and Z- Registers 8 ALU Arithmetic Logic 8 Program Memory 8 SRAM Data 9 I/O Memory 14 USB 15

Functional 17

On-chip Power Supply 17 I/O Pin Characteristics 17 Oscillator and PLL 17 Reset and Interrupt 18 Reset Sources 20 Power-on Reset 21 External Reset 22 Watchdog Timer Reset 22 Non-USB Related Interrupt 22 External Interrupts 26 Interrupt Response Time 26 USB Interrupt 28 USB Endpoint Interrupt 29

AVR Register Set 34

Status Register and Stack 34 Sleep 35

Timer/Counter 36

Timer/Counter 36 8-bit 37 Watchdog Timer 39

I/O 40

Port 41 Port 42 Port 43 Port 44

Port 45

Programming the USB 46

The USB Function 46 USB Registers 53 Endpoint Registers 54 USB 62 Suspend and Resume 72

Electrical Specification 76

Absolute Maximum Ratings 76 DC 76

Typical 84

Detailed 84 Initial Check Byte 85 Keyboard 85 Example of SEEPROM Data 85 Example Schematics 94
Ordering 96

Packaging Information 97
48AA LQFP 97

Errata 98

Problem 98 Fix/Workaround 98

Table of Contents i
ii AT43USB326

Atmel Corporation
2325 Orchard Parkway San Jose, CA 95131, USA Tel 1 408 441-0311 Fax 1 408 487-2600

Regional Headquarters

Europe Atmel Sarl Route des Arsenaux 41 Case Postale 80 CH-1705 Fribourg Switzerland Tel 41 26-426-5555 Fax 41 26-426-5500

Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong Tel 852 2721-9778 Fax 852 2722-1369

Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel 81 3-3523-3551 Fax 81 3-3523-7581

Atmel Operations

Memory 2325 Orchard Parkway San Jose, CA 95131, USA Tel 1 408 441-0311 Fax 1 408 436-4314

Microcontrollers 2325 Orchard Parkway San Jose, CA 95131, USA Tel 1 408 441-0311 Fax 1 408 436-4314

La Chantrerie BP 70602 44306 Nantes Cedex 3, France Tel 33 2-40-18-18-18 Fax 33 2-40-18-19-60

ASIC/ASSP/Smart Cards Zone Industrielle 13106 Rousset Cedex, France Tel 33 4-42-53-60-00 Fax 33 4-42-53-60-01
1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel 1 719 576-3300 Fax 1 719 540-1759

Scottish Enterprise Technology Park Maxwell Building East Kilbride G75 0QR, Scotland Tel 44 1355-803-000 Fax 44 1355-242-743

RF/Automotive Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany Tel 49 71-31-67-0 Fax 49 71-31-67-2340 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel 1 719 576-3300 Fax 1 719 540-1759

Biometrics/Imaging/Hi-Rel MPU/ High-Speed Converters/RF Datacom

Avenue de Rochepleine BP 123 38521 Saint-Egreve Cedex, France Tel 33 4-76-58-30-00 Fax 33 4-76-58-34-80

Literature Requests

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. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDITIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.

Atmel Corporation All rights reserved. logo and combinations thereof, Everywhere You and others are registered
trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.

Printed on recycled paper.
More datasheets: FFPF30U60STU | FFPF30U60STTU | 1010 | A4F08QD8BNPBSE | MV57173 | MV54173 | AT29BV040A-20JU | AT29BV040A-20TU-T | AT29BV040A-20TU | 65


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived AT43USB326-AU Datasheet file may be downloaded here without warranties.

Datasheet ID: AT43USB326-AU 519028