background image

Distributor of STMicroelectronics: Excellent Integrated System Limited

Datasheet of ST62GP-EMU2 - KIT EMULATOR FOR ST6 MCU SER 
Contact us: [email protected] Website: www.integrated-circuit.com

ST62GP-EMU2 Emulator User Manual

Appendix B: Glossary

51/57

Starter Kit

A printed circuit board for microcontroller evaluation and programming. It has the

ability to program one DIP EPROM or OTP part at a time. Different starter kits are

available for programming different ST6 devices.

ST6 HDS2 Series

The ST6 HDS2 Series is a generic name covering several emulator versions each

of which have a specific dedication board to support a set of ST6 devices. 

ST62GP-EMU2

The ST62GP EMU2 is the order code of this specific ST6 HDS2 emulator version

with a dedication board for the ST620x, ST621x, ST622x, ST623x, ST625x,

ST626x and ST6218/28 device families. 

Target Board

Designates your application board. It should include a socket for inserting the ST6

device or the emulator probe. 

WGDB6

Windows GNU Debugger for ST6. This is a software tool running under Windows.

It is the main user interface when operating the ST6-HDS2 emulator, and is part of

the ST6 software development tool chain (editor, assembler, linker and debugger).

WGDB6 is supplied on the CD-ROM with the ST6-HDS2 emulator and must be

installed on your development PC.

                            52 / 58

                            52 / 58

Summary of Contents for ST62GP-EMU2 HDS2 Series

Page 1: ...ited Excellent Integrated System Limited Stocking Distributor Stocking Distributor Click to view price real time Inventory Delivery Lifecycle Information Click to view price real time Inventory Delivery Lifecycle Information STMicroelectronics STMicroelectronics ST62GP EMU2 ST62GP EMU2 For any questions you can email us directly For any questions you can email us directly sales integrated circuit ...

Page 2: ...Integrated System Limited Datasheet of ST62GP EMU2 KIT EMULATOR FOR ST6 MCU SER Contact us sales integrated circuit com Website www integrated circuit com ST62GP EMU2 HDS2 Series Emulator User Manual Release 1 2 December 2000 Ref DOC ST62GP EMU2 ...

Page 3: ...ESS WRITTEN APPROVAL OF STMicroelectronics As used herein 1 Life support devices or systems are those which a are intended for surgical implant into the body or b support or sustain life and whose failure to perform when properly used in accordance with instructions for use provided with the product can be reasonably expected to result in significant injury to the user 2 A critical component is an...

Page 4: ...and other ST6 software tools 19 3 3 Launching WGDB6 21 Chapter 4 Tutorial 23 4 1 Introduction 23 4 2 Required tools 23 4 3 Getting prepared 23 4 4 Let s go 24 4 5 Step Mode 27 4 6 Run Mode 34 4 7 Conclusion 35 4 8 Using the tutorial with ST62 devices other than the ST6265 37 Chapter 5 Emulator Features 39 5 1 Clock source 39 5 2 Dedication board oscillator 39 5 3 Probe board oscillator 39 5 4 Exte...

Page 5: ...tact us sales integrated circuit com Website www integrated circuit com Table of Contents 4 57 Appendix A Troubleshooting 47 A 1 Identifying the Problem 47 A 2 Changing the Parallel Port Setup on Your PC 48 Appendix B Glossary 49 Product Support 53 Getting prepared before you call 53 Contact List 53 Software updates 54 Index 55 ...

Page 6: ...me capability of the ST62GP EMU2 allows you to run your application at full speed while still under debugger control This allows you to test your program while running under the same conditions as the final application Note If you come across any terms or abbreviations you do not understand you can check their meaning in the Glossary on page 49 First off check that the ST6 MCU that you have picked...

Page 7: ...the ST6 Program Memory and contains the breakpoint logic trace memory and all the logic needed for real time emulation The dedication board applies to the set of specific devices listed in the table above It emulates all peripherals related to these devices RAM EEPROM ADC Timers I Os etc With this modular architecture once you have bought a complete emulator you only need to change the dedication ...

Page 8: ...ll your software is described in Chapter 3 Installing the Software on page 19 Chapter 4 Tutorial on page 23 familiarizes you with the emulator environment using an example program The emulator kit s hardware features are described in Chapter 5 Emulator Features on page 39 1 2 Getting assistance For more information application notes FAQs and software updates on all the ST microcontroller families ...

Page 9: ...ctronics Excellent Integrated System Limited Datasheet of ST62GP EMU2 KIT EMULATOR FOR ST6 MCU SER Contact us sales integrated circuit com Website www integrated circuit com 1 Introduction ST62GP EMU2 Emulator User Manual 8 57 ...

