Features
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
AVR
®
8-bit RISC Microcontroller with 83 ns Instruction Cycle Time
USB Hub with One Attached and Four External Ports
USB Keyboard Function with Four Programmable Endpoints
16 KB Program Memory, 512-Byte Data SRAM
32 x 8 General-purpose Working Registers
42 Programmable I/O Port Pins
Support for 20 x 8 Keyboard Matrix
Keyboard Scan Inputs with Pull-up Resistor
Four LED Driver Outputs
One 8-bit Timer/Counter with Separate Pre-scaler
One 16-bit Timer/Counter with Separate Pre-scaler and Dual 8-, 9- or 10-bit PWM
External and Internal Interrupt Sources
Programmable Watchdog Timer
6-MHz Oscillator with On-chip PLL
5V Operation with On-chip 3.3V Power Supply
64-lead LQFP Package
Multimedia
USB Keyboard
Controller with
Embedded Hub
AT43USB325
1. Description
The Atmel AT43USB325 is an 8-bit microcontroller based on the AVR RISC architec-
ture. By executing powerful instructions in a single clock cycle, the AT43USB325
achieves throughputs approaching 12 MIPS. The AVR core combines a rich instruc-
tion 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 effi-
cient while achieving throughputs up to ten times faster than conventional CISC
microcontrollers.
The AT43USB325 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 AT43USB325 is the USB Hub with an embedded
function and GPIO ports designed for use in a keyboard controller. The embedded
function has 4 endpoints that makes the AT43USB325 extremely suitable for key-
boards supporting the consumer page as described in the “USB Usage Tables”.
The AT43USB325 comes in two versions. The program memory of the
AT43USB325E is an SRAM that is automatically written from an external serial
EEPROM during power on. The AT43USB325M has a masked ROM program mem-
ory. The two versions are pin, function and binary compatible.
3355C–USB–4/05
1.1
Pin Configuration
64-lead LQFP AT43USB325E-AC
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
Figure 1-1.
Figure 1-2.
64-lead LQFP AT43USB325M-AC
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
2
AT43USB325
3355C–USB–4/05
RESETN
TEST
PC7
PC6
PC5
PC4
PC3
PC2
PC1
PC0
PD7
PD6
PD5
PD4
PF3
PF2
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PD3
PD1
PD0
DP0
DM0
DP2
DM2
DP3
DM3
VCC1
CEXT1
VSS1
DP4
DM4
DP5
DM5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
RESETN
TEST
PC7
PC6
PC5
PC4
PC3
PC2
PC1
PC0
PD7
PD6
PD5
PD4
MISO
MOSI
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
PE0
PE1
PE2
PE3
LFT
XTAL2
XTAL1
VSS2
CEXT2
VCC2
PE4
PE5
PE6
PE7
NC
PF1
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PD3
PD1
PD0
DP0
DM0
DP2
DM2
DP3
DM3
VCC1
CEXT1
VSS1
DP4
DM4
DP5
DM5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
PE0
PE1
PE2
PE3
LFT
XTAL2
XTAL1
VSS2
CEXT2
VCC2
PE4
PE5
PE6
PE7
SSN
SCK
AT43USB325
1.2
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
25
26
27
28
29
30
31
32
Pin Assignment
Signal
PD3
PD1
PD0
DP0
DM0
DP2
DM2
DP3
DM3
VCC1
CEXT1
VSS1
DP4
DM4
DP5
DM5
RESETN
TEST
PC7
PC6
PC5
PC4
PC3
PC2
PC1
PC0
PD7/INTD
PD6/INTC
PD5/INTB
PD4/INTA
PF3/SO/ICP
PF2/SI/OC1B
Type
Bi-directional
Bi-directional
Bi-directional
Bi-directional
Bi-directional
Bi-directional
Bi-directional
Bi-directional
Bi-directional
Power Supply/Ground
Output
Power Supply/Ground
Bi-directional
Bi-directional
Bi-directional
Bi-directional
Input
Input
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
Pin#
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Signal
PF1/SCK/OC1A
NC/SSN
PE7
PE6
PE5
PE4
VCC2
CEXT2
VSS2
XTAL1
XTAL2
LFT
PE3
PE2
PE1
PE0
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
Type
Bi-directional
Bi-directional
Bi-directional
Bi-directional
Bi-directional
Bi-directional
Power Supply/Ground
Output
Power Supply/Ground
Input
Output
Output
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
Bi-directional
Bi-directional
Bi-directional
3
3355C–USB–4/05
1.3
Name
V
CC1, 2
Signal Description
Type
Power Supply/Ground
Output
Power Supply/Ground
Input
Output
Input
Function
5V Power Supply
External Capacitors for Internal Voltage Regulator
– A high quality 2.2µF capacitor must
be connected to CEXT1 and 0.33 µF to CEXT2 for proper operation of the chip.
Ground
Oscillator Input
– Input to the inverting oscillator amplifier.
Oscillator Output
– Output of the inverting oscillator amplifier.
PLL Filter
– For proper operation of the PLL, this pin should be connected through a 0.01 µF
capacitor in parallel with a 100Ω resistor in series with a 0.1 µF capacitor to ground (VSS).
Both capacitors must be high quality ceramic.
Upstream Plus USB I/O
– This pin should be connected to CEXT1 through an external
1.5 kΩ pull-up resistor. DP0 and DM0 form the differential signal pin pairs connected to the
Host Controller or an upstream Hub.
Upstream Minus USB I/O
Port Plus USB I/O
– Each of these pins should be connected to VSS through an external
15 kΩ resistor. DP[2:5] and DM[2:5] are the differential signal pin pairs to connect
downstream USB devices.
Port Minus USB I/O
– Each of these pins should be connected to VSS through an external
15 kΩ resistor.
Port A[0:7]
– Bi-directional 8-bit I/O port with controlled slew rate. These pins are used as
eight of the keyboard matrix column output strobes. PA[0:7] = COL[0:7].
CEXT1, 2
V
SS1
,
2
XTAL1
XTAL2
LFT
DPO
DMO
DP[2:5]
Bi-directional
Bi-directional
Bi-directional
DM[2:5]
PA[0:7]
Bi-directional
Bi-directional
PB[0:7]
Bi-directional
Port B[0:7]
– Bi-directional 8-bit I/O port controlled slew rate. These pins are used
as the eight of the keyboard matrix column output strobes: PB[0:7] = COL[8:15].
PB0 has a dual function: the input to timer/counter0.
Port Pin
PB0
Alternate Function
T0, Timer/Counter0 external input
PC[0:7]
Bi-directional
Port C[0:7]
– Bi-directional 8-bit I/O port with internal pull-ups. These pins are used as
keyboard matrix row input signals. PC[0:7] = ROW [0:7].
Port D[0,1,3:7]
– Bi-directional I/O ports. Port D[1,4:7] have dual functions as shown below:
Port Pin
Alternate Function
PD1
T1, Timer/Counter1 External Input
PD3
INT1, External Interrupt Input 1
PD4
INTA, External Interrupt Input A
PD5
INTB, External Interrupt Input B
PD6
INTC, External Interrupt Input C
PD7
INTD, External Interrupt Input D
Port E[0:3]
– Bi-directional I/O port with controlled slew rate which can be used as four
additional keyboard column output strobes, COL[16:19].
PE[4:7]
– Bi-directional I/O port. PE[4:7] have built-in series limiting resistors and can be
used to drive LEDs directly
PD[0,1,3:7]
Bi-directional
PE[0:3]
PE[4:7]
Bi-directional
Bi-directional
4
AT43USB325
3355C–USB–4/05
AT43USB325
1.3
Name
Signal Description (Continued)
Type
Function
Port F[1:3]
– Bi-directional I/O port. In the AT43USB325E, these port pins have dual
functions as the interface pins to the serial EEPROM as shown below:
Alternate Function 1
(AT43USB325E only)
SCK, SPI Master Clock Out
SI, SPI Slave Data Input
SO, SPI Slave Data Out
PF[1:3]
Bi-directional
Port Pin
PF1
PF2
PF3
Alternate Function 2
OC1A, Timer/Counter1 Output Compare A
OC1B, Timer/Counter1 Output Compare B
ICP, Timer/Counter1 Input Capture
NC/SSN
TEST
RESETN
Note:
Output
Input
Input
No Connect/Slave Select
– In the AT43USB325M this pin is not used. In the AT43USB325E
this pin is the SPI slave select input used for enabling the serial memory during program
memory downloading.
Test Pin
– This pin should be tied to ground.
Reset
– Active low
Signal names ending with an N are active low.
5
3355C–USB–4/05