Home
STK200 Starter Kit User Guide, February 1999
Contents
1. ii 9 4 A AIMEL Table of Contents 9 6 Using LCD Connections enne nnne 9 5 97 Using RS232 5 cella se e te i aed 9 5 Section 10 In System Programming ista ica 10 1 10 1 ISP Lead Layout ii 10 1 10 2 ISP Header Layout 10 2 10 3 Interface Using Resistors nen 10 2 10 4 Using an Analog Multiplexer IC 10 2 Section 11 TOchnical SUPDOM na caio rex o ce ati 11 1 14 1 Contacting Atrmiel rid imr t ed e PT paia 11 1 Section 12 Appendix Il Warranty Statement ssssseeeeeeeerrerrrrrrrrrrnnnee 12 1 Table of Contents AIMEL AIMEL e Section 1 Introduction Welcome to the STK200 Flash MCU Starter Kit This system incorporates a sophisticated applications board Atmel AVR ISP software and an ISP dongle that will program any Atmel AVR microcontroller For up to the minute information on this product and any user guide errata please read the AVR_ISR_REL TEX file included with the software or on the Atmel web site 1 1 Device Support The system software currently has support for the following Atmel devices AVR Devices m AT90S1200 m AT90S2313 m AT90S LS2323 m AT90S LS2343 m AT9084414 m AT90S LS4434 m AT90S8515 m AT90S LS8535 Software upgrades for the AVR ISP software is posted to the AVR section of the Atmel website which is located at http www atmel com STK200 Starter Kit User Guide 1 1 Introduction 1 2 AIMEL STK200 Start
2. Device Programming Before programming a device using the programming module the device must be inserted correctly into the programming unit The AVR device has an arrow printed on it which points towards pin 1 of the device Below are the four socket types and their ori entation 8 Pin Devices 20 Pin Devices 28 Pin Devices 40 Pin Devices 8 Pin Device D EHHEBHEEHHEH 20 Pin Device WEEN je ron ene pen PIN 1 Another method of checking to see if it is inserted correctly is to check the notches on both the device and the programming socket At the end of the device you will notice a notch cut out There is a notch cut out on the device socket which is also printed on the board The notch on the device must correspond with the notch in the socket The orientation of the device is vitally important If you put it in the wrong way then you may damage the device Do not plug a device in with the power switched on or you may damage it Similarly never remove the device with the power on 7 1 Device Programming 7 2 7 3 7 4 7 2 Voltage Selection Power and Lead Connections Programming 8 Pin Parts 40 pin A D parts have different pinouts from the digital only 40 pin parts Make sure you have inserted your device in the correct 40 pin socket on the board The board has A D and Digital written inside the sockets Note Do not i
3. 1 Connecting the Hardware 3 2 AIMEL STK200 Starter Kit User Guide AMEL Section 4 Hardware Description The main features of the board are shown in the following diagram 28 PIN A D PARTS FUTURE LCD CONNECTOR LCD CONTRAST ANALOG REFERENCE 40 PIN ADJUSTMENT VOLTAGE ADJUSTMENT A D PARTS ADDRESS LATCH SOCKET En dea Ga 1 S564 Vi LK1 CUT FOR A D EXTERNAL REFERENCE EXTERNAL d SRAM SOCKET ETT POWER ON LIGHT ANALOG I P 8 PIN SOCKET PORT A DIGITAL SOCKET FOR 40 PIN DIGITAL PARTS CLOCK SELECT FOR 8 PIN SOCKET ISP INTERFACE PORT B ALL PARTS 20 PIN SOCKET 4 MHZ CRYSTAL PORT C ALL PARTS EXCEPT 28 PIN JP3 JUMPER FOR RXD ENABLE PORT D JUMPERS E DISABLE SWITCHES RS232 a Adm EE PORTD ALL PARTS i ni LA e EXCEPT 8 PIN PORT B JUMPERS DISABLE LEDS dg didi E d MISC HEADER NIRO y S FOR NON PORT PINS JP2 JUMPER FOR BROWN OUT 7 AT 3 3V OR 5V ON OFF SWITCH 8 SWITCHES ON PORT D JP1 JUMPER FOR 3 8 OR 5V VCC SELECT 8 LEDS ON PORT B Note There are a number of jumpers on the board which are used to select different operations and voltages The default jumper settings are for programming oper ations at 5V To carry out other operations some jumpers may have to be removed refer to the relevant section for details A full list of the jumpers and links are given in Jumpers and Links and their Functions
4. 6 21 Head Device couronne Up D e e usalo 6 5 6 22 Read EERROM edd di 6 6 6 23 Program Lockbits AA 6 6 6 24 Erase Device need aa 6 6 6 25 Health Geeks eege nen eue Ca e alga 6 6 6 26 Printer POLL ier eere ti n 6 6 6 27 Font Selection z ui de det eto e er t Pee eet Eng 6 7 6 28 Advanced Options nnne nennen nnne 6 7 6 29 eer EE 6 7 6 30 Device Checkeum nn 6 7 6 31 Select Gol il sa 6 7 Section 7 Device Programming alal oa 7 1 7 1 Device Orientation i 7 1 4 2 Moltage Selection iet ede Ee EES Ped ent Es 7 2 7 3 Power and Lead Connections nn 7 2 7 4 Programming 8 Pin Parts 7 2 Section 8 Brown Out Detector nennen nnne 8 1 Section 9 Board Applications ia een 9 1 9 1 Using Switches and LEDS nennen 9 1 9 1 1 Using 8 Pin Devices with LEDS eee 9 1 9 2 Configuring Switches and LEDS i 9 1 9 3 Using External Connections ii 9 1 9 3 4 20 Pin and 40 Pin Digital Sockets ii 9 2 9 3 2 40 Pin A D Socket iii 9 2 933 A Ree 9 2 9 3 4_ 8 Pin Socket viiura Ree een 9 3 H Sch MISC Header oit te e eerte 9 3 9 3 6 All Socket cios tetas Laine 9 3 9 4 Using Analog Parts AA 9 3 9 4 1 Using Internal Reference 9 4 9 4 2 Using External Reference 9 4 9 5 Using External RAM i iro on ios 9 4 9 5 1 RAM Recommendations essen 9 4 9 5 2 Address Laich
5. Cheyenne Min Blvd San Jose CA 95131 Colorado Springs CO 80906 TEL 408 441 0311 TEL 719 576 3300 FAX 408 487 2600 FAX 719 540 1759 Europe Atmel Rousset Atmel U K Ltd Zone Industrielle Coliseum Business Centre 13106 Rousset Cedex France Riverside Way TEL 33 4 42 53 60 00 Camberley Surrey GU15 3YL FAX 33 4 42 53 60 01 England TEL 44 1276 686677 FAX 44 1276 686697 Asia Atmel Asia Ltd Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong TEL 852 27219778 FAX 852 27221369 Japan Atmel Japan K K Tonetsu Shinkawa Bldg 9F 1 24 8 Shinkawa Chuo ku Tokyo 104 0033 Japan TEL 81 3 3523 3551 FAX 81 3 3523 7581 Fax on Demand North America 1 800 292 8635 International 1 408 441 0732 e mail literature atmel com Web Site http www atmel com BBS 1 408 436 4309 O Atmel Corporation 1999 Atmel Corporation makes no warranty for the use of its products other than those expressly contained in the Company s standard war ranty which is detailed in Atmel s Terms and Conditions located on the Company s web site The Company assumes no responsibility for any errors which may appear in this document reserves the right to change devices or specifications detailed herein at any time without notice and does not make any commitment to update the information contained herein No licenses to patents or other intellectual prop erty of Atmel are granted by the Company i
6. EEPROM command depending on which buffer is on top of the desktop Verify device is a programming function It is available on the Program menu or on the Above button on the speed bar This verifies each location in the program memory buffer window with the appropriate location in the device Note This function will only verify the Program Memory In devices which also have EEPROM Memory available you must use the Verify EEPROM command The Speed button will either verify the program or EEPROM memory depending on which buffer is currently selected Program EEPROM is a programming function It is available on the Program menu or on the Above button on the speed bar The speed button will program the current buffer into the appropriate memory space in the device depending on which window is currently focused This programs and verifies each location in the EEPROM memory buffer window into the appropriate location in the device Note As the EEPROM features an auto erase function it does not require a chip erase to be performed prior to programming A chip erase is only required if the lock bits are set The Speed button will either program the code or EEPROM memory depending on which buffer is currently selected Verify EEPROM is a programming function It is available on the Program menu or on the Above button on the speed bar This verifies each location in the EEPROM buf
7. are on pins PDO and PD1 It is recommended that these switches are disconnected by removing the AIMEL si Board Applications 9 6 jumpers labeled Port D JP2 is the Brown Out voltage jumper ensure that this is set to 3 3 or 5 Volts as required O mm JP3 5 MAX202 Se Port D Switches As this board has a 4 MHz crystal the percentage error on the Baud Rate will be between 0 2 and 7 8 Replacing the crystal with a 3 6846 MHz or 4 608 MHz crystal will reduce this error to zero but may have EMC implications A standard straight through lead is required not a null modem cable AIMEL STK200 Starter Kit User Guide AIMEL e Section 10 In System Programming Devices can be programmed in your circuit rather than on the board using the STK200 ISP dongle that was included in the kit The dongle works with a 0 1 pitch header that is mounted on your application board You will need to use either a multiplexer chip such as a 4053 or wire directly to the pins of the device The pins on the device are connected as follows AVR Device 2323 8535 MEGA603 1200 2313 2343 4414 8515 4434 MEGA103 Pin Reset Pint Pint Pint Pin9 Pin9 Pin9 Pin20 MOSI PB5 PB5 PBO PB5 PB5 PB5 PEO PDI Pin17 Pin17 Pin5 Pin6 Pin6 Pin6 Pin2 MISO PB6 PB6 PB1 PB6 PB6 PB6 PE1 PDO Pin18 Pin18 Pin6 Pin7 Pin7 Pin7 Pin3 SCK PB7 PB7 PB2 PB7 PB7 PB7 PB1 Pin19 Pin19 Pin7 Pin8 Pin8 Pin8 Pin11 In add
8. current option that you have selected Please note that the toolbar icons referred to in the text have ToolTip s If you want to know the function of any particular button hold your mouse pointer over the button in question and its function will be displayed Starting a Project In System Programming ISP Hardware Requirements Projects n n n n m Data Files n Editing Data If you have used a high end professional development system you will be familiar with the project concept Essentially this is a collection of information which is managed by the program on your behalf In the AVR you have both Program Memory and non vola tile Data Memory EEPROM and you have various security and device options The project manager keeps this information together for you so you do not have to remem ber and reload all of the files every time you use the programmer It will also allow you to store information such as the project name and the project iden tifier Also included is a small notepad to store comments about the project Before you can start a programming session you must either open an existing project or start a new project You can open a project or create a new one by either going to the Project menu and selecting New or Open or by using the New Project or Open Project buttons on the toolbar Once a project is open you can load the files that you want to program into the device Files may be loaded by
9. repaired or replaced under this warranty to Buyer transpor tation prepaid and reimburse Buyer for the transportation charges paid by Buyer for such goods The performance of this warranty does not extend the warranty period for any goods beyond that period applicable to the goods originally delivered THE FOREGOING WARRANTY CONSTITUTES ATMEL S EXCLUSIVE LIABILITY AND THE EXCLUSIVE REMEDY OF BUYER FOR ANY BREACH OF ANY WAR RANTY OR OTHER NONCONFORMITY OF THE GOODS COVERED BY THIS AGREEMENT THIS WARRANTY IS EXCLUSIVE AND IN LIEU OF ALL OTHER WARRANTIES ATMEL MAKES NO OTHER WARRANTIES EXPRESS IMPLIED OR STATUTORY INCLUDING WITHOUT LIMITATION ANY WARRANTIES OF MER CHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE THE SOLE AND EXCLUSIVE REMEDY FOR ANY BREACH OF THIS WARRANTY SHALL BE AS EXPRESSLY PROVIDED HEREIN Limitation on Liability Notwithstanding anything to the contrary contained herein Atmel shall not under any circumstances be liable to Buyer or any third parties for consequential incidental indi rect exemplary special or other damages Atmel s total liability shall not exceed the total amount paid by Buyer to Atmel hereunder Atmel shall not under any circum stances be liable for excess costs of reprocurement 12 1 Appendix Il Warranty Statement 12 2 AIMEL STK200 Starter Kit User Guide AMEL T E Atmel Headquarters Atmel Operations Corporate Headquarters Atmel Colorado Springs 2325 Orchard Parkway 1150 E
10. the Program or EEPROM data windows With a new project the data windows called buffers will contain FF in every location This is also what a new or erased device will contain You can move around in the current window by using the cursor keys In order to see memory further down the window use the Page Up and Page Down keys on the key board You may change the data at any memory location by clicking on that location and typing in the required hex values Any changes you make will be reflected by the data changing to green text The ASCII character of the hex value will be shown alongside the data window If you wish to edit the buffer in ASCII either click on the right area of the window or press Ctrl A Once you have entered the required data then you can save the contents of the current window by using either the Save icon on the toolbar or by pressing F2 on the key board or by choosing the Save function in the File menu Read the section on Device Programming on page 7 1 or In System Programming on page 10 1 before programming parts Before you can start programming a device you must have a project open on the desk top The easiest and quickest method of programming a device is to use the Auto Program option which is available in either the Program menu or by using the Auto Program icon on the toolbar If you use this option then you will be presented with a series
11. STK200 Starter Kit User Guide February 1999 AMEL Table of Contents Section 1 Introduction eek 1 1 143 Device Suppott d RR en ee N an Aasi 1 1 Section 2 E ist D 2 1 2 1 Unpacking the System 2 1 2 2 System Requirements iii 2 1 Section 3 Connecting the Hardware nn 3 1 Section 4 Hardware Description enne 4 1 4 1 Jumpers and Links and their Functions i 4 2 4 2 External Connections iii 4 2 Section 5 Installing the Software ipn RO ers 5 1 x MEER ile us o E DTE 5 1 5 2 Windows 3 1 iet a 5 1 Section 6 How to use the Software ne 6 1 6 1 Projects ira LEGALE et RA 6 1 BR EE 6 1 6 3 Editing Data nine ib mere 6 2 6 4 gt Programming eu enel E lernen a 6 2 6 5 JAuto ProQgrat uiuit nectit Aaa 6 2 6 6 New Project nennen nee ln an des 6 3 6 7 Open Project 6 3 6 8 Save Project cse eil 6 3 6 9 Load H aient atte titi aio 6 3 6 10 Save GIE 6 3 6 11 NIE enee Ae oie eth eee anita hose 6 4 6 12 Clear Buffer nennen nnne nennt nnns rennen 6 4 6 13 Fill BUC en es engen ee 6 4 614 5 Te To x ne ehem er adt ae e edt b epe dt t ies 6 4 6 15 Gu EHE E REIR TREE 6 4 6 16 Device Empty Check 6 4 AIMEL Table of Contents 6 17 Program Device ae nn 6 4 6 18 Verify RIIT 6 5 6 19 Program EEPROM i 6 5 6 20 Verify EEPROM u acie ted nia ee AR eg 6 5
12. able further writing to the device However you will be able to re use the device if you perform an erase Erase Device is a programming function It is available on the Program menu or on the Above button on the speed bar This will erase all data from the Program Memory and EEPROM Memory if available on the device It is advisable to always erase a device before programming Warning Erasing a device will clear all data from the device permanently Health Check is a programming function This unique function will check the device to see if it has any defects which may prevent it from programming correctly For example you can use it to test an old device to see if it still works This function also has an associated button on the toolbar Note that this function will erase any data that is currently on the device It will report a Pass or Failure This allows you to set which printer port the programmer is currently connected to Simply select the appropriate printer port and press the Change button To cancel any changes you have made press the Cancel button A MEL STK200 Starter Kit User Guide 6 27 6 28 6 29 6 30 6 31 STK200 Starter Kit User Guide Font Selection Advanced Options Edit as ASCII Device Checksum Select Colors How to use the Software This allows you to set a different font for the Buffer Windows You may wish to do this if the default font is too small or unclear The d
13. age register out DDRB r16 PORTB LED s is all outputs ldi r16 00 load immediate into temp storage register out PORTB r16 switch all the LEDs on out DDRD r16 set direction register to zeros for input All the ports are brought out to headers on the edge of the board but there are differ ences for different sockets which are described separately Port B has current limit resistors for programming on Pin 7 Pin 6 and Pin 5 MOSI MISO and SCK These port pins will only supply a reduced current if used as outputs 300 micro Amps 3 3V and 500 micro Amps Q 5V As inputs they will behave normally Therefore any user circuit should use Port B for inputs 9 1 Board Applications 9 3 1 9 3 2 9 3 3 9 2 20 Pin and 40 Pin Digital Sockets 40 Pin A D Socket 28 Pin Socket m 28 pin socket Analog parts This is connected differently and is described separately below m 40 pin socket A D Parts Port A is connected to header marked Analog not the header labeled Port A Port B Port C and Port D are the same as the 40 pin digital socket m 40 pin socket Digital Parts This is connected to headers marked Port A Port B Port C and Port D m 20 pin socket Port B and Port D are connected to headers marked Port B and Port D m 8 pin socket This is connected to Port B with a slightly different layout and is described separately below In addition to the port pins each header has a
14. connection for ground and Ve to supply external circuits This voltage Voc will be either 3 3V or 5V depending on the setting of jumper 1 JP1 and the brown out detector will operate as normal see Brown Out Detec tor on page 8 1 Note f your circuit is to draw significant current gt 250 mA then a heat sink will be required on the on board regulator LM317 This device is rated at 1 5 Amps but it needs a heat sink to supply this current If your circuit will draw more than 1 Amp you may need a separate power supply The ports on the 40 pin digital socket are connected to the headers marked Port A Port B Port C and Port D The 20 pin socket is connected to the headers marked Port B and Port D The layout of all the headers is the same and is shown in the fol lowing diagram CUT CORNER SHOWN ON BOARD FOR ORIENTATION BIT 0 OF PORT SAME FOR ALL PORTS BIT 7 OF PORT SAME FOR ALL PORTS EXTRA CONNECTION FOR GROUND EXTRA CONNECTION FOR Vcc The layout shown above applies to Port B Port C and Port D on these parts Port A is the Analog input port on these devices and is connected to the header marked Analog NOT Port A The layout of this header and how to use the A D functions is described in the section Using Analog Parts on page 9 3 This socket is also for A D parts There are three ports on this device Port B Port C and Port D Port C is the Analog input port and it is connected to the header
15. d Program or EEPROM on top of the desktop when you choose Load File in the File menu or click on the Load File button as the file will be loaded into the currently open buffer The file loader currently has support for loading the following file types m Binary m intel Hex m Motorola S Record m Atmel Generic The file type is automatically selected and requires no user intervention This allows you to save a data file without saving the whole project You must have the appropriate buffer selected when you select Save File or Save File As as the file in the selected buffer will be saved The Save File option currently has support for saving the data in the following file types AIMEL 6 3 How to use the Software 6 11 6 12 6 13 6 14 6 15 6 16 6 17 6 4 Exit Clear Buffer Fill Buffer Goto Find Device Empty Check Program Device m Binary m Intel Hex m Atmel Generic To select the file type you want select the file type from the Save File as Type pull down box below the File Name list in the Save File dialogue box This will make the application close down If you have recently made any changes to a project you will be prompted to save your project You can exit the program by using the speed button clicking the Close icon on the pro gram window X or choosing Project Exit It is available on the Buffer menu This will cause the current
16. e Devices It has no real use with the Atmel Flash Range but provides a quick and easy way to check if a device is blank Program Device is a programming function It is available on the Program menu or on the Above button on the speed bar On the speed bar it will program the current buffer into the appropriate memory space in the device Code or EEPROM data depending on which window is currently Focused A MEL STK200 Starter Kit User Guide 6 18 Verify Device 6 19 Program EEPROM 6 20 Verify EEPROM 6 21 Read Device STK200 Starter Kit User Guide How to use the Software This option programs and verifies each location from the selected buffer window into the appropriate location in the device Note Itis advisable to erase the device before programming unless you are adding extra data to existing data in the device If you are changing data then you cannot change any programmed bit from a 0 to a 1 without erasing the device first You can however change a bit from a 1 to a 0 For example BB could be changed to AA but AA cannot be changed to BB You will not be able to program the device if the write lockbit has been set If this function is selected from the Program menu it will only program the Pro gram Memory In devices which also have EEPROM Memory available you must use the Program EEPROM command The Program Device speed button will carry out either the Program Memory or Pro gram
17. e Product delivered hereunder shall conform to the applicable Atmel Data Sheet or mutually agreed upon specifications and shall be free from defects in material and workmanship under normal use and service for a period of 30 days from the applicable date of invoice Products which are samples design verification units and or prototypes are sold AS IS WITH ALL FAULTS and without a warranty If during such warranty period i Atmel is notified promptly in writing upon discovery of any defect in the goods including a detailed description of such defect ii such goods are returned to Atmel DDP Atmel s facility accompanied by Atmel s Returned Material Authorization form and iii Atmel s examination of such goods discloses to Atmel s sat isfaction that such goods are defective and such defects are not caused by accident abuse misuse neglect alteration improper installation repair improper testing or use contrary to any instructions issued by Atmel Atmel shall at its sole option either repair replace or credit Buyer the purchase price of such goods No goods may be returned to Atmel without Atmel s Returned Material Authorization form Prior to any return of goods by Buyer pursuant to this Section Buyer shall afford Atmel the opportunity to inspect such goods at Buyer s location and any such goods so inspected shall not be returned to Atmel without its prior written consent Atmel shall return any goods
18. e devices if the device is set to run on internal clock The internal clock is set by programming a fuse but this may not be set on new parts so a jumper is supplied to enable the device to be programmed with external clock We recommend that the jumper labeled Clock Sel is set to EXT when programming new parts The fuse setting can then be read and set to internal clock if the port pins are required and the jumper setting can then be changed to INT for internal clock opera tion Note If the internal clock fuse is set the internal clock will operate even if an external clock is supplied If difficulties are found in programming these parts remove the jumper set labeled Port B Bits O to 2 are the programming lines A MEL STK200 Starter Kit User Guide AIMEL STK200 Starter Kit User Guide Section 8 Brown Out Detector The brown out detector circuit is used to detect voltage drops If a short glitch occurs in the power this circuit ensures that the processor resets properly rather than operating randomly The brown out detector must be set to the same voltage as the circuit voltage Voc 3 3V or 5V For 3 3V operation jumper JP2 must be removed jumper open and for 5V operation it must be closed Voltage Operating Voltage Hysteresis 5 Volts 4 5 Volts 200 mV 3 3 Volts 2 9 Volts 200 mV These values are approximate and may vary with temperature and other factors If the brown out de
19. efault font is Terminal size 10 which is set for 14 inch monitors The default font is probably too small for larger monitors As a rule of thumb Terminal font is usually best for displaying the full ASCII character set as it has all the characters below 20 You will find other fonts will fill these charac ters with a circumflexed Y or another similar character This allows you to override Signature Byte Checking This is useful if you use a lot of pre production devices which may not have signature information included or you are using an unsupported device which has the same pro gramming algorithm Use with care This option allows you to change the editing mode from Hex to ASCII and back This is useful if a mouse or pointing device is not available Reads device and calculates the check sum It does not load the buffer with the device contents This allows you to change the color of the text in the buffer windows The 5 text modes and their default colors are Text Mode Default Color Blank Black Load Data Blue Edited Data Blue Verified Data Green Program Verify failure Red The default colors can be changed selecting the data type you wish to change in the Data Type list and clicking on the Change Color button AIMEL 6 7 How to use the Software 6 8 AIMEL STK200 Starter Kit User Guide AIMEL 7 1 Device Orientation STK200 Starter Kit User Guide Section 7
20. either using the Load command in the File menu or by using the Open icon on the toolbar The program will automatically decode your files whether they are in Intel Hex format Atmel Generic Binary or Motorola S record The file you choose will be loaded into the window then will be displayed on the top of the desktop If you have the EEPROM Data Memory window on top then it will load the data into that window 6 1 How to use the Software 6 3 6 4 6 5 6 2 Editing Data Programming Auto Program Note that the AVR Assembler which accompanies this program will produce the correct files for you ready to load into the buffers You can save the buffer in Binary Intel Hex or Atmel Generic formats so you can use the buffer for code conversion Similarly it will load the data into the Program Memory if that is the window that is on top The program will not allow you to load data if the project manager window is on top To change which window is on top you can either click your mouse on any part of the window that is showing go to the Window menu using Alt W or the mouse and select the window of your choice or press Ctrl F6 Note that the loaded data will show up in blue text where the default empty text color is black Once your data files are loaded you can start your programming session Once a project has been started you can either load a data file or you can insert your own data in Hex or ASCII directly into
21. er Kit User Guide AIMEL e 2 1 Unpacking the System 2 2 System Requirements STK200 Starter Kit User Guide Section 2 Getting Started Contents of box m Evaluation Board m Disk set including Atmel AVR ISP software m In System Programming ISP Dongle m ISP Ribbon Cable m AT90S8515 8PC Microcontroller The minimum hardware and software requirements are m 80386 Processor 486 Recommended m 1MB Ram m 1MB Free Hard Disk Space m Windows 3 1 or Windows 95 2 1 Getting Started 2 2 AIMEL STK200 Starter Kit User Guide AIMEL Section 3 Connecting the Hardware PRECARIA PLUG HEADER ON LEAD INTO PROGRAMMING SUPPLIED TO DONGLE INTERFACE KEY WAY AND INSERT IN GIVES ORIENTATION PC PRINTER PORT POWER SUPPLY 9 15V DC ST m ON OFF SWITCH ral RS232 Programming On Off Power Connector Interface Switch Connector Port Headers CoC L1 0 2 002 2 A power supply is required with a standard 2 1mm barrel connector It can be AC 7 12V or DC 9 15V The connector is inserted into the power connection socket as shown above The programming lead supplied is fitted into the Dongle case and the other end is inserted into the programming interface on the board as shown The Dongle case is connected to one of the printer ports on the PC If this is not LPT1 then you will need to change the printer port setting in the software see software sec tion for details STK200 Starter Kit User Guide 3
22. fer window with the appropriate location in the device The EEPROM buffer must be selected on top if the speed button is used Read Device is a programming function AIMEL 6 5 How to use the Software 6 22 6 23 6 24 6 25 6 26 6 6 Read EEPROM Program Lockbits Erase Device Health Check Printer Port It is available on the Program menu or on the Above button on the speed bar This will read each location in the device into the appropriate location in the program memory buffer window Note This will overwrite any existing data in the buffer but will not read EEPROM Memory unless the speed button is used with the EEPROM data window selected Read EEPROM is a programming function It is available on the Program menu or on the Above button on the speed bar This will read each EEPROM location in the device into the appropriate location in the EEPROM memory buffer window Note This will overwrite any existing data in the EEPROM memory buffer window If the speed button is used the EEPROM data window must be on top of the desktop Program Lockbits is a programming function It is available on the Program menu or on the Above button on the speed bar It will program the security lock bits according to the setting you have selected in the Project Manager Warning Setting Lockbits may mean that you will be unable to perform further verifica tion on the device and dis
23. ition the system 5 Volts and Ground need to be connected to the programming lead Do not exceed 5 volts or you may damage your computer 4 75 to 5 25 volts is allowed This warning applies to any ISP system 10 1 ISP Lead Layout Vcc A MISO mos SCK RST Note This is a face view of the ISP lead Section 10 2 shows connector on user cir cuit STK200 Starter Kit User Guide 10 1 In System Programming 10 2 ISP Header Layout wi Ground D LED i 470R b Cay N OPTIONAL PROGRAM I SCH INDICATOR CIRCUIT Note This is a view of the header needed on user circuit not a face view of ISP lead 10 3 Interface Using Resistors MISO SCK MOSI PB7 PB7 PB6 Uy PB6 PB5 1 PBS Reset RST AVR Typical resistor values would be 1K This circuit is fine if ports PB7 PB6 and PB5 are used as inputs in your circuit If outputs are needed especially higher than a few milli amps then the multiplexed circuit is preferable 10 4 Using an Analog Multiplexer IC RST ni i PB7 AXY AX SCK To ISP PB6 BXY Bx MISO connector PBS Cox cx MOSI Reset A AY PB7 To User I PB6 Circuit AVR B BY C CY PBS INH DV The multiplexer select can be driven from the LED connection on the programming lead as can a low power LED with its cathode connected to the LED connection via a suitable resis
24. ly selected buffer to be cleared i e filled with FF s Any data currently in the buffer will be lost Only the selected buffer will be cleared It is available on the Buffer menu A small dialogue box appears where you can select the start address Fill From the end address Fill To and the value to insert Fill With The new value is inserted in all the selected addresses and is shown as green text It is available on the Buffer menu This will cause the cursor to move to the location in the buffer specified If the selected value is larger than the buffer size you are informed Note The buffer size changes depending on the device selected It is available on the Buffer menu Find is used to search for a hex value in the buffer Simply enter the hex value you wish to find in the small dialogue box and hit the Find First button If the value is found the cursor will move to that location and you will also notice that the Find First button has now changed to Find Next You can use this to repeat your search and find the next occurrence Click the mouse on Done or use Tab and Enter keys to close the Find dialogue box Device Empty Check is a programming function that is available on the Program menu This checks to see that the device is blank i e all locations contain FF Note This function is only really useful when working with One Time Programmable OTP Devices or UV Erasabl
25. marked Analog NOT Port C See the section on Using Analog Parts on page 9 3 for details Port D is connected as normal see diagram above A MEL STK200 Starter Kit User Guide 9 3 4 9 3 5 9 3 6 9 4 Board Applications Port B only has six bits PBO PB5 but these are connected to bits 2 to 7 on the header to match the functionality of the other devices This is shown in the diagram below CUT CORNER SHOWN ON BOARD FOR ORIENTATION T BIT 0 OF PORT 1ST TWO PINS NOT CONNECTED EXTRA CONNECTION FOR Vcc EXTRA CONNECTION FOR GROUND 8 Pin Socket The 8 Pin socket has five Port bits connected PBO PB4 These are connected to the header marked Port B but they are not connected to the headers in the same way as the other sockets The connections for this socket on the Port B header are shown below CUT OUT MARKED ON BOARD FOR ORIENTATION di NOTE REGULAR LAYOUT OF PORT PINS EXTRA CONNECTION EXTRA CONNECTION FOR GROUND FOR Vcc Misc Header The last header labelled Misc has connections to processor pins other than the port pins especially for the AT90S8515 and AT90S4414 The layout of this header is CUT OUT MARKED ON BOARD FOR ORIENTATION OC1B PSEN 8515 ALE 8515 RESET TO ALL SOCKETS EXTERNAL IGP EA RESET 8515 EXTRA CONNECTION FOR Vcc EXTRA CONNECTION FOR GROUND All Sockets If external operations do not want pull ups on the port pin both the switches and
26. n connection with the sale of Atmel products expressly or by implication Atmel s products are not authorized for use as critical components in life support devices or systems Marks bearing and or are registered trademarks and trademarks of Atmel Corporation d Printed on recycled paper Terms and product names in this document may be trademarks of others 1107A 02 99 2M
27. nsert a device in more than one socket at a time otherwise program ming errors will occur Jumper JP1 is used to select either 3 3V or 5V programming For Voc 5V remove jumper JP1 jumper open For Vcc 3 3V insert JP1 jumper closed Jumper JP2 is used to set Brown Out detector voltage For Brown Out 5V insert jumper JP2 jumper closed For Brown Out 3 3V remove jumper JP2 jumper open This should be set to the same voltage as Voc If Voc is set to 3 3V and Brown Out is set to 5V then the device will be held in reset and will not program See the section Brown Out Detector on page 8 1 for more details JP1 uo e e JP2 The 10 way programming lead is inserted in the box header the key way ensures cor rect orientation The computer connections are shown in the section Connecting the Hardware on page 3 1 The power supply 9 15V DC or 7 12V AC is plugged into the power connector 5 5 2 1 Barrel The Power On Off switch is located next to the power connector Insert the device before switching the power on The power on LED should light when the power is cor rectly applied Your hardware is now ready for programming Refer to How to use the Software on page 6 1 for details of programming operations As these parts are only 8 pin the clock inputs use two of the port pins These pins can be used as port pins on som
28. of check boxes to select which features you want to enable or disable during the program ming session You can enable or disable any of the options by clicking on them or using Arrow and Space keys If the option has a check mark next to it then it is enabled if not then it is disabled Note that the default is for all the options to be enabled Further note that you should not disable the erase function under normal circumstances If the Dongle is not plugged into your printer port you may get an error If you get the Dongle Not Found error and it has been inserted into the printer port make sure that you have selected the correct printer port You can change the printer port setting by going to the Options menu and choosing Change Printer Port Simply choose the correct one for your system The programmer then attempts to read the device signature bytes If they are not found because you are using an old version of the device no device is plugged in the module is switched off or the lock bits are set a message box informs you of this You have the option of Abort Retry or Ignore A MEL STK200 Starter Kit User Guide 6 6 New Project 6 7 Open Project 6 8 Save Project 6 9 Load File 6 10 Save File STK200 Starter Kit User Guide How to use the Software Auto Program carries out all the steps you have selected All these options are available individually in the Program Menu and some of them also have speed but
29. on page 4 2 STK200 Starter Kit User Guide 4 1 Hardware Description 4 1 Jumpers and Links and their Functions 4 2 External Connections 4 2 Jumper Function Open Closed Default JP1 Voltage select 5V 3 3V Open JP2 Brown out select 2 9V 4 5V Closed JP3 RS232 RXD OFF ON Open Port B LEDs LEDs Disabled LEDs Enabled Closed Port D Switches Switches Disabled Switches Enabled Closed LK1 Analog Reference If LK1 cut then ONBOARD POT Closed See Section 9 4 2 EXTERNAL REF from header CUT Under LCD Contrast If Cut add Contrast Pot Closed Board See Section 9 6 extra resistor Clock Sel Selects Internal or INT Internal Clock EXT External Clock Closed External Clock for AT90S2323 All Ports are brought out to edge of board on to headers Each header has a Vcc and Ground pin for power supply to external circuits Port A for A D parts is on a separate header from Port A for standard parts labeled Analog There is an extra six pin header for miscellaneous functions ICP OC1B and ALE on 40 pin Digital devices Reset Ground and Voc The external load cannot exceed 100 mA for all headers combined See Using External Connections on page 9 1 and Using Analog Parts on page 9 3 for details A MEL STK200 Starter Kit User Guide AIMEL e Section 5 Installing the Software 5 1 Windows 95 To install the software insert the supplied disk or CD rom in your computer and perform the foll
30. or from the two holes marked Meter and Meter To use the A D converters with an external Voltage Reference the link marked LK1 must be cut The voltage is applied to the pins marked Analog Ref and Analog Gnd on the Analog header see diagram above The AT90S8515 and AT90S4414 can be used with external SRAM A socket is provided for a 28 pin RAM chip and for an address latch chip These are next to the Atmel logo on the board A low power 62256 SRAM is suggested with an access time of 70 ns If a very fast RAM is required the crystal frequency may need to be increased If a much slower SRAM is used the SRAM Wait State bit must be enabled in user software see data book The layout of the 28 pin RAM socket is shown below and any RAM with this pin out could be used RAM Socket pin layout 1 2 3 4 5 6 7 8 The board connections are for a 74HC573 device This device will operate reliably with the 4 MHz crystal supplied but if a faster crystal is inserted a faster version of this device may be required 74AHC573 or 74FHC573 Note that this option will alter the EMC characteristics of the board and the CE mark will no longer be valid without retest ing 9 6 Using LCD Connections 9 7 Using RS232 STK200 Starter Kit User Guide Board Applications The header marked LCD next to the 28 pin socket is for a standard 2 x 16 LCD The connections are shown on the board and in the following
31. owing steps 1 Click on your Start button 2 Select Settings 3 Select Control Panel 4 Choose Add Remove Programs 5 Click the Install button 6 Follow on screen prompts The software will then be installed onto your computer and an icon will be added to your start menu 5 2 Windows 3 1 Choose RUN from Program Manager and enter A SETUP EXE as the filename Press the OK button and the software installation program will begin The software will then be installed onto your computer and an icon and Program Group will be added to Program Manager Note On some PCs especially laptops programming problems may occur if the Bios Parallel Port settings are set to EPP Version 1 7 If programming problems do happen make sure that the Parallel Port settings in your BIOS are set to EPP V1 9 not V1 7 In the unlikely event that you have any problems installing the software or suspect that you have faulty media please contact the Atmel Starter Kit hotline Hotline Number 44 1970 621 049 Fax Number 44 1970 621 040 E mail stk200_support atmel com STK200 Starter Kit User Guide 5 1 Installing the Software 5 2 AIMEL STK200 Starter Kit User Guide AIMEL e 6 1 Projects 6 2 Files STK200 Starter Kit User Guide Section 6 How to use the Software The software is fully context sensitive This means that pressing F1 at any time will bring up help information about the
32. table Connection Name Function OV Ground 5 Voc must be 5V Vo Contrast RS Register Select A14 Wr Not Write E Enable DO Data Bit 0 D1 Data Bit 1 D2 Data Bit 2 D3 Data Bit 3 D4 Data Bit 4 D5 Data Bit 5 D6 Data Bit 6 D7 Data Bit 7 The board is designed for use with a LCD with a Hitachi driver chip built in using a con trast pin voltage of 0 to 5 Volts The pot next to the LCD connector not marked AREF is used for contrast adjustment TOP EDGE OF BOARD EXTRA RESISTOR TO INCREASE CONTRAST TRACK UNDER BOARD MARKED CUT MUST BE CUT IF THIS RESISTOR IS USED LCD CONTRAST POT LCD 0 000000000000 00 AREF If you use a different LCD driver it may have a different voltage contrast range In order to accommodate this add a resistor to the board and cut track on underside of board marked cut See diagram above This board is not designed for use with back lit LCD modules so the extra connections needed are not included and the power supply will not supply the current required The LCD can be driven in Memory Mapped or UO Mode see data sheet If the crystal has been changed to a faster crystal frequency memory mapped operations will not work The connection supplied is a 9 way female D type therefore a straight through lead is required not a null modem cable Jumper JP3 must be closed or RXD will be disabled RXD and TXD
33. tector voltage is set to 5V and Voc is set to 3 3V then the brown out circuit will operate continuously and the device will be held in permanent reset JP1 and JP2 must be set to the same voltage which is always 1 open and 1 closed Voltage JP1 JP2 5 Volts Open Closed 3 3 Volts Closed Open 8 1 Brown Out Detector 8 2 AIMEL STK200 Starter Kit User Guide AIMEL e 9 1 Using Switches and LEDs 9 1 1 Using 8 Pin Devices with LEDs 9 2 Configuring Switches and LEDs 9 3 Using External Connections STK200 Starter Kit User Guide Section 9 Board Applications The LEDs are connected through a 1K resistor network to Port B The switches are connected to Port D The switches and LEDs can be disconnected if required To use them ensure that the jumpers labeled Port B and Port D are closed The board is also marked with the port pin connection for each switch and LED The port pins on the AT90S2323 and other 8 pin parts are not connected to the correctly labeled LEDs due to layout constraints The actual connections are shown in the table below Processor Pin LED Label Socket Pin Number PBO PB5 5 PB1 PB6 6 PB2 PB7 7 PB3 PB3 2 PB4 PB4 3 The ports must be correctly set in software as input or output This is accomplished by setting the direction control registers to O for input and 1 for output Typical set up code would be ldi r16 ff load immediate into temp stor
34. the LEDs can be disconnected from the processor To isolate the LEDs remove the jumper set labeled Port B To isolate the switches remove the jumper set labeled Port D Using Analog 40 pin Analog parts must be used in the socket marked A D parts and 28 pin parts Parts must be used in the socket marked 28 Pin The A D converters use the header labeled Analog for the A D inputs This header is connected to Port A on the 40 pin A D socket and Port C on the 28 pin socket The layout of this header is shown on the following page STK200 Starter Kit User Guide AIMEL 9 3 Board Applications 9 4 1 9 4 2 9 5 9 5 1 9 5 2 9 4 Using Internal Reference Using External Reference Using External RAM RAM Recommendations Address Latch Analog Port Marked on Board CUT OUT MARKED ON BOARD FOR ORIENTATION ADC1 40 PIN DEVICES ADCO ADC7 CONNECTED TO PORT A PAO PA7 28 PIN DEVICES ADCO ADC5 CONNECTED TO PORT C PCO PC5 ADC3 ADC5 ADC7 NOT CONNECTED ON 28 PIN SOCKET ANALOG GND ANALOG REF The A D converters can use either the on board Internal Voltage Reference or an external Voltage Reference To use the internal on board Voltage Reference the pot marked AREF is used to set the voltage level The voltage level can be measured with a meter connected to the header pins labeled Analog Ref and Analog Gnd in the above diagram
35. tons on the toolbar m Erase Device m Program Device m Program EEPROM m Verify Device m Verify EEPROM m Program Lockbits The programmer has a dual function In addition to being able to program a device out of circuit using the applications module you can also program a device which has been soldered into your circuit This allows you to solder in a blank device program and reprogram the device without removing it from the board See the section In System Programming on page 10 1 for details Both methods use the same user software This creates a new project You will be prompted for the device type in a dialogue box Select the device you wish to base your project around and press the OK button The system will then open Project Manager amp Buffer windows to set project options and allow you to open the Program and EEPROM files Open Project allows you to open an existing project all associated files and settings Choose Open Project from the Project menu or use the speed button It is available on the Project menu and the toolbar This allows you to save your project options including font settings window positions and files in one quick and easy step You are prompted for a project file name with an AVR extension If either the Program or EEPROM buffers have changed you will be prompted to save them also This allows you to load a data file into your project You must have the appropriate buffer selecte
36. tor 1KQ is fine If you use this connection then the output will be low O during pro gramming and a 1 at all other times Note that it will float if the programmer is not active i e the software is not running so you may need to use a pull up resistor All the pins except ground will float if the programmer is not active The device may then be programmed in the normal way 10 2 AIMEL STK200 Starter Kit User Guide AIMEL e 11 1 Contacting Atmel STK200 Starter Kit User Guide Section 11 Technical Support Technical support for this product is provided by the AVR Starter Kit Support Team Contact information is provided below We would be grateful if you can report any errors you may find in this software We pride ourselves on our customer support As soon as we are aware of the problem we can solve it and send you an update very quickly via e mail If you wish to communicate via telephone the number is listed below Tel 44 1970 621 049 STK200 Technical Support Hotline Fax 44 1970 621 040 e mail stk200_support atmel com Website www atmel com We also have an extensive range of AVR development products available Please visit our website http www atmel com for full details Software upgrades will be made available on our website Technical Support AIMEL STK200 Starter Kit User Guide AIMEL e STK200 Starter Kit User Guide Section 12 Appendix Il Warranty Statement Atmel warrants that th
Download Pdf Manuals
Related Search
Related Contents
Philips HR1608 easyTek™ - Siemens Hearing Aids Congratulations on your purchase of the revolutionary Slow Juicer こちら - 株式会社テクノツリー Offene Kältemittelpumpen Montage- und Betriebsanleitung - Th-Witt Copyright © All rights reserved.
Failed to retrieve file