Page 10: ...rent male male interfaces depending on the target device 20 pin probe with 3 different male male interfaces depending on the target device 28 pin probe with 3 different male male interfaces depending on the target device A duplicate set of these interfaces is provided in case of damage Caution Take precautions against electrostatic discharge ESD before unpacking the emulator probe boards These boa...

Page 11: ...rted ST62GP EMU2 Emulator User Manual 10 57 Note Do not use other parallel interface cables power adapters or other accessories with the ST62GP EMU2 Figure 1 ST62GP EMU2 Emulator Kit Contents Parallel Interface Cable Power Adapter Power Cable Flat Cables ST62GP EMU2 Box Ferrites Interface Adapters Analyzer Probes DIP16 DIP20 DIP28 DB324 4 Probe Boards DB324 DIP DB324 SDIP DB448 DB449 SO Adapters S...

Page 12: ...ware follow these steps 2 3 1 Step 1 Connecting the emulator to your PC 1 Shut down and power off the PC that is to be connected to the ST62GP EMU2 2 Ensure that both the ST62GP EMU2 emulator and your application board are disconnected from their power supplies 3 Connect the parallel interface cable supplied with the ST62GP EMU2 emulator kit to a parallel connector on your PC LPT1 or LPT2 4 Connec...

Page 13: ...et device Figure 3 DIP Probe Connectors with SO Adapter Target device Probe Board ST6200C ST6201C ST6203C DB448 with DIP16 footprint interface to be added ST6208C ST6209C ST6210C ST6220C DB448 with DIP20 footprint interface to be added ST6215C ST6225C DB448 with DIP28 footprint interface to be added ST6252C ST6262C DB449 with DIP16 footprint interface to be added Table 1 Use of Probe Boards and Fo...

Page 14: ...footprint ST6235C DB324 with QFP52 footprint third probe must be ordered separately ST6218 DB324 with DIP20 footprint interface to be added ST6228 DB324 with DIP28 footprint interface must be added Jumper Setting Function Remark W1 1 2 Clock source is user installed oscillator on probe board in the OSCILLA posi tion Refer to Clock source on page 39 for more informa tion 2 3 Clock source is a signa...

Page 15: ... a Completely loosen the two screws on the front panel of the dedication board see Figure 4 b Extract the board by placing your thumbs on the two handles and pressing them firmly outwards to loosen the board see Figure 5 c Slide the board out gently and place it on a static safe surface Figure 4 ST62GP EMU2 Front Panel Figure 5 Using the extractor handles to loosen the dedication board Triggers An...

Page 16: ...rted 15 57 2 Connect the two flat cables between the dedication board and the emulator probe as follows refer to Figure 7 a Connect one flat cable to J1 on the probe board and J1 on the dedication board see schema of dedication board in Figure 6 b Connect the other flat cable to J2 on the probe board and J2 on the dedica tion board Note The cable must be kept parallel between the emulator and the ...

Page 17: ...e 7 2 3 4 Step 4 Powering up 1 Plug the power jack from the power adapter to the power connector on the ST62GP EMU2 back panel refer to Figure 2 on page 11 2 Connect the power adapter to the mains power supply 3 Plug the probe connector in the MCU socket of the application board 4 Power on the PC 5 Switch on the ST62GP EMU2 using the power switch on the back panel see Figure 2 6 The power LED on t...

Page 18: ...17 57 7 To run the emulator you must now install the Windows Debugger Software for ST6 WGDB6 To do this refer to Installing the Software on page 19 8 Power on the application board 2 4 How to power on and off When powering on the emulator always proceed in this order 1 Power on the development PC 2 Power on the ST62GP EMU2 3 Start WGDB6 and load your program 4 Power on the application board When t...

Page 19: ...ronics Excellent Integrated System Limited Datasheet of ST62GP EMU2 KIT EMULATOR FOR ST6 MCU SER Contact us sales integrated circuit com Website www integrated circuit com 2 Getting Started ST62GP EMU2 Emulator User Manual 18 57 ...

Page 20: ...lectronics MCUs 3 Use your mouse to place the cursor over the ST6 TOOLS option Choose ST TOOLS and ST6 TOOLCHAIN from the lists that appear 4 The install wizard is launched Follow the instructions that appear on the screen You can choose the package you wish to install To install the complete ST6 Toolchain for your emulator select Complete Toolchain for Emulator This option installs the WGDB6 debu...

Page 21: ...tegrated circuit com 3 WGDB6 ST62GP EMU2 Emulator User Manual 20 57 A window pops up if you have not already installed this driver parstm sys 7 Click OK The following window appears 8 Click Install The following window appears 9 Click OK the installation is now complete The following window appears 10 Choose to read the Release Notes or start WGDB6 then click the Finish button ...

Page 22: ...d circuit com ST62GP EMU2 Emulator User Manual 3 WGDB6 21 57 3 3 Launching WGDB6 From Windows 95 98 or Windows NT click the Start button point to Programs ST6 Tool Chain Development Tools then choose Wgdb6 Emulator Refer to the WGDB6 Windows Debugger for the ST6 Family User Manual for full instructions on how to use WGDB6 This manual is available in PDF format on the MCU on CD CD ROM ...

Page 23: ...electronics Excellent Integrated System Limited Datasheet of ST62GP EMU2 KIT EMULATOR FOR ST6 MCU SER Contact us sales integrated circuit com Website www integrated circuit com 3 WGDB6 ST62GP EMU2 Emulator User Manual 22 57 ...

Page 24: ...6 devices supported by the ST62GP EMU2 To find out how to modify the program refer to Using the tutorial with ST62 devices other than the ST6265 on page 37 The example program is located in the following directory D Program Files Stm ST6toolchain soft 6x emu2 tutorial The file is called tutorial asm 4 2 Required tools The following tools are required to do this tutorial ST62GP EMU2 Oscilloscope 5 ...

Page 25: ...mation on what each instruction does In this example since we are not using an application board you should connect the probe to a regulated 5 V power supply VDD pin 11 5 V VSS pin 12 0 V Caution Be careful when applying the 5 V to ensure that you don t short circuit the emulator 1 Start the WGDB6 Emulator 2 From the Windows Start menu select Start Programs ST6 Tool Chain Development Tools Wgdb6 E...

Page 26: ...aunched you can select a DBE family by selecting Commands DBE Family ST6xxx from the main menu 5 After selecting the DBE family select Commands Micro_Name the Micro Name window is displayed see Figure 10 6 In the Micro Name window choose a family from the pull down list and then choose a micro from the micro list 7 After you have selected the correct emulator from the main menu select Commands Mic...

Page 27: ...EMULATOR FOR ST6 MCU SER Contact us sales integrated circuit com Website www integrated circuit com 4 Tutorial ST62GP EMU2 Emulator User Manual 26 57 For example the ST6265 emulator has the following Micro Configuration options However the ST6200 emulator has the following Micro Configuration options ...

Page 28: ...m ST6toolchain soft 6x emu2 tutorial where the tutorial hex file is located Double click on the file to open it 9 A window titled tutorial asm see Figure 11 pops up and the title of the Control Bar changes to ST626x Emulator tutorial hex There are two ways of executing the tutorial hex file one way is to Step through each of its instructions and the other is to Run through each of its instructions...

Page 29: ...U SER Contact us sales integrated circuit com Website www integrated circuit com 4 Tutorial ST62GP EMU2 Emulator User Manual 28 57 1 In the Control Bar click Windows Browser The Browser window pops up see Figure 12 2 In the Browser window click the arrow next to Type select data and click Apply Figure 12 Browser window ...

Page 30: ...ch Browser tutorial asm and Control Bar windows to a location on the screen where they can all be easily read 6 In the Browser window add the following registers to the Watch window in the same way that you added DDRB ORB DRB drbcopy IOR TSCR and TCR Close the Browser window Note You can also type the names of the registers directly in the Watch window 7 In the Control Bar click Commands then Rese...

Page 31: ...hey are all configured as input this means their logic state is read from the DRB The other variables drbcopy are not yet initialized at this stage 9 Note that in the Watch window the contents of the DDRB register is 00h in hexadecimal notation In the Control Bar click the Step button again This loads the hexadecimal value 01h into the DDRB register 10 Click the Step button again This loads the he...

Page 32: ... tutorial we will leave the Stepping process and continue executing the program without stepping 12 In the tutorial asm window scroll down to the jrs 0 drbcopy lowbit instruction and click it once this highlights the instruction in blue This instruction is in the Timer Interrupt Service Routine and will not be reached until the timer interrupts the program which means that it counts down to zero 1...

Page 33: ...ests the zero bit of the drbcopy register to see if it is a 1 or a 0 If it is a 1 then it jumps to the label referred to as lowbit In our case the zero bit is 0 so the jrs instruction does not make a jump and the next instruction is highlighted ldi drbcopy 01h 16 Click the Step button again this loads the hexadecimal value 01h into the drbcopy register Results Look at the oscilloscope which is dis...

