Академический Документы
Профессиональный Документы
Культура Документы
.............................................................................................
Section 2
Using the AT90USBKey ....................................................................... 2-5
2.1 Overview ...................................................................................................2-5
2.2 Power Supply ............................................................................................2-6
2.3 Reset.........................................................................................................2-8
2.4 On-board Resources.................................................................................2-9
2.5 In-System Programming .........................................................................2-13
2.6 Debugging...............................................................................................2-14
Section 3
Troubleshooting Guide ....................................................................... 3-15
Section 4
Technical Specifications ..................................................................... 4-16
Section 5
Technical Support ............................................................................... 5-17
Section 6
Complete Schematics ......................................................................... 6-18
1.1 Overview
To increase its demonstrative capabilities, this stand alone board has numerous on-
board resources: USB, joystick, data-flash and temperature sensor.
2.1 Overview
The on-board power supply circuitry allows two power supply configurations:
from USB connector
from battery connector
USB powered When used as a USB device bus powered application, the AVRUSBKey can be directly
powered via the USB VBUS power supply line.
Battery powered The external battery connector should be used when the AT90USBKey is used as a
USB host. This mode allows the AT90USBKey to provide a 5V power supply from its
VBUS pin.
D6 U5
J8 VBAT 1 3
2 IN OUT
1 220nF 2 100nF
LL4148 - GND
C16 C17 C18
4.7uF LM340
MTA
Ext power supply
When using the AT90USB microcontroller in USB host mode, the AT90USBKey should
provide a 5V power supply over the VBUS pin of its USB mini AB connector.
A couple of transistors allows the UVCON pin of the AT90USB to control the VBUS
generation (See Figure 2-3). In this mode the AT90USBKey is powered by external
battery power supply source.
FDV304P/FAI
5V VBUS
R24 M1
10k
R25
UVCON Q1 C19
BC847B 4.7uF
-
100k
The POWER-ON LED (“D1”) is always lit when power is applied to AVRUSBKey
regardless of the power supply source.
2.3 Reset
Although the AT90USB has its on-chip RESET circuitry (c.f. AT90USB Datasheet,
section “System Control and Reset), the AVRUSBKey provides to the AT90USB a
RESET signal witch can come from two different sources:
R6
47k C8
220nF
RESET
RST
By pressing the RESET push button on the AVRUSBKey, a warm RESET of the
AT90USB is performed.
To use the USB interface of the AT90USB, the clock source should always be a crystal
or external clock oscillator (the internal 8MHz RC oscillator can not be used to operate
with the USB interface). Only the following crystal frequency allows proper USB
operations: 2MHz, 4MHz, 6MHz, 8MHz, 12MHz, 16MHz. The AT90USBKey comes with
a default 8MHz crystal oscillator.
2.4.1 USB
The AVRUSBKey is supplied with a standard USB mini A-B receptacle. The mini AB
receptacle allows to connect both a mini A plug or a mini B plug connectors.
R4 0
GND
When connected to a mini B plug, the AT90USB operates as an “USB device” (the ID
pin of the plug is unconnected) and when connected to a mini A plug, the AT90USB
operates as a “USB host” (the ID pin of the A plug is tied to ground).
2.4.2 Joystick
The 4+1 ways joystick offers an easy user interface implementation for a USB
application (it can emulate mouse movements, keyboard inputs...).
Pushing the push-button causes the corresponding signal to be pulled low, while
releasing (not pressed) causes an H.Z state on the signal. The user must enable
internal pull-ups on the microcontroller input pins, removing the need for an external
pull-up resistors on the push-button.
2.4.3 LEDs
The AT90USBKey includes 2 bi-color LEDs (green/red) implemented on one line. They
are connected to the high nibble of “Port D” of AT90USB (PORTD[4..7]).
To light on a LED, the corresponding port pin must drive a high level. To light off a LED,
the corresponding port pin must drive a low level.
1k R14
D2 PD[7..0]
PD4
1k R17
PD5
D5 1k R22
PD6
1k R23
PD7
The voltage over the NTC can be found using the A/D converter (connected to channel
0). See the AT90USB Datasheet for how to use the ADC. The thermistor value (RT) is
calculate with the following expression:
R T = ( R H ⋅ V ADC 0 ) ⁄ ( V CC – V ADC 0 )
The NTC thermistor used in AT90USBKey has a resistance of 100 KΩ ±5% at 25°C (T0)
and a beta-value of 4250 ±3%. By the use of the following equation, the temperature (T)
can be calculated:
β
T = -------------------------------
R
⎛ ln T⎞ + ----- β
⎝ R ⎠
------- -
0 T0
The following cross table also can be used. It is based on the above equation.
PF0
R27
100k
R29
For mass-storage class demonstration purpose, the AT90USBKey provides two on-chip
serial Flash memories (AT45DB642D) connected to the AT90USB Serial Port Interface
(SPI).
The data-flash chip select signals are connected to PortE bit 0 and bit 1 of the AT90USB
(See Figure 2-9).
PB[7..0]
VCC3
VCC3
R9
100k R10
100k
VCC3
PE0 VCC3
PB1 U2 PE1
PB2 1 8 R11 PB1 U3
PB3 2 SI SO 7 100k PB2 1 8 R12
3 SCK GND 6 PB3 2 SI SO 7 100k
RESET RESET VCC SCK GND
4 5 RESET 3 6
CS WP 4 RESET VCC 5
AT45DB642D CASON8 CS WP
AT45DB642D CASON8
AT90USB part comes with a default factory pre-programmed USB bootloader located in
the on-chip boot section of the AT90USB. This is the easiest and fastest way to
reprogram the device directly over the USB interface. The “Flip” PC side application, is
available from the Atmel website, offers a flexible an user friendly interface to reprogram
the application over the USB bus.
The HWB pin of the AT90USB allows to force the bootloader section execution after
reset. (Refer to AT90USB datasheet section “boot loader support”). To force bootloader
execution, operate as follow:
Press both “RST” and “HWB” push buttons
First release the “RST” push button
Release the “HWB” push button
For more information about the USB bootloader and “Flip” application, please refer to
the “USB bootloader datasheet document” and “Flip’s user manual”.
Note: The HWB pin is active only if the HWBE fuse is set (default factory configuration).
The AT90USB can be programmed using specific JTAG link. To use the AVR
JTAGICEmkII with an AT90USBKey an optional HE10 connector should be soldered to
J9 footprint. Then the JTAG probe can be connected to the AT90USBKey as shown in
Figure 2-10.
Note: When the JTAGEN Fuse is unprogrammed, the four TAP pins are normal port pins, and
the TAP controller is in reset. When programmed, the input TAP signals are internally
pulled high and the JTAG is enabled for Boundary-scan and programming. The
AT90USB device is shipped with this fuse programmed.
The Flash, EEPROM and all Fuse and Lock Bit options ISP-programmable can be
programmed individually or with the sequential automatic programming option.
2.6 Debugging
The AT90USBKey can be used for debugging with JTAG ICE MK II.
Connect the JTAG ICE mkII as shown in Figure 2-10, for debugging, please refer to
AVR Studio® Help information.
When using JTAG ICE MK II for debugging, and as AT90USB parts are factory
configured with the higher security level set, a chip erase operation will be performed on
the part before debugging. Thus the on-chip flash bootloader will be erased. It can be
restored after the debug session using the bootloader hex file available from ATMEL
website.
The AVR JTAG ICE Connect the JTAG ICE 10-PIN header to
probe is not the correct AVRUSBKey JTAG header
connected (page 13)
The memory lock bits Erase the memory before programming
are programmed with JTAG ICE.
The AT90USB cannot be The fuse bits are
Check the fuse bits with JTAG ICE
programmed wrongly programmed
Force bootloader execution with HWB
under reset.
Can not connect to
USB bootloader USB bootloader erased after a JTAG
debugging session: reprogram the USB
bootloader with JTAG.
System Unit
– Physical Dimensions .....................................................L=90 x W=30 x H=8 mm
– Weight ...........................................................................................................12 g
Operating Conditions
– Internal Voltage Supply ............................................................................... 3.3V
– External Voltage Supply .........................................................................8V -15V
Connections
– USB Connector ......................................................................Mini AB receptacle
– USB Communications .......................................................Full speed/low speed
PF0
PF1
PE0
PE1
Ferrite & capacitors 10 9 10 9
10 9 10 9
PF2
PF3
PE2
PE3
closed to the MCU 8 7 8 7 DECOUPLING CAPACITORS
8 7 8 7
PF4
PF5
PE4
PE5
6 5 6 5 CLOSED TO THE DEVICE C1
6 5 6 5
PF6
PF7
PE6
PE7
4 3 VCC 4 3 VCC 100nF
R1 0 2 4 3 1 2 4 3 1 MCU Pin52 C0603
R0603 2 1 2 1
1.27 mm Dual 1.27 mm Dual
H1.27-10 (not mounted) H1.27-10 (not mounted)
100nF C3 VCC
PF[7..0] AREF
C2
C0603 100nF VCC
C0603 AREF C4
PA[7..0] DECOUPLING CAPACITORS C6
AGND PA[7..0]
100nF CLOSED TO THE DEVICE 100nF
C0603 C0603
MCU Pin21
PF0
PF1
PF2
PF3
PF4
PF5
PF6
PF7
PA0
PA1
PA2
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
D+ D- RESISTORS GND VCC
Closed to the MCU
PF0
PF1
PF2
PF3
PF4
PF5
PF6
PF7
PA0
PA1
PA2
DECOUPLING CAPACITORS
VCC
GND
GND
UVCON PE6 PA3
AREF
1 48 C5
AVCC
PE6 PA3 CLOSED TO THE DEVICE
J3 <ASSEMBLY > VCC UVCON PE7 2 47 PA4 100nF
VBUS R2 22 UVCC 3 PE7 PA4 46 PA5 MCU Pin3 C0603
1-V_BUS VBUS UVcc PA5
R0603 D- 4 45 PA6
2-D- D+ 5 D- PA6 44 PA7
3-D+ UGND 6 D+ PA7 43 PE2
5-GND GND UGND UGND GND PE2
R3 22 UCAP 7 42 PC7
UCAP UCAP PC7 PD[7..0]
R0603 VBUS 8 41 PC6 J4
4-ID VBUS VBUS PC6
PD0
PD1
PB7
PE4
PE5
RESET
VCC
GND
XTAL2
XTAL1
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PC[7..0]
PC0
PC1
R0603 10 9
Figure 6-1 . Schematics, 1 of 2
10 9
UGND
PC2
PC3
UCAP Capacitor U1 8 7
8 7
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PC4
PC5
PB7 4 3 VCC
AGND 2 4 3 1
2 1
PE4
PE5
XTAL2
XTAL1
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
R5 0 PB[7..0] 1.27 mm Dual (not mounted)
PB[7..0]
RESET
R0603 PD[7..0] H1.27-10
PD[7..0]
UGND PE[7..0]
VCC VCC
R8 0 XTAL2 XTAL1
R0603 R6 C0603 R7 C0603
Y 1 8MHz CRY STAL 47k C8 47k C9
RESISTORS R0603 220nF R0603 220nF
CLOSED TO THE DEVICE RESET
RESET PE2
C10 8MHz C11 RST
15pF 49US 15pF HWB
C0603 C0603
RST HWB
DTSM-3
DTSM-3
PB0
PB1
PA0
PA1
10 9 10 9
10 9 10 9
PB2
PB3
PA2
PA3
8 7 8 7
8 7 8 7
PB4
PB5
PA4
PA5
6 5 6 5
6 5 6 5
PB6
PB7
PA6
PA7
6-19
7627A–AVR–04/06
6-20
PB[7..0] Data Flash
7627A–AVR–04/06
VCC3 VCC
VCC
VCC3 DECOUPLING CAPACITOR VCC3
CLOSE TO THE DEVICE VCC3 DECOUPLING CAPACITOR
C12 CLOSE TO THE DEVICE
100nF C13
100nF
POWER LED(RED)
R9
Complete Schematics
0
Figure 6-2 . Schematics, 2 of 2
D6 U5
J8 FDV304P/FAI
VBAT 1 3
IN OUT VBUS
2
1 220nF 2 100nF R24 M1
LL4148 - GND
Joystick Interface C16 C17 C18 10k
PB[7..0] 4.7uF LM340
SW3 R25
5 PB5 MTA Q1 C19
Select UVCON
7 PB6 Ext power supply BC847B 4.7uF
Lef t PB7 -
3
Up 6 PE4 100k
Right 4 PE5
1 Down
2 Com1
Com2 PE[7..0] Temp Sensor VBat Mon.
TPA511G VBAT
PF[7..0]
VCC VBUS generator f or OTG/HOST mode
VCC JTAG Interface 1 F <Cap Vbus < 6 F OTG Specif ication
PF0
PF3
R28
R27 220k
R26 DECOUPLING CAPACITOR 100k
0
CLOSE TO THE CONNECTOR
PF[7..0] J9 R30
PF4 1 2 VCC R29 100k
PF6 3 TCK GND 4
A90USB Key
PF5 5 TDO VCC 6 Title
TMS RESET RESET
7 8 C20 Power & Interf aces
PF7 9 VCC n.c. 10 100nF
TDI GND Size Document Number Rev
CON 2x5 A4 <Doc> 1.0.0
(not mounted) NCP18WF104J03RB
2.54 m m JTAG CON Date: Saturday , February 18, 2006 Sheet 2 of 2
CON 2x5
Tech.
Item Q.ty Reference Part Package
Characteristics
Literature Requests
www.atmel.com/literature
Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise,to anyintellectu-
alproperty right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI-TIONS OF
SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORYWAR-
RANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICU-
LARPURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL
OR INCIDEN-TAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMA-
TION) ARISING OUTOF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAM-
AGES. Atmel makes norepresentationsor warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make
changes to specificationsand 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 useas components in applications intended to support or sustainlife.
© Atmel Corporation 2006. All rights reserved. Atmel ® , logo and combinations thereof, are registered trademarks, and Everywhere You Are®
are the trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.
7627A–AVR–04/06 /xM