The STK520 board is a top module de signed to ad d AT90PW M family suppo rt to the
STK500 development board from Atmel Corporation.
The STK520 includes connectors and hardware allowing full utilization of the new features of th e AT90 PWM , whil e th e Ze ro I nser tio n For ce (Z IF) soc ket allo ws eas y t o use of
SO24 & SO32 packages for prototyping.
This user guide ac ts as a gen eral ge tting st arted gui de as wel l as a compl ete tec hnical
reference for advanced users.
Notice that in this guide, the word AVR is used to refer to the target component
(AT90PWM2, AT90PWM3...)
Figure 1-1. STK520 Top Module for STK500
Introduction
Section 1
Introduction
STK520 User Guide1-2
7510A–AVR–08/05
Introduction
1.1Features STK520 is a New Member of the Successful STK500 Starter Kit Family.
Supports the AT90PWM2 & AT90PWM3.
DALI Hardware Interface.
®
Supported by AVR Studio
Zero Insertion Force Socket for SO24 & SO32 Packages.
High Voltage Parallell Programming.
Serial Programming.
DALI Peripherals can be Disconnected from the Device.
6 Pin Connector for On-chip Debugging using JTAG MKII Emulator.
Potentiometer for the Demo Application.
Quick Reference to all Switches and Jumpers in the Silk-Screen of the PCB.
4.
1-3STK520 User Guide
7510A–AVR–08/05
Using the STK520 Top Module
Section 2
Using the STK520 Top Module
2.1Connecting the
STK520 to the
STK500 Starter
Kit
Figure 2-1. Connecting STK520 to the STK500 Board
Connect the STK520 to the STK500 expansion header 0 and 1. It is important that the
top module is connected in the correct orienta tion as show n in Figure 2-1 . The
EXPAND0 written on the STK520 top module should match the EXPAND0 written
beside the expansion header on the STK500 board.
Note:Connecting the STK520 with wrong orientation may damage the board.
2.1.1Placing an
AT90PWM3 on the
STK520
STK520 User Guide2-4
The STK520 contains both a ZIF socket for a SO32 package. Care should be taken so
that the device is moun ted with the corr ect ori entatio n. Figur e 2-2 sh ows the l ocation o f
pin1 for the ZIF socket.
7510A–AVR–08/05
Using the STK520 Top Module
Figure 2-2. Pin1 on ZIF Socket
PIN1
2.1.2Placing an
AT90PWM2 on the
STK520
Caution: Do not mount an AT90PWM3 on the STK520 at the same time as an AVR is
mounted on the STK500 board or at the same time as an AT90PWM2 is mounted on the
STK520 board. None of the devices might work as intended.
The STK520 contains both a ZIF socket for a SO24 package. Care should be taken so
that the device is moun ted with the corr ect ori entatio n. Figur e 2-2 sh ows the l ocation o f
pin1 for the ZIF socket.
Figure 2-3. Pin1 on ZIF Socket
PIN1
2-5STK520 User Guide
7510A–AVR–08/05
Using the STK520 Top Module
Caution: Do not mount an AT90PWM2 on the STK520 at the same time as an AVR is
mounted on the STK500 board or at the same time as an AT90PWM3 is mounted on the
STK520 board. None of the devices might work as intended.
STK520 User Guide2-6
7510A–AVR–08/05
Using the STK520 Top Module
2.2Programming the
AVR
2.2.1In-System
Programming
The AVR (AT90PWM2, AT90PWM3...) can be programmed using both SPI and Highvoltage Parallel Programming. This section will explain how to connect the programming
cables to successfully use one of these two modes. The AVR Studio STK500 software
is used in the same way as for other AVR parts
Note:The AT90PWM3 also support Self Programming, See AVR109 application note
for more information on this topic.
Figure 2-4. In-System Programming
To program the AT 90PWM3 us ing ISP Programm ing mode , connect t he 6-wire cable
between the ISP 6PIN connec tor on the STK500 boar d and the ISP connector o n the
STK520 board as shown in Figure 2-4. The device can be programmed using the Serial
Programming mode in the AVR Studio4 STK500 software.
Note:See STK500 User Guide for information on how to use the STK500 front-end
software for ISP Programming.
2-7STK520 User Guide
7510A–AVR–08/05
Using the STK520 Top Module
2.2.2High-voltage
Programming
Figure 2-5. High-voltage (Parallel) Programming
To program the AVR u sing High -voltag e (Parall el) Progr amming , connect the PROGCTRL to PORTD and PROGDATA to PORTB on the STK500 as shown in Figure 2-5.
Make sure that the TOSC-switch is placed in the XTAL position.
As described in the STK500 User Gu ide (jump er setti ngs), mount the BS EL2 jum per in
order to High-voltage Program the ATmega devices. This setting also applies to Highvoltage Programming of the AVR.
The device can now be programmed using the High-voltage Programming mode in AVR
Studio STK500 software.
Note:See the STK500 User Guide for information on how to use the STK500 front-
end software in High-voltage Programming mode.
Note:For the High-voltage Programming mode to function correctly, the target voltage
must be higher than 4.5V.
STK520 User Guide2-8
7510A–AVR–08/05
Using the STK520 Top Module
2.3JTAGICE mkII
Connector
See the following document :
“JTAGICE mkII Quick Sta rt Guide” wh ich purpos e is “Connec ting to a target bo ard with
the AVR JTAGICE mkII”.
This note explains whi ch signals are required for IS P and which si gna ls are r eq uir ed for
debugWIRE.
Figure 2-6 shows how to connect the JTAGICE mkII probe on the STK520 board.
Figure 2-6. Connecting JTAG ICE to the STK520
The ISP connector is used for the AT90PWM 3 built- in debu gWire int erfac e. The pin out
of the connector is shown in Table 2-1 and is compliant with the pin out of the JTAG ICE
available from Atmel . Connectin g a JTAG ICE to this connec tor allows On -chip Debu gging of the AT90PWM3.
More information about the JTAG ICE and On-chip Debugging can be found in the AVR
JTAG ICE User Guide, which is available at the Atmel web site, www.atmel.com.
2-9STK520 User Guide
7510A–AVR–08/05
Figure 2-7. JTAG Connector
Using the STK520 Top Module
Table 2-1. STK520 ISP Connector Pinout
Squid
Cable
Colours
greyMISO12VTGpurple
blackSCK34MOSIred
greenRESET56GNDbrown
Target
pinsSTK520 ISP pinout
Target
pins
Squid
Cable
Colours
STK520 User Guide2-10
7510A–AVR–08/05
Using the STK520 Top Module
2.4STK520
Jumpers, Leds &
Test Points
Table 2-2. STK520 Jumpers
JumperFunctionDescription
JP1XT1Connect STK500 XT1 circuit to AVR PE1
JP2XT2Connect STK500 XT2 circuit to AVR PE2
JP3RESETConnect STK500 RESET circuit to AVR PE0
JP4RXConnect RxD DALI to RxD Input of the AVR
JP5TXConnect TxD DALI to TxD Output of the AVR
JP6VTGUseful to measure the VCC and AVCC current
JP7ANA REFConnect STK500 REF circuit to AVR AREF
JP8D2AIsolate D2A outpu
JP9AMP0+Isolate AMP0+ input
JP10AMP0-Isolate AMP0- input
JP11AMP1+Isolate AMP1+ input
JP12AMP1-Isolate AMP1- input
JP13Potentiometer supply from Analog V Ref
JP14Potentiometer output to ADC0 input
Table 2-3. STK520 Leds
LedFunctionDescription
D3RXRX data detected by DALI Interface
D4TXTX data sent to DALI Interface
Table 2-4. STK520 Test Points
Test PointFunctionDescription
T1GNDElectrical ground of the STK520 board
T2GNDElectrical ground of the STK520 board
T3AREFAREF pin of the AVR
T4D2AD2A output of the A V R
T5DALIRectified DALI line
T6TxTX data sent to DALI Interface
T7RxRX data detected by DALI Interface
2-11STK520 User Guide
7510A–AVR–08/05
Using the STK520 Top Module
e
2.5DALI InterfaceSTK520 includes a non-isolated DALI Interface. The DALI Interface converts AVR RxD
and TxD pin level to DALI compatible electri cal level. It acts as a duplexer, so it inter faces the two RxD and TxD lines to one DALI line.
To use the DALI Interface, it is neces sary to mount T xD and RxD jumpers. W hen these
jumpers are removed, the AVR is not inflenced by the interface. The TxD and RxD AVR
pins are also available on STK500 PD3 and PD4 connectors.
Thanks to a diode bridge, the DALI connector is not polarized.
Figure 2-8. DALI
DALI Transmitter
DALI Receiver
Bridge
Rectifier
J3
DALI Lin
AVR
TxD
RxD
PD4 PD3
JP5
JP4
TX Led &
Test Point
RX Led &
Test Point
Figure 2-9. DALI Connector
STK520 User Guide2-12
7510A–AVR–08/05
Using the STK520 Top Module
2.6PotentiometerThe STK520 includes a potentiometer. To use the potentiom eter, please mo unt JP13
and JP14 jumper.
The potentiometer is supplied by AREF and it delivers a voltage to the AVR ADC0 input.
Figure 2-10. Potentiometerr
2.6.0.1XT1 JumperAs the jumper JP1 (XT1) is short circuited by Printed Circuit Board wire, it’s always ON.
So it’s not mounted. To open this jumper, it’s necessary to cut the wire between JP1 pin
(solder side).
It’s possible to open XT AL1 circui t which comes from STK500 board by removing the
XTAL1 jumper on the STK500 board.
2.6.0.2RESET JumperAs the jumper JP3 (R ESET ) is sh ort cir cuite d by Pri nted Circui t Board wire , it’s al ways
ON. So it’s not mounted. To open this jumper, it’s necessary to cut the wire between
JP3 pin (solder side).
It’s possible to open RESET circuit which comes from STK500 board by removing the
RESET jumper on the STK500 board.
2-13STK520 User Guide
7510A–AVR–08/05
Troubleshooting Guide
Table 3-1. Troubleshooting Guide
ProblemReasonSolution
ISP cable not connected.Connect the ISP cable according to
Figure 2-4.
Serial Programming
does not work
STK500 target voltage
error.
Please refer to the AT90PWM3
datasheet for the Serial
Programming Voltage limits. Adjust
the target voltage on the STK500
board accordingly.
Section 3
The RSTDISBL Fuse is
programmed.
Cables not connected
properly.
Parallel Programming
does not work.
Emulation does not
work.
Note:1. See the application note “AVR065: LCD Driver for the STK520 LCD” on how to con-
trol the LCD-display or the the application note “AVR064: STK520 – A Temperature
Monitoring System with LCD Output”.
STK500 target voltage
error.
ISP cable not connected.Connect the ISP cable according to
Conflict with STK500
Reset
DWEN fuse is not
programmed
The RSTDISBL Fuse is
programmed.
Use Parallel Programming to
unprogram the RSTDISBL Fuse.
Please refer to Figure 2-5 for
correct Parallel Programmi ng set up.
Please refer to the AT90PWM3 data
sheet for the Parallel Programming
Voltage limits. Adjust the target
voltage on the STK500 board
accordingly.
For Technical supp ort, pleas e cont act av r@atmel. co m. When requesti ng te chnica l support, please include the following information:
Which target AVR device is used (complete part number).
Target voltage and speed.
Clock source and fuse setting of the AVR.
Programming method (ISP or High-voltage).
Hardware revisions of the AVR tools, found on the PCB.
Version number of AVR Studio. This can be found in the AVR Studio help menu.
PC operating system and version/build.
PC processor type and speed.
A detailed description of the problem.
STK520 User Guide5-18
7510A–AVR–08/05
Section 6
Complete Schematics
On the following pages the co mplete sch ematics an d assembly dr awing of the ST K520
revision A are shown.
2325 Orchard Parkway
San Jose, CA 95131
TEL 1(408) 441-0311
FAX 1(408) 487-2600
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 Gol den P laza
77 Mody Road Tsimhatsui
East Kowloon
Hong Kong
TEL (852) 2721-9778
FAX (852) 2722-1369
Japan
9F, Tonetsu Shinkawa Bldg.
1-24-8 Shin kawa
Chuo-ku, Tokyo 104-0033
Japan
TEL (81) 3- 3523-3 551
FAX (81) 3-3523-7581
Memory
2325 Orchard Parkway
San Jose, CA 95131
TEL 1(408) 441-0311
FAX 1(408) 436-4314
Microcontrollers
2325 Orchard Parkway
San Jose, CA 95131
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-6 0
ASIC/ASSP/Smart Cards
Zone Industrielle
13106 Rousset Cedex, France
TEL (33) 4-42-53-60-00
FAX (33) 4- 42-53- 60-0 1
1150 East Cheyenne Mtn. Blvd.
Colorado Springs, CO 80906
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 Heilbro nn, Ge rmany
TEL (49) 71-31-67-0
FAX (49) 71-31-67-2340
1150 East Cheyenne Mtn. Blvd.
Colorado Springs, CO 80906
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-8 0
e-mail
literature@atmel.com
Web Site
http://www.atmel.com
Disclaimer: The information in this document is provided in connection w ith A tmel prod ucts. No license, express or im plied, by estoppel or otherwi se,to anyintel lectualproperty right is granted by this document or in connection with the sale of A tmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI-TIONS OF
SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIAB ILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORYWARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULARPURPOSE, 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 INFORMATION) ARISING OUTOF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes norepresentationsor warranties with respect to the accuracy or completeness of the contents of this document and reserves the ri ght to make
changes to specificationsand product descriptions at any time without notice. Atmel does not make any commitment to update the informati on contained herein.
Unless specifically provided otherwise, Atmel products are not suitable for, and sh all not be used in, automotive applications. Atmel’s products are not i ntended,
authorized, or warranted for useas components in applications intended to support or sustainlife.