Page 34: ...ise it will not jump and the next instruction will be executed but since the zero bit of the drbcopy register is a 1 it will jump to the lowbit label 21 Click the Step button again this loads the hexadecimal value 00h into the drbcopy register Results Look at the oscilloscope which is displaying the voltage level of pin PB0 and note that it is high 5 V The voltage level of PB0 is 5 V because PB0 i...

Page 35: ...ction back into normal lettering as opposed to bold lettering which means the breakpoint has been removed from this instruction 2 In the Control Bar click the Run button and watch the oscilloscope which is displaying the voltage level of pin PB0 You will see it change from low to high and high to low continuously This is a 10 17 Hz PWM signal with 50 Duty Cycle You may have to adjust the oscillosc...

Page 36: ...ave done with the tutorial asm program You can customize your debug session by launching other windows from the Windows menu on the Control Bar such as The Stack window for displaying the stack status The Register window for inspecting the core registers accumulator index registers etc The Dump window for inspecting any location in your memory data and program space The Trace window for a log of a...

Page 37: ...6 MCU SER Contact us sales integrated circuit com Website www integrated circuit com 4 Tutorial ST62GP EMU2 Emulator User Manual 36 57 If you have any questions please contact your local STMicroelectronics Microcontroller support person refer to Product Support on page 53 Figure 17 Stack Registers and Dump windows ...

Page 38: ...the tutorial asm file find the following line of code and modify the device version to reflect the new target device vers ST6265 Optional 2 In the tutorial asm file find the following line of code and modify the romsize parameter as appropriate romsize 4 Optional 3 Change the hardware register definition file INI to that associated with the device you want to target These files can be found in the...

Page 39: ...lectronics Excellent Integrated System Limited Datasheet of ST62GP EMU2 KIT EMULATOR FOR ST6 MCU SER Contact us sales integrated circuit com Website www integrated circuit com 4 Tutorial ST62GP EMU2 Emulator User Manual 38 57 ...

Page 40: ...nator on the application board must not be used as a clock source for the emulator 5 2 Dedication board oscillator The dedication board oscillator is selectable with the software Possible selections are 500kHz 1MHz 2MHz 3MHz 4MHz 5MHz 6MHz 7MHz 8MHz 5 3 Probe board oscillator The probe board has locations for soldering a crystal or a ceramic resonator which can be used as the clock source of the e...

Page 41: ...etween pins 2 3 of W1 and pins 1 2 of W2 on the probe board 5 5 Changing the oscillator on the probe board If you install a crystal or a ceramic resonator on the probe board you must change the value of the C4 and C5 capacitors C3 and C4 capacitors in the case of a DB324 probe board accordingly see Figure 18 The capacitors installed 470 pF 1000 pF have been tested with crystals in the range 1 to 4...

Page 42: ...N O S C O U T N M IA P P N R E S P B 4 PA0 PA1 PA2 PA3 P B 0 P B 3 P B 1 P B 2 T IM E R O S C IN O S C O U T N M IA P P PC 4 PC 5 PC 6 PC 7 V C C A P P PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB3 PB4 PB 7 V SR EF GN D G ND GN D GN D G ND V CC G ND G N D G ND V CC _EM U VCC VCC G ND G ND VC C_E M U V CC G ND VC C U 4D 7 4HC 04 9 8 TP 1 TP4 U4A 74H C04 1 2 C4 470PF R 3 10M U3 DIP28 28 1 27 2 26 ...

Page 43: ...he M74HC04 on the probe board see Figure 18 on page 40 for its position is intended for driving a user installable oscillator This M74HC04 is always under power To obtain 0 A power consumption on the probe board remove the M74HC04 if you do not need it to drive an oscillator 5 7 Status LEDs Three LEDs on the front panel of the ST62GP EMU2 show the user the state of the emulated ST62 device as foll...

Page 44: ...ilable on the front panel of the ST62GP EMU2 You can generate these signals using the Hardware Events Trigger Menu in the WGDB6 Debugger Output OUT1 and OUT2 can be programmed in two ways Synchronization mode see Figure 19 allows you to configure two synchronization pulses Trig1 and Trig2 for triggering external hardware The events can be defined by addresses or address ranges Timing measurement m...

Page 45: ...m your application hardware to be used as logical conditions for conditional breakpoints By connecting the analyzer probe to various test points on your application board you can set up breakpoints that will be triggered depending on the state of your application hardware plus any other software conditions you may have configured for the breakpoint 1 In the WGDB6 Main Window click Hardware Events ...

Page 46: ...e Value buttons to set the logic probe values on which you want to break Click OK These signals must be connected on the Lp Logic Probe pins of the Analyzer probe connector on the front panel of the ST62GP EMU2 The inputs are CMOS compatible at 5 V For more information on breakpoints refer to the WGDB6 manual or to the WGDB6 on line help 5 11 Emulator functional limitations and discrepancies 5 11 ...

