STK520 .............................................................................................. User Guide Table of Contents Section 1 Introduction............................................................................................1-2 Section 2 Using the STK520 Top Module .............................................................2-4 2.1 Connecting the STK520 to the STK500 Starter Kit .................................. 2-4 2.1.1 Placing an AT90PWM3 on the STK520............................................. 2-4 2.1.2 Placing an AT90PWM2 on the STK520............................................. 2-5 2.2 Programming the AVR.............................................................................. 2-7 2.2.1 In-System Programming .................................................................... 2-7 2.2.2 High-voltage Programming ................................................................ 2-8 2.3 2.4 2.5 2.6 JTAGICE mkII Connector ......................................................................... 2-9 STK520 Jumpers, Leds & Test Points.................................................... 2-11 DALI Interface......................................................................................... 2-12 Potentiometer ......................................................................................... 2-13 Section 3 Troubleshooting Guide ........................................................................3-14 Section 4 Technical Specifications......................................................................4-16 Section 5 Technical Support ...............................................................................5-17 Section 6 Complete Schematics .........................................................................6-20 STK520 User Guide 3 7510A–AVR–08/05 Introduction Section 1 Introduction The STK520 board is a top module designed to add AT90PWM family support to the STK500 development board from Atmel Corporation. The STK520 includes connectors and hardware allowing full utilization of the new features of the AT90PWM, while the Zero Insertion Force (ZIF) socket allows easy to use of SO24 & SO32 packages for prototyping. This user guide acts as a general getting started guide as well as a complete technical 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 STK520 User Guide 1-2 7510A–AVR–08/05 Introduction 1.1 Features STK520 is a New Member of the Successful STK500 Starter Kit Family. Supports the AT90PWM2 & AT90PWM3. DALI Hardware Interface. Supported by AVR Studio® 4. 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. 1-3 7510A–AVR–08/05 STK520 User Guide Using the STK520 Top Module Section 2 Using the STK520 Top Module 2.1 Connecting the STK520 to the STK500 Starter Kit Connect the STK520 to the STK500 expansion header 0 and 1. It is important that the top module is connected in the correct orientation as shown 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. Figure 2-1. Connecting STK520 to the STK500 Board Note: 2.1.1 Placing an AT90PWM3 on the STK520 STK520 User Guide Connecting the STK520 with wrong orientation may damage the board. The STK520 contains both a ZIF socket for a SO32 package. Care should be taken so that the device is mounted with the correct orientation. Figure 2-2 shows the location of pin1 for the ZIF socket. 2-4 7510A–AVR–08/05 Using the STK520 Top Module Figure 2-2. Pin1 on ZIF Socket PIN1 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. 2.1.2 Placing an AT90PWM2 on the STK520 The STK520 contains both a ZIF socket for a SO24 package. Care should be taken so that the device is mounted with the correct orientation. Figure 2-2 shows the location of pin1 for the ZIF socket. Figure 2-3. Pin1 on ZIF Socket PIN1 2-5 7510A–AVR–08/05 STK520 User Guide 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 Guide 2-6 7510A–AVR–08/05 Using the STK520 Top Module 2.2 Programming the The AVR (AT90PWM2, AT90PWM3...) can be programmed using both SPI and Highvoltage Parallel Programming. This section will explain how to connect the programming AVR 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. 2.2.1 In-System Programming Figure 2-4. In-System Programming To program the AT90PWM3 using ISP Programming mode, connect the 6-wire cable between the ISP6PIN connector on the STK500 board and the ISP connector on 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-7 7510A–AVR–08/05 STK520 User Guide Using the STK520 Top Module 2.2.2 High-voltage Programming Figure 2-5. High-voltage (Parallel) Programming To program the AVR using High-voltage (Parallel) Programming, 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 Guide (jumper settings), mount the BSEL2 jumper 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 frontend 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 Guide 2-8 7510A–AVR–08/05 Using the STK520 Top Module 2.3 JTAGICE mkII Connector See the following document : “JTAGICE mkII Quick Start Guide” which purpose is “Connecting to a target board with the AVR JTAGICE mkII”. This note explains which signals are required for ISP and which signals are required 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 AT90PWM3 built-in debugWire interface. 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. Connecting a JTAG ICE to this connector allows On-chip Debugging 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-9 7510A–AVR–08/05 STK520 User Guide Using the STK520 Top Module Figure 2-7. JTAG Connector Table 2-1. STK520 ISP Connector Pinout STK520 User Guide Squid Cable Colours Target pins Target pins Squid Cable Colours grey MISO 1 2 VTG purple black SCK 3 4 MOSI red green RESET 5 6 GND brown STK520 ISP pinout 2-10 7510A–AVR–08/05 Using the STK520 Top Module 2.4 STK520 Jumpers, Leds & Table 2-2. STK520 Jumpers Test Points Jumper Function Description JP1 XT1 Connect STK500 XT1 circuit to AVR PE1 JP2 XT2 Connect STK500 XT2 circuit to AVR PE2 JP3 RESET Connect STK500 RESET circuit to AVR PE0 JP4 RX Connect RxD DALI to RxD Input of the AVR JP5 TX Connect TxD DALI to TxD Output of the AVR JP6 VTG Useful to measure the VCC and AVCC current JP7 ANA REF Connect STK500 REF circuit to AVR AREF JP8 D2A Isolate D2A outpu JP9 AMP0+ Isolate AMP0+ input JP10 AMP0- Isolate AMP0- input JP11 AMP1+ Isolate AMP1+ input JP12 AMP1- Isolate AMP1- input JP13 Potentiometer supply from Analog V Ref JP14 Potentiometer output to ADC0 input Table 2-3. STK520 Leds Led Function Description D3 RX RX data detected by DALI Interface D4 TX TX data sent to DALI Interface Table 2-4. STK520 Test Points 2-11 7510A–AVR–08/05 Test Point Function Description T1 GND Electrical ground of the STK520 board T2 GND Electrical ground of the STK520 board T3 AREF AREF pin of the AVR T4 D2A D2A output of the AVR T5 DALI Rectified DALI line T6 Tx TX data sent to DALI Interface T7 Rx RX data detected by DALI Interface STK520 User Guide Using the STK520 Top Module 2.5 DALI Interface STK520 includes a non-isolated DALI Interface. The DALI Interface converts AVR RxD and TxD pin level to DALI compatible electrical level. It acts as a duplexer, so it interfaces the two RxD and TxD lines to one DALI line. To use the DALI Interface, it is necessary to mount TxD and RxD jumpers. When 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 JP5 TX Led & Test Point DALI Transmitter TxD Bridge Rectifier AVR JP4 J3 DALI Line RX Led & Test Point RxD DALI Receiver PD4 PD3 Figure 2-9. DALI Connector STK520 User Guide 2-12 7510A–AVR–08/05 Using the STK520 Top Module 2.6 Potentiometer The STK520 includes a potentiometer. To use the potentiometer, please mount 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.1 XT1 Jumper As 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 XTAL1 circuit which comes from STK500 board by removing the XTAL1 jumper on the STK500 board. 2.6.0.2 RESET Jumper As the jumper JP3 (RESET) 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 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-13 7510A–AVR–08/05 STK520 User Guide Section 3 Troubleshooting Guide Table 3-1. Troubleshooting Guide Problem Serial Programming does not work Parallel Programming does not work. Emulation does not work. Note: STK520 User Guide Reason Solution ISP cable not connected. Connect the ISP cable according to Figure 2-4. 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. The RSTDISBL Fuse is programmed. Use Parallel Programming to unprogram the RSTDISBL Fuse. Cables not connected properly. Please refer to Figure 2-5 for correct Parallel Programming setup. STK500 target voltage error. Please refer to the AT90PWM3 data sheet for the Parallel Programming Voltage limits. Adjust the target voltage on the STK500 board accordingly. ISP cable not connected. Connect the ISP cable according to Figure 2-7. Conflict with STK500 Reset Remove Reset Jumper on STK500 Board DWEN fuse is not programmed Please set the DWEN bit using parallel programming The RSTDISBL Fuse is programmed. Use Parallel Programming to unprogram the RSTDISBL Fuse. 1. See the application note “AVR065: LCD Driver for the STK520 LCD” on how to control the LCD-display or the the application note “AVR064: STK520 – A Temperature Monitoring System with LCD Output”. 3-14 Rev. 7510A–AVR–08/05 Technical Specifications Section 4 Technical Specifications System Unit Physical Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 x 119 x 27 mm Weight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 g Operating Conditions Voltage Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1,8V - 5,5V Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0°C - 50°C DALI Interface Maximum DALI Voltage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25V Maximum Input DALI Current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 500mA STK520 User Guide 4-16 7510A–AVR–08/05 Technical Support Section 5 Technical Support For Technical support, please contact [email protected]. When requesting technical 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 Guide 5-18 7510A–AVR–08/05 Section 6 Complete Schematics On the following pages the complete schematics and assembly drawing of the STK520 revision A are shown. STK520 User Guide 6-18 Rev. 7510A–AVR–08/05 6-19 7510A–AVR–08/05 A B C D VTG PB7 PB5 PB3 PB1 PD7 PD5 PD3 PD1 XT1 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 5 RESET PC7 PC5 PC3 PC1 PE1 3 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 GND AUXI0 CT7 CT5 CT3 CT1 (n.c.) NRST PE1 GND VTG PC7 PC5 PC3 PC1 PA7 PA5 PA3 PA1 GND J2 PE0 PE2 GND AUXO0 CT6 CT4 CT2 BSEL2 REF PE2 PE0 GND VTG PC6 PC4 PC2 PC0 PA6 PA4 PA2 PA0 GND EXP. CON 0 PB6 PB2 PB4 PB0 PD4 PD6 PD2 PD0 XT2 VTG 2 2 EXP. CON 1 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 CP2 RESET 1 JP3 JP2 XT2 1 PE1 CON 2x20 GND AUXO1 DATA6 DATA4 DATA0 DATA9 SO CS XT2 VTG GND PB6 PB4 PB2 PB0 PD6 PD4 PD2 PD0 GND VTG CP1 2 3 CON 2x20 GND AUXI1 DATA7 DATA5 DATA3 DATA1 SI SCK XT1 VTG GND PB7 PB5 PB3 PB1 PD7 PD5 PD3 PD1 GND J1 JP1 XT1 1 4 4 PA0 is connected to PE2 for BSEL2 function. Note : JP1 and JP3 are not mounted C1 100nF 5 Date: Size A Title 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 PB[7..0] PC[7..0] PD[7..0] PE[2..0] 2 Wednesday, November 10, 2004 Document Number <Doc> 2K R1 Q1 BC847B STK520 MEZZANINE FOR STK500 PE2 PC6 PC4 PC2 PC0 REF PE2 PE0 C3 100nF 10K R2 Sheet POWER & EXPENSION CONNECTORS VTG 2 1 1 of PB[7..0] PC[7..0] PD[7..0] PE[2..0] AREFT 1 C2 1nF 4 Rev 1.6.0 A B C D Complete Schematics Figure 6-1. Schematics, 1 of 4 STK520 User Guide A B C D DALI J3 1 2 5 PE[2..0] PD[7..0] 2 3 R15 10K - 1 DALI INTERFACE 4 PD2 PD4 PE0 PD3 Q5 FMMT491A R10 10R MB2S + BR1 DALI TP T5 1 1 3 5 2 R5 2K2 VCC PDI GND 4 ISP CON CON 2x3 PDO SCK RESET J4 1K R13 10K R7 BAS16 D1 2 4 6 1 VTG R14 10K C6 100nF VTG + BC857B Q2 BC857B Q4 R8 10K C5 1nF 2 3 4 2 STK520 User Guide 3 5 3 3 1 10K R9 C4 10µF 10K R12 Date: Size A Title Q3 BC847B VTG R11 100K R6 10K VTG T6 Tx TP T7 1 1 JP5 JP4 RED D4 2 TxD DALI 2 VTG PD3 PD4 R4 1K5 R3 1K5 RxD DALI GREEN D3 2 Wednesday, November 10, 2004 Document Number <Doc> ISP, MONCOM, DALI Sheet STK520 MEZZANINE FOR STK500 Rx TP 2 2 1 of PD[7..0] 1 4 Rev 1.6.0 A B C D Complete Schematics Figure 6-2. Schematics, 2 of 4 6-20 7510A–AVR–08/05 6-21 7510A–AVR–08/05 A B C D PC[7..0] JP6 5 VTG 1 PE[2..0] VTG 5 2 T2 SOIC32 32 Pin Socket 3 PB7 PB6 PB5 PC7 PB4 PB3 PC6 AREF AGND AVCC PC5 PC4 PB2 PD7 PD6 PD5 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 1 1 Title 1 1 PC4 PC5 PC6 PC7 PB2 PB7 PB6 PB5 PB3 PB4 AREFT PD7 PD6 PD5 4 GND TP Date: Size A 2 Wednesday, November 10, 2004 Document Number <Doc> MICROCONTROLLER 32 PIN SOCKET Sheet STK520 MEZZANINE FOR STK500 2 JP12AMP1- 2 JP11AMP1+ 2 JP10AMP0- 2 AMP0+ 2 D2A JP9 JP8 PB4_SO PB3_SO 1 2 T1 3 1 of GND TP 1 PB[7..0] PB0 PB1 PD0 PC0 PE0 PD1 PD2 PD3 PC1 VCC GND PC2 PC3 PB0 PB1 PE1 PE2 PD4 U101 VTG_SO AREF_SO AVTG D2A TP T4 JP7 ANA REF 1 2 PC[7..0] PD4 PD1 PD2 PD3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 100nF C10 C7 10nF AREFTP T3 PD[7..0] PC2 PC3 PC1 PC0 PD0 100nF C11 BLM-21A102S AVTG 3 PE[2..0] PE1 PE2 PE0 C8 100nF L1 4 4 Rev 1.6.0 PB[7..0] PD[7..0] A B C D Complete Schematics Figure 6-3. Schematics, 3 of 4 STK520 User Guide A B C PE[2..0] 5 2 1 STK520 User Guide PE[2..0] P1 100K JP13 PE1 PE2 PE0 2 1 D AREF_SO 5 JP14 PD4 PD1 PD2 PD3 PD0 VTG_SO 4 4 PB0 PB1 100nF C14 1 2 3 4 5 6 7 8 9 10 11 12 SOIC24 24 Pin Socket PD0 PE0 PD1 PD2 PD3 VCC GND PB0 PB1 PE1 PE2 PD4 U102 AVTG 3 PB7 PB6 PB5 PB4 PB3 AREF AGND AVCC PB2 PD7 PD6 PD5 24 23 22 21 20 19 18 17 16 15 14 13 C12 100nF 100nF C13 3 Date: Size A Title PB4_SO PB3_SO PB2 PB7 PB6 PB5 PD7 PD6 PD5 2 Wednesday, November 10, 2004 Document Number <Doc> MICROCONTROLLER 24 PIN SOCKET Sheet STK520 MEZZANINE FOR STK500 2 4 1 PB[7..0] PD[7..0] 1 of 4 Rev 1.6.0 PB[7..0] PD[7..0] A B C D Complete Schematics Figure 6-4. Schematics, 4 of 4 6-22 7510A–AVR–08/05 Complete Schematics Figure 6-5. Assembly Drawing, 1 of 1 JUMPER 6-23 7510A–AVR–08/05 STK520 User Guide Atmel Headquarters Atmel Operations Corporate Headquarters Memory 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 Golden Plaza 77 Mody Road Tsimhatsui 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 2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 441-0311 FAX 1(408) 436-4314 RF/Automotive Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany TEL (49) 71-31-67-0 FAX (49) 71-31-67-2340 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-60 ASIC/ASSP/Smart Cards 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-80 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 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 e-mail [email protected] Web Site http://www.atmel.com Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise,to anyintellectualproperty 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 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 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 2005. All rights reserved. Atmel ®, logo and combinations thereof, are registered trademarks, and Everywhere You Are SM are the trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. Printed on recycled paper. 7510A–AVR–08/05 /0M