Page 47: ...ator 5 11 4 Electrical characteristics of A D converter input pins The emulator ADC input pins have an input capacitance ACIN of 120 pF on the emulator compared to 5 pF on the ST6 device This has the effect that when you switch A D channels using the emulator the first conversion may be wrong This conversion error will not occur when the ST6 target device is installed in the final application 5 11...

Page 48: ...in soft and re install WGDB6 4 Error message hds2 lpt1 timeout during synchro nization Check that the ST62GP EMU2 is connected to LPT1 and check if the power supply is on 5 Error message Check if the emulator is switched on and if the parallel cable is well con nected This message is also displayed when there is a configu ration mismatch Configure the parallel port of your PC referring to Changing...

Page 49: ...cted this may mean that the setup of the LPT1 or LPT2 port on your PC is not compatible with the ST62GP EMU2 This is a problem with some Windows 95 98 PCs but usually not with Windows NT PCs To setup the port correctly 1 Shutdown and restart your PC in order to enter the BIOS Setup 2 Follow the messages displayed on the screen and when prompted press the key required to enter the BIOS Setup usuall...

Page 50: ...DS2 emulator is available in specific versions that support a group of ST6 devices Each version of the ST6 HDS2 has a specific dedication board and set of probe boards DIL or DIP Dual In Line also known as Dual In Line Package These two abbreviations designate a type of device package with two rows of pins for thru hole mounting ECP Extended capabilities port EPP Enhanced parallel port Footprint D...

Page 51: ...a small printed circuit board with a connector to allow you to insert it in the MCU socket of the target board It is connected to the dedication board by two flat cables RC Network Resistor capacitor network SMD Surface Mounted Device Designates a device with pins that are designed to be glued to the surface of a printed circuit board Contrast with thru hole devices which have pins that are design...

Page 52: ...ulator versions each of which have a specific dedication board to support a set of ST6 devices ST62GP EMU2 The ST62GP EMU2 is the order code of this specific ST6 HDS2 emulator version with a dedication board for the ST620x ST621x ST622x ST623x ST625x ST626x and ST6218 28 device families Target Board Designates your application board It should include a socket for inserting the ST6 device or the em...

Page 53: ...onics Excellent Integrated System Limited Datasheet of ST62GP EMU2 KIT EMULATOR FOR ST6 MCU SER Contact us sales integrated circuit com Website www integrated circuit com Appendix B Glossary ST62GP EMU2 Emulator User Manual 52 57 ...

Page 54: ...er Code Refer to the side of your emulator kit box The order code will depend on the region for which it was ordered i e the UK Continental Europe or the USA 4 Serial Number The serial number is located on the rear panel of the emulator box 5 Target Device The sales type of the ST6 microcontroller you are using in your development Contact List Note For American and Canadian customers seeking techn...

Page 55: ...roelectronics Inc 30101 Agoura Court Suite 118 Agoura Hills CA 91301 Phone 818 865 6850 Europe France 33 1 47407575 Germany 49 89 460060 U K 44 1628 890800 Asia Pacific Region Japan 81 3 3280 4120 Hong Kong 852 2861 5700 Sydney 61 2 9580 3811 Taipei 886 2 2378 8088 Software updates You can get software updates from the ST Internet web site http mcu st com For information on firmware and hardware r...

Page 56: ...ock Source 39 connections emulator to PC 11 14 16 connector parallel port 11 D device SO 11 SSOP 11 target 12 devices supported 5 DIL probe 12 discrepancies 45 driver NT 19 F footprint 12 footprint adapter 11 G glossary 49 L LEDs 42 M measurement voltage 42 Micro_Configuration 25 Micro_Name 25 N NT driver 19 O oscillator 39 OSCIN pin 39 output trigger 43 P peripherals 6 pins input A D converter 46...

Page 57: ...6 MCU SER Contact us sales integrated circuit com Website www integrated circuit com Index 56 57 for development kit 53 information required 53 T troubleshooting 47 TTL signal input 39 tutorial asm 24 V voltage measurement 42 W WAIT mode 46 WGDB6 starting 21 Windows 3 x 19 Windows 95 19 Windows 98 19 Windows NT 19 ...

Page 58: ...electronics products are not authorized for use as critical components in life support devices or systems without the express written approval of STMicroelectronics The ST logo is a registered trademark of STMicroelectronics Intel is a U S registered trademark of Intel Corporation Microsoft Windows and Windows NT are U S registered trademarks of Microsoft Corporation 2000 STMicroelectronics All Ri...

Reviews: