Home

DM3 Debug Module - Electrocomponents

image

Contents

1. Debug Supports Brown J1 J2 J242 33 J4 JS J13 J16 J17 J18 J21 J22 J233 J25 1264 1325 1356 Module Model Out Clock G7 Option Mode VCC CF CF CL CF CL VPP Clock HALT Misc A D Type Files Source Emul Emul Emul Source Mode Ref 888HG 88xHG A 888KG 88xKG CKO EMU7 Open 8AC 8AC N F 8FGR 8FGx N A DM7 DM OTHER OTHER CF G XTAL7 N A N A CKO7 8SAC 8SAx A D 8SER 8SEx CKO EMU7 8SGR 8SGx CKO7 NOTES i Factory Setting Do Not Change N F No Function N A Not Applicable does not exist on specified Debug Module ZO Uh UY IN ka Brown Out jumper exists only on 820CJ and 840CJ Debug Modules on daughter card J1 J2 and J24 jumpers are hardwired to DM on DM5 Debug Modules J23 VPP Source jumper exists only on DM3 Debug Modules J26 HALT jumper exists only on 888GW Debug Module on daughter card J32 Misc jumper exists only on DM4 and DMS Debug Modules 335 A D Ref jumper exists only on 888EB Debug Module on daughter card See Clock Mode descriptions later in this chapter for a description of all clock modes Table 3 As Shipped Jumper Chart 27 Options By Jumper Block BROWN OUT J1 J2 J24 Clock Source 820CJ 840CJ Debug Modules The BROWN OUT jumper is located on the 820CJ 840CJ daughter card next to the emulation microcontroller It allows you to emulate the Brown Out opti
2. 820CJ 840CJ 880 888CF 888EG 8FGR 8SAC 8SGR Debug Modules G7 Option J3 CKO CKO INPUT HALT PORT 1 Warning The EMU jumper position MUST be left OPEN for these Debug Modules Table 6 G7 Option Jumper 29 888BC 888CG 888EB 888EK 888FH 888GD 888GG 888GW 888HG 888KG 8AC 8SER Debug Modules G7 Option E CKO CKO EMU INPUT HALT PORT Table 9 G7 Option Jumper J4 The function of the Mode jumper depends on the type of Debug Module Mode 880 8SAC Debug Modules The Mode jumper determines how much on chip inter nal RAM is available in the emulation microcontroller RAM Size J4 880 8SAx bytes Mode Supports Supports 128 A 880 840 8SAC 8SAB 64 B 820 8SAA Table 7 Mode Jumper RAM Size 820CJ 840CJ 888EB 888GW 8AC 8FGR 8SER 8SGR Debug Modules The Mode jumper has no function Other Debug Modules The Mode jumper controls the HALT Enable mask option HALT J4 Enabled A Disabled B Table 8 Mode Jumper HALT Enable JS The VCC Jumper allows the operating voltage of the Debug Module to be supplied VCC from either the Debug Module DM or the target system TAR The DM setting supplies only 5 0V and is required for out of target emulation The TAR setting uses the voltage supplied to the Vcc pin of the microcontroller socket on the target syste
3. 13 Debug Module Component Description Buttons Switches SWI All Debug Modules The RESET pushbutton allows you to reset the emulation mi RESET crocontroller during emulation independent of the target RESET pin SW2 All Debug Modules The POWER rocker switch controls power coming in on the POWER power connector EPROM Programming Sockets Three sockets are provided for programming COP8 EPROM devices 44 pin DM3 Debug Modules The 44 pin PLCC socket is not available on DM3 Debug PLCC Modules LIF DM4 and DMS Debug Modules The 44 pin PLCC socket is available to program 44 pin PLCC devices 40 pin DM3 Debug Modules The 40 pin DIP socket is available to program 20 28 and DIP 40 pin DIP devices ZIF DM4 and DM5 Debug Modules The 40 pin DIP socket is available to program 16 20 28 and 40 pin DIP devices 28 pin DM3 Debug Modules The 28 pin SOIC socket is available to program 20 and 28 SOIC pin SOIC devices ZIF DM4 and DM5 Debug Modules The 28 pin SOIC socket is available to program 16 20 and 28 pin SOIC devices Note that some devices require programming adapters The Host Software will notify you of any requirements when you select a device and when you select a programming com mand For a list of all devices that may be programmed select the Device list box in the PROM Programmer Dialog Box You may write this device list to an ASCII text file by pressing the Write button in the PROM Programmer Dial
4. ice MASTER Debug Module User s Manual for Microsoft Windows y y Corporation COP8 DEBUG MODULE BREAK RESET Document Version 1 02 Copyright 1999 by MetaLink Corporation All rights are reserved This manual may not in whole or part be copied photocopied reproduced translated or reduced to any electronic medium or machine readable form without the prior agreement and written per mission of MetaLink Corporation ice MASTERO MetaLink and the combination ice MASTER and an alphabetic or numeric suf fix and the MetaLink logo are claimed trademarks of MetaLink Corporation and may only be used to describe MetaLink products National Semiconductor is a trademark of National Semiconductor Corporation MOLE is a trademark of National Semiconductor Corporation Microsoft Windows and MS DOS are registered trademarks of Microsoft Corporation MetaLink Corporation reserves the right to make improvements in the products described in this manual as well as the manual itself at any time and without notice Table Of Contents Chapter 1 Introduction gt gt kK KK KK KK KK KK KK KK KK ee KK KK eee 6 The Emulator esee 5 4 a lt L4G LA HA Lb zab nb d k AA jw bb a da 6 Recommended References karen E 62 GG gal KA AE AGE dow ae 6 Wha Vou Need gare N 6 Chapter 2 Hardware Installation ss tr str knr KK KK KK KK eee 8 Np abcd ae Er as WEG GA 8 DMA DM5 Installation
5. mnn n n KK KK KK ae ee ee 9 Chapter 3 Hardware Description KK KK KK KK KK KK KK 10 DM3 Debug Module i tsei ioma doi 4 a d 4 5 ee 11 DMA Debug Module lt tt KK KK KK KK KK KK KK KK KK KK KK KK KK 12 DM5 Debug Module eee eee KK KK KK KK KK KK KK KK KK KK 2 13 Debug Module Component Description nnn nnn nn AA 14 Butions Switehe s k saker a SAT DE AG Se ade A 14 EPROM Programming Sockets KK KK KK KK KK KK KK KK 14 EEE de ta is dac NN 15 Powep as e id W z Al 15 Clock Generation and Selection s e oe m e AAA A 16 Break Input 18 GO Pall Down Resistor ss da KALA A enda Ea 18 G1 Pull Up Resistor gt gt gt tt tt KK KK KK KK KK KK KK KK KK K1 18 ASIS Interfaces as ae dos an d sn y a a a de kn An SE 18 Target Interface Cables KK KK KK KK KK KK knr rn 19 Serre ae E KE Akat So EG 20 Jumper Blocks gt tt KK KK KK KK ee 20 PROM Programmer tt tt KK KK KK KK KK KK ee 20 Chapter 4 Software Guide KK KK KK KK ee eens 21 Overview Features KA FE SE SR ek KIA 79 Au gt 21 Default Screen Layout do w GR A da SET A W xey Go W me RR A 23 Available Windows O Rte Se W ERE w Wok w WoW OK a tee EE AY 23 Chapter 5 Jumper Blocks emek KK 0 oe we ww we ww o e a e 25 As Shipped Chart mn kk n KK KK n KK Kn KK Kn KK nn n n nn n Kn 26 Options By Jumper B
6. Debug Module can operate in any Clock Mode Crystal Oscillator External Oscillator or R C Oscillator Mode The five jumper blocks are required because the COP8 Emulation Device used in the Debug Module actually operates in External Oscillator Mode for 820CJ 840CJ 880 888CF 888EG and 8SAx Debug Modules or Crystal Oscillator Mode for 888BC 888CG 888EB 888EK 888FH 888GD 888GG 888GW 888HG 888KG and 8AC Debug Modules The jumpers are used to configure the clock signals to emulate any Clock Mode 16 Each jumper block used in this circuit is described in detail in the Jumper Blocks Chapter Each Clock Mode and the jumpers used to emulate each Clock Mode are described in detail in the Jumper Block Chapter DM5 Debug Modules The figure below is a schematic diagram of the clock generation and selection circuit used on the DM5 Debug Module Target G7 CKO No Connection Emulation Device Oscillator Test Point O Figure 5 DM5 Clock Generation and Selection Circuit As can be seen from the schematic diagram there are two jumper blocks J3 and J25 in volved in the circuit Using these jumper blocks any Debug Module can operate in any Clock Mode Crystal Oscillator External Oscillator or R C Oscillator Mode The two jumper blocks are required because the COP8 Emulation Device used in the Debug Module actually operates in External Oscillator Mode for 820CJ 840CJ 880 888CF 888EG 8FGx 8SAx and 8SGx Debug Modul
7. clock frequency set in host software 3 TAR setting not available for DM5 4 Target crystal can be up to 10 Mhz N A for DM5 Table 17 Crystal Oscillator Mode Jumper Settings 35 888BC 888CG 888EB 888EK 888FH 888GD 888GG 888GW 888HG 888KG 8AC 8SER Debug Modules For these devices the following table shows which jumper settings to use for the Crystal Oscillator Mode J1 J2 J24 J3 J25 MHz DM CKO EMU XTAL 10 TAR CKO EMU XTAL target 1 DM5 has a programmable clock frequency set in host software 2 TAR setting not available for DM5 3 Target crystal can be up to 10 Mhz N A for DM5 Table 18 Crystal Oscillator Mode Jumper Settings External Oscillator Mode In External Oscillator Mode G7 is available as a general purpose input and to take the emulation micro controller out of HALT mode if available 36 CKI CKO RESTART EXTERNAL CLOCK Figure 8 External Oscillator Schematic 820CJ 840CJ 880 888CF 888EG Debug Modules For these devices the following table shows which jumper settings to use for the Ex ternal Oscillator Mode J1 J2 J24 18 J25 MHz DM PORT XTAL 10 TAR PORT XTAL target 1 Warning The EMU jumper position MUST be left OPEN for these Debug Modules 2 DMS has a programmable clock frequency set in host software 3 TAR setting not available for DM5 4 Tar
8. execution If these procedures restore operation in the stand alone mode or if the unit worked in the stand alone mode without correction it is necessary to determine if the target is causing the fault or if the Debug Module has a fault that doesn t manifest in stand alone mode Troubles to watch for include 1 bus contention 48 2 excessive loading 3 failed components in the target system especially failures that are likely to damage the emulator If you have any questions contact MetaLink for technical assistance 49 Chapter 9 Differences Model 400 vs Debug Module vs EPU The following table is a comparison of the features in the ice MASTER COP8 Model 400 In Circuit Emulator the ice MASTER COP8 Debug Module and the ice MASTER EPU COP8 Feature Attribute Command Model 400 ren EPU PROM Programmer no yes yes Interchangeable Probe Cards yes no no Number of Trace Frames 4K 100 100 Number of Break points 64K 32K 32K Type of Break point HW SW INTR SW INTR instruction instruction Number of Trace On points 64K 0 0 Number of Trace Off points 64K 0 0 Number of Increment Pass Count points 64K 0 0 Real Time Clock during emulation yes yes nol Reset Counter during emulation yes yes no Pass Counter during emulation yes no3 no3 Trace Triggers yes no no Probe Clips yes no4 no4 Break Button yes no4 no4 Maximum RS 232 Baud Rate 115
9. interactively as well as through your application programs Software designers have complete emulation capability as well Recommended References Several additional references can be of help to you as you progress through the development process The data book and programmer s guide for the microcontroller you are using pro vide essential information You will also need the programmer s manual for the develop ment language you are using What You Need To Know Throughout this manual it is presumed that you have a working knowledge of 1 the family of microcontrollers you are emulating 2 the IBM PC or compatible as an engineering tool 3 adevelopment language e g Assembly Language or C 4 Microsoft Windows 3 11 Windows 95 or Windows NT 4 0 6 A few of these topics are discussed in this manual as a means of illustrating a particular fea ture or facet of the ice MASTER COP8 Debug Module s capabilities however basic pro gramming knowledge and familiarity with the microcontroller architecture are assumed Chapter 2 Hardware Installation Before starting the hardware installation verify which type of Debug Module that you have The type of Debug Module DM3 DM4 or DMS can be determined from the paper label on the corner of the board nearest the Reset Switch If there is no label on the corner the type of Debug Module may be determined by the presence or absence of the 44 pin PLCC LIF programming socket the 4
10. 15 Misc Jumper Other Debug Modules The Mise jumper MUST be left OPEN J35 888EB Debug Module The A D REF jumper is located on the 888EB daughter card A D REF next to the emulation microcontroller It determines the source of the reference volt age for the A D converter of the emulation microcontroller A D Voltage 135 Reference Source Debug Module DM Target System TAR Table 16 A D Ref Jumper 33 When the DM setting is used the Debug Module supplies the reference voltage of 5 VDC Other Debug Modules There is no J35 jumper on other Debug Modules 34 Options By Function Clock Modes Crystal Oscillator Mode CKO Lo In Crystal Oscillator Mode G7 is CKI used for CKO and is not available as a general purpose input Note that when emulating the CKO v IBI Ki option the Debug Module oscilla gt C2 C tor is driven out the target G7 pin and G7 is not available to take the T T emulation microcontroller out of HALT mode if available Figure 7 Crystal Oscillator Schematic 820CJ 840CJ 880 888CF 888EG 8FGR 8SAC 8SGR Debug Modules For these devices the following table shows which jumper settings to use for the Crystal Oscillator Mode J j2 J24 J3 J25 MHz DM CKO XTAL 10 TAR CKO XTAL target 1 Warning The EMU jumper position MUST be left OPEN for these Debug Modules 2 DM5 has a programmable
11. 2 0003 00 INTR SP 6F 0004 00 INTR HC 0005 00 INTR C 0006 00 INTR TIPNDA 0 0007 00 INTR TIENA 0 0008 00 INTR EXPND 0 0009 00 INTR BUSY O 000A 00 INTR EXEN 0008 00 INTR GIE oooc 00 INTR 0000 00 INTR 000E 00 INTR 000F 00 INTR File Options 0010 00 INTR PORTFD 0011 00 INTR PORTFC 0012 00 INTR PORTFP 0013 00 INTR gt TMR3LO FFE 44 File Options Break Address Ox0000 a ock microseconds 0 e Count resetsjetc O 4 n 10 x File Options View Data ooo Bi C2 20 FF 10 FF 04 BE FD 08 40 F7 BC CB 00 Ej 010 BC 00 24 FF 8C 7B 01 FF EF 20 C4 FD 14 2A 89 020 3A 49 58 7B 01 AE 08 7E FF 01 88 3F 09 BF 00 DB 04 00 E2 00 FD OC F6 FF 03 05 7F 00 FF 02 gt Figure 6 Default Screen Layout The picture above shows the default screen layout The windows shown Source RAM Memory Core Registers Registers SFR and Status are just a subset of the available win dows The available windows are described below Available Windows The Break Window is used to display add remove or edit break points Break points are evaluated and transmitted to the emulator as they are created or edited Browse The Browse Window is used to inspect or change structures unions arrays pointers Code and bit fields For each element of the object being browsed at least the address data type and value are displayed and where meaningful array subscript values and member names are also displayed T
12. 200 baud 57 600 baud 115 200 baud Multiple Watch Windows yes yes yes het ea we dil Windows yes yes yes TA EE Multiple Command Windows yes3 yes3 yes3 Multiple Frequency Operation yes yes no 50 Feature Attribute Command Model 400 a EPU File Store yes yes yes File Restore yes yes yes File Macro no3 no3 no3 Run From yes yes yes Run Until yes yes yes Run Slow Motion Instruction yes yes no Run Slow Motion Line yes yes no Run Step Line yes yes yes Run Step Over yes yes yes Run Step To yes yes yes Trace Search yes yes yes 1 Real Time Clock The Real Time Clock field in the Status Window is blank However the heartbeat wheel spins during emulation The same is true of the pop up Emulating box during emulation 2 Reset Counter The Inactive Count field in the Status Window is blank 3 Pass Counter The Pass Count field in the Status Window is blank 4 The Debug Module and EPU have no probe clips The Debug Module does provides a single Break Input point 5 The Macro feature of the emulator software for DOS is not available in the Windows based emulator software Instead a command window is available 6 Multiple frequency operation is available when using the crystal from the target system 7 On DM3 and DM4 Debug Modules multiple frequency operation is available when using the crystal from the targe
13. CKI CKO available as a general purpose input and to take the emulation micro controller out of HALT mode if a Vec available mall Note that target R C Oscillator RESTART Mode is not actually supported the Debug Module will NOT oscillate with a target R C circuit It can be simulated however by driving the CKI pin on the target connector with a signal generator set at target CMOS level 50 duty cycle The maximum frequency supported depends on the emulation de vice in the Debug Module Figure 9 R C Oscillator Schematic 38 820CJ 840CJ 880 888BC 888CF 888CG 888EB 888EG 888EK 888FH 888GD 888GG 888GW 888HG 888KG 8AC 8SER Debug Modules For these devices the following table shows which jumper settings to use for the R C Oscillator Mode JL 24 J3 J25 MHz DM PORT RC OPT 1 3 Frq TAR PORT RC OPT target 1 Warning The EMU jumper position MUST be left OPEN for these Debug Modules 2 The frequency will be 1 3 of the crystal frequency or 1 3 of the programmable clock on the DM5 you must ensure the resulting frequency is legal 3 TAR setting not available for DM5 4 Can be simulated up to maximum frequency allowed for emulation device as described above N A for DM5 Table 22 R C Oscillator Mode Jumper Settings 8FGR 8SAC 8SGR Debug Modules For these devices the following table shows which jumper settings to use for the R C Oscillato
14. Calling KEKE k mb ce Se GS BO dm BO AR ew 47 Power sigui a faer aar Oe KA 22H pp rrr 47 Communications Failure GE GE E KE RER ORE 47 Emulation Problems EE EE EE NE EE EE GE EE ew E ETNE 48 Chapter 9 Differences Model 400 vs Debug Module vs EPU nn tt ees 50 Chapter 1 Introduction The Emulator The ice MASTER COP8 Debug Module is a tool for designing debugging programming and evaluating COP8 Microcontroller Unit MCU devices By providing all of the essen tial MCU timing and I O circuitry the Debug Module simplifies evaluation of the prototype hardware software product The ice MASTER COP8 Debug Module is an in circuit emulator controlled by an IBM PC or compatible running the Windows operating system The ice MASTER COP8 Debug Module is an integral part of the development engineer s toolbox with applications in de vice evaluation software development and hardware integration The Debug Module can be connected to a target system in place of the microcontroller us ing an optional Target Interface Cable or operated independently in stand alone mode Stand alone mode allows you to emulate hardware and or execute code without a target sys tem provided no interaction with external devices is needed Hardware designers may use the Debug Module to develop and debug their designs includ ing programming their software into COP8 EPROM devices All available features of a given device are accessible
15. Chart page 26 e Options By Jumper Block page 28 e Options By Function page 35 The As Shipped Chart section is a chart of every jumper setting as shipped for each type of De bug Module sold The Options By Jumper Block section contains a description of each jumper block where a jumper block is defined by each column heading in the As Shipped Chart The Options By Function section contains a description of chip functions features in which more than one jumper block are used such as Clock Modes 25 As Shipped Chart pe Debug Emulation Brown J1 J2 J242 J3 J4 J5 EG Jiz ji8 pima p J25 1264 1325 1356 Module Devices Out Clock G7 Option Mode VCC CF CE CL CF CL VPP Clock HALT Misc AD Type Supported Source Emul Emul Emul Source Mode Ref 820CJ 82xCJ DIS N F 840CJ 84xCJ 82x CKO77 OTHER OTHER 880 84x CF 88x N A 888BC 88xBC CKO EMU7 A 88xCF CF 888CF CKO7 CF 88xCL CL CL 888CG 88xCG N A DM7 CKO EMU7 DM G XTAL Open 888EB 88xEB N F DM N A 88x CG 888EG 88xCS CKO 88xEG OTHER OTHER CF 888EK 88xEK A N A 888FH 88xFH 888GD 88xGD CKO EMU7 888GG 88xGG 888GW 88xGW N F Enabled 26
16. IE bit and the GIE bit was set before the instruction it will be restored set after the single step 2 If the instruction to be single stepped sets the GIE bit and there is an interrupt pending the interrupt will be lost 45 Skipped Instruction Interrupt Interaction Warning Problem Due to the implementation of software breakpoints on the Debug Module if an in terrupt occurs when an instruction is about to be skipped and there is a breakpoint at the in struction which will be skipped then the INTR instruction used for the breakpoint will be skipped and the stack may be corrupt If emulation continues out of the interrupt handler the situation will resolve itself However if emulation breaks while still executing the interrupt handler the stack may stay corrupted Solution There are two solutions to this problem 1 Do not put any breakpoints at instructions that can be skipped 2 Ifyou do have breakpoints at any instructions that can be skipped and you ever break while executing an interrupt handler then do not remove any of those breakpoints at instructions that can be skipped If you are not in an interrupt han dler any breakpoints may be removed 46 Chapter 8 Troubleshooting Before starting any fault investigation remove the emulator from the target system and configure it for stand alone operation Make sure that all connectors are in good condition and fully seated Take note of any physical damage to the un
17. T SUI di0 0931 Ob sir dig 0931 OZ ZJf Ee 39 20 C26 DO I OOSC 182 TEST PT 33n SYOLIANNOD 149991 HQ EYL 43410 300W N O r m ID fu o J ZIP 39 1d c17 BUSY D8 2 1 UPP SRC GL__C GH J23 LEN dd 39 5 N d0 0 pa NG 3 El al IS EEE DIP So A 1 20 LEAD 1 LEAD cops 1 28 LEAD 28 LEAD COP8 40 LEAD Cops SOIC Figure 1 DM3 Debug Module 11 DM4 Debug Module r ler olf If Sif Elf did 0931 Ob s r did 0931 OZ LW 13 J3 WO OYL y3H1O JIN ISIW 300H Jas 473 N Fr m D a a U T9LX 9d bp 1d0 r 38 20 28 LEAD 20 LEAD 40 LEAD 28 LEAD GOPBSXX COPRZEX Figure 2 DM4 Debug Module 2 DM5 Debug Module COP8 DEBUG MODULE BREAK RESET aS G N IT a m D I o Mm gt J U U ZD TA gt H N N oo T U j h a u u u FAIL PASS BUSY PLCC Figure 3 DM5 Debug Module
18. able at the Debug Module end The table above specifies the pin assignments for a 25 pin male DB 25 connector on the De bug Module end These assignments are compatible with standard DB 25 to DB 9 inline converters At the host end the mating connector on the cable may be a 25 pin female DB 25 connector or a 9 pin female DB 9 connector Note that in the 9 pin RS 232 C interface pins 2 and 3 are reversed from their normal 25 pin D connector assignments The total length of the cable should not exceed 25 feet Target Interface Cables All Debug Modules One or more target interface cables are shipped with each Debug Mod ule Which cables are shipped depends on which emulation device your Debug Module sup ports The following target interface cables are available 1 20 lead DIP 19 2 28 lead DIP 3 40 lead DIP 4 44 lead PLCC 5 68 lead PLCC Shunt Blocks DM3 Debug Modules There are no shunt blocks on the DM3 Debug Module DM4 and DM5 Debug Modules There are two shunt blocks on the DM4 Debug Module The shunt blocks are labeled COP8Sxx COP87Lx and COP878x and are used only dur ing programming You will be told to insert a shunt into one of the shunt blocks when a de vice to program is selected Jumper Blocks Refer to the Jumper Blocks Chapter for a full description of all jumper blocks PROM Programmer Refer to the PROM Programmer Chapter for information about using the PROM programming ca
19. at all items in your system including Debug Module Host Computer and target be connected to the same outlet Different outlets even though near one another may be connected to different circuits in the building resulting in large potential differences between grounds For a complete description of all hardware components of the Debug Module see the Hard ware Description Chapter 3 Warning The Debug Module is not designed to be hot plugged The emulator base and target system must be turned off when attaching or removing the emulator from the target system Hot plugging may cause CMOS latch up and can void the war ranty Chapter 3 Hardware Description The chapter describes the different types of Debug Module The type of Debug Module can be de termined from the paper label on the corner of the board nearest the Reset Switch If there is no label on the corner and you are not sure which type you have then please see the table at the beginning of Chapter 2 The rest of this chapter is broken into two major sections the first section has a diagram of each type of Debug Module and the other contains a description of the components of the Debug Module board The major sections are 1 Debug Module Diagrams starting on page 11 2 Debug Module Component Description starting on page 14 10 DM3 Debug Module m ot w J R U3HLO COP8 DEBUG MODULE r Izr gif bir SIr ET
20. e Main Window can be moved independently of any child windows Cur rently re sizing the Main Window is always done independently of any child windows Additionally the Main Menu window will never be on top of any of the child windows You can also pick a specific existing window by selecting it from the bottom of the Windows pull down menu 21 Double In general double click left mouse button on a symbol name register name or Click memory location to pop up the Display Alter Expression dialog box which will allow you to view change or browse the value NOTE Currently right clicking in a Browse Window browse data structure does pop up a properties menu showing everything you can do to the selected item e g change modify or browse further if it is a pointer structure or array Save Currently the Save Settings on Exit function saves the preferences the name of Settings the previously loaded program file and the position size and other information for On Exit each window These settings can optionally be restored re established whenever you restart the software based on the Restore Settings at Startup and Reload Code File at Startup settings A detailed list of exactly what settings are saved is displayed in the on line help for the Save Settings on Exit command Host There are several ways to stop emulation if no breakpoint is set or reached during Break emulation 1 Click on t
21. e ripple voltage must be no greater than 50 millivolts peak to peak If the J23 Jumper see the Jumper Block Chapter is set to C and you plan on pro gramming EPROM devices the Debug Module requires that the programming volt age Vpp be supplied through the VPP Post of the terminal block see the PROM Programmer Chapter DM4 and DM5 Debug Modules There is no Terminal Block on the DM4 and DM5 Debug Modules power is supplied via the power jack described below 15 Power Jack DM3 Debug Modules There is no power jack on the DM3 Debug Modules power is supplied via the terminal block described above DM4 and DM5 Debug Modules Power is supplied with a standard 2 5mm x 5 5mm x 9 5mm plug and jack center positive Switchcraft 760 The power supply must provide 5 volts 5 at 1 ampere The ripple voltage must be no greater than 50 millivolts peak to peak Clock Generation and Selection DM3 and DM4 Debug Modules The figure below is a schematic diagram of the clock gen eration and selection circuit used on the DM3 and DM4 Debug Modules Target Target G7 CKO CKI CKO gt c se bu g of Port 100K ohms 74HCU04 Emulation Oscillator Test Point O 470 ohms 74HCU04 Figure 4 DM3 DM4 Clock Generation and Selection Circuit As can be seen from the schematic diagram there are five jumper blocks J1 J2 J3 J24 and J25 involved in the circuit Using these jumper blocks any
22. een encountered will be ignored IDLE and HALT Modes During emulation the status message Emulation Processor Inactive may be displayed This status message indicates that the COP8 microcontroller is not exe cuting instructions Normally this can be due to an extended RESET pulse or the microcon troller is in HALT or IDLE mode If this condition occurs for any other reason turn to the Troubleshooting Chapter If the microcontroller is in HALT or IDLE mode and you execute the host break command by pressing either the Stop button or the ESC key a confirmation box will prompt you with the following message Processor not running do you want to RESET to break emulation A Yes response will reset the microcontroller and emulation will break at the reset address 0 A No or Cancel response will leave the microcontroller in its current state COP880 Single Step Interrupt Interaction SW Fix The host software for the COP880 Debug Module has been modified as of version 3 6 Re vision 11 to correct a problem involving interrupts while single stepping Problem If an interrupt occurs at a breakpoint erratic behavior may result Solution Interrupts are disabled for single steps by clearing the GIE bit just before a single step is performed If GIE was set before the single step it will be restored set after the sin gle step Considerations This solution has two side effects 1 Ifthe instruction to be single stepped clears the G
23. equencer file loading Therefore make sure that the oscillator signal is pres ent using the test point on the Debug Module at OSC TEST PT 47 When running the oscillator from the crystal on the Debug Module there should always be a signal If there is no signal the crystal or the 74HCU04 forming the oscillator may be dam aged When running the oscillator from a target crystal it may be necessary to adjust capacitors C1 and C2 see figure below in your target to ensure proper startup See the data book for your emulation device to determine the proper capacitor values CKI CKO 4 R2 y RI v IH ne Te Figure 10 Crystal Oscillator Schematic Emulation Problems In stand alone mode load and run one of the demo programs that are supplied on the distri bution diskettes If the program runs correctly the problem may not be with the emulator but with the target interface Keep an open mind Even in known good target systems fail ures occur It may even be possible for a real device to work in your target where the De bug Module has trouble This is usually a problem with tolerances not differences If you encounter this please call us so we can determine quickly where the problem lies Carefully consider the application 1 verify that the Debug Module is configured properly 2 look for unexpected resets e g watchdog timers 3 check interrupt routines for proper returns to normal code
24. es or Crystal Oscillator Mode for 888BC 888CG 888EB 888EK 888FH 888GD 888GG 888GW 888HG 888KG 8AC and 8SEx Debug Modules The jumpers are used to configure the clock signals to emulate any Clock Mode Each jumper block used in this circuit is described in detail in the Jumper Blocks Chapter Each Clock Mode and the jumpers used to emulate each Clock Mode are described in detail in the Jumper Block Chapter 17 Break Input All Debug Modules The Break Input signal connector labeled BREAK IN is interfaced via a 74HC type device on the Debug Module The Break Input is pulled up with a 20K ohm pull up resistor When this input is pulled low the current emulation cycle will break The Break Input must remain active LOW for at least one machine cycle 10 clock cycles G0 Pull Down Resistor All Debug Modules If GO is configured as an external interrupt and the Debug Module is in stand alone mode not connected to a target system noise on GO may cause spurious inter rupts For this reason a 47K pull down resistor has been installed on GO Please note this resistor may have some effect on your target system If you need to remove the resistor from the circuit it is labeled R18 and is the closest resistor to the BREAK IN post G1 Pull Up Resistor Many of the devices that the Debug Module emulates require an external pull up resistor on G1 for the WDOUT Watchdog Out signal to function properly when the Debug Module i
25. get oscillator can be up to 10 Mhz N A for DM5 Table 20 External Oscillator Mode Jumper Settings 888BC 888CG 888EB 888EK 888FH 888GD 888GG 888GW 888HG 888KG SAC 8SER Debug Modules For these devices the following table shows which jumper settings to use for the Ex ternal Oscillator Mode J1 J2 J24 J3 J25 MHz DM PORT RC OPT 3 33 TAR PORT RC OPT target 1 Warning The EMU jumper position MUST be left OPEN for these Debug Modules 2 DM5 has a programmable clock frequency set in host software On other Debug Modules this is a limitation of the emulation device 3 TAR setting not available for DM5 4 Target oscillator can be up to 3 33 Mhz N A for DMS Table 19 External Oscillator Mode Jumper Settings 37 8FGR 8SAC 8SGR Debug Modules For these devices the following table shows which jumper settings to use for the Ex ternal Oscillator Mode 12124 J3 J25 MHz DM PORT XTAL 5 TAR PORT XTAL target 1 Warning The EMU jumper position MUST be left OPEN for these Debug Modules 2 DMS has a programmable clock frequency set in host software On other Debug Modules this is a limitation of the emulation device 3 TAR setting not available for DM5 4 Target oscillator can be up to 5 Mhz N A for DMS Table 21 External Oscillator Mode Jumper Settings R C Oscillator Mode In R C Oscillator Mode G7 is
26. h jumpers must be set to CF if 88xCF emulation is desired Both jumpers must be set to CL for 88xCL emulation J21 is used to connect a voltage to the VREF pin of the 888CF emulation microcon troller J22 is used to connect a ground to the AGND pin of the 888CF emulation mi crocontroller These pins must be connected for the Port I ACH functionality of the 888CF microcontroller to operate properly As the table below shows when J21 and J22 are in the CF position VREF and AGND are assumed to be supplied from a tar get system through a Target Interface Cable Device to Emulate 321 122 88xCF CF Target VREF Target AGND 88xCL CL Debug Module VCC Debug Module GND Table 10 CF CL Emulation Jumpers Other Debug Modules The J21 and J22 jumpers are preset at the factory to CF These jumper settings should not be changed DM3 Debug Modules The VPP SRC jumper allows you to supply the Vpp pro gramming voltage for EPROM programming from an external source or to use the 31 On board Vpp Generator Refer to Chapter for more information on EPROM pro gramming Vpp Source 123 On board Vpp Generator G for G enerator External via VPP Post Connector C for C onnector Table 13 VPP SRC Jumper DM4 and DM5 Debug Modules There is no VPP SRC jumper on DM4 and DM5 Debug Modules VPP is always generated on board by the Debug Module Refer to Chapter for mo
27. he Stop toolbar button 2 Select the Stop Esc command in the Emulating window 3 Select the Run Stop command from the Main Menu window 4 Press the Esc key Automatic Configuration If the emulator is powered up when the software is invoked communication be tween the emulator and the software will be established automatically Help Detailed and context sensitive Help is available on line using the Help Key F1 Dynamically When emulating using single steps Step command or slow motion mode Slow Annotated Motion command the right side of the Source Window is used to display a history Code of execution for each instruction executed This history contains the value before execution of the instruction of any address register and Bit used by the instruction In addition if the instruction is an unconditional jump instruction or a conditional jump where the condition is met TRUE the Target Address and an arrow indicat ing direction of program flow will be displayed If the instruction is a conditional jump where the condition is not met FALSE a is displayed 22 Break Default Screen Layout WACOPS MetaLink ICE COP8SGR7 DM Ol x File Configure Run Display lter Break Trace Window Help Res P Res E Res T Go Step From Until Slow Mi 0 xj 15 10 x File Options View File Options 0000 00 INTR AJA 00 0001 00 INTR B C1 0002 00 INTR X 1
28. he Code Memory Window displays memory as hexadecimal bytes and their ASCII Memory equivalent In addition from the Code Memory Window you may fill or copy blocks of memory compare two blocks of memory and search memory for a value or val ues match mismatch 23 Core The Core Register Window is used to display the core architecture registers and bit Register flags Emulating The Emulating Window is displayed when an emulation is started using any run type commands It displays status information about the current emulation cycle Identification The Identification Window describes the properties of your emulator system The information displayed includes such things as hardware firmware and software ver sions numbers memory sizes model numbers and option configurations Such in formation is useful for example when you call for technical support Program The Program Structure Window displays module source line number or source Structure scope information for the loaded program if available RAM The RAM Memory Window displays memory as hexadecimal bytes and their AS Memory CII equivalent In addition from the RAM Memory Window you may fill or copy blocks of memory compare two blocks of memory and search memory for a value or values match mismatch Register The Register SFR Window is used to display the special function registers SFRs SFR Source The Source Window is used to display code memory as assembly level i
29. ipped INTR instruction If the original program code instruction was a multi byte instruction subsequent cycles will be the same as that of an executed NOP When a breakpoint is set on an instruction emulation will break before that instruction executes The two 2 bytes below the stack pointer will be overwritten when a breakpoint is reached because the INTR used for the breakpoint is actually executed Timer operation at breakpoint varies with emulator as follows 880 Debug Modules Upon reaching a breakpoint the timer is shut off shortly after emulation stops When emulation resumes for a Go type emulation the timer is restarted just before emulation in the program code begins 43 888xx and 8Sxx Debug Modules There is no delay in stopping or restarting running timers upon reaching a breakpoint or when emulation resumes 6 HALT Mode To allow clock re synchronization in the COP8 microcontroller it is necessary to program two NOPs immediately after the microcontroller comes out of HALT mode When the multi input wake up interrupt is enabled the first two instructions of the interrupt routine must be NOPs If no interrupt is used then two NOPs must follow the instruction that put the microcontroller into HALT mode 7 IDLE Mode Like HALT mode it is necessary to program two NOPs to allow clock re synchronization upon return from IDLE mode The NOPs are place either at the beginning of the IDLE Timer interrupt routine or follo
30. it Several common problems are covered in this chapter If this isn t enough to get the emulator back into operation contact MetaLink Before Calling Have the system near the phone so that problems may be walked through If the unit needs to be sent in for repair you will also need the following information 1 the emulator s serial number on the bottom of the emulator chassis 2 the software revision level see the Identification Window 3 the address to which MetaLink will ship the repaired unit Power Ensure that there is 5 VDC on the correct pin of one of the target connectors on the Debug Module board Also make sure that the output of the power supply is 5 VDC Communications Failure First check the RS 232 connection Compare the RS 232 cable with the illustration in the Hardware Description Chapter Replace the cable if needed A break out box will facili tate a check on the presence and level of the RS 232 signals on the cable Active signals will be at a nominal 10V and the polarity may be plus or minus depending on the hardware If no activity is seen on Pin 2 Transmit the Host Computer has a fault in its interface card If Pin 2 is active and Pin 3 is inactive not toggling the Debug Module has a fault A persistent fault may indicate that the emulation microcontroller has been damaged For example failure of the oscillator to start properly will result in a communication failure af ter or during s
31. l block insert the ground wire into one of the terminals marked GND the two GND terminals are connected and then tighten 8 the corresponding set screw Insert the 5 volt source into the terminal marked 5V and then tighten the set screw If you are planning on programming COP8 EPROM devices see the PROM Programmer Chapter for a complete description on how to supply the necessary programming voltage NOTE For safety we recommend that all items in your system including Debug Module Host Computer and target be connected to the same outlet Different outlets even though near one another may be connected to different circuits in the building resulting in large potential differences between grounds For a complete description of all hardware components of the Debug Module see the Hard ware Description Chapter 3 Warning The Debug Module is not designed to be hot plugged The emulator base and target system must be turned off when attaching or removing the emulator from the target system Hot plugging may cause CMOS latch up and can void the war ranty DM4 DMS Installation Connect one end of the RS 232 serial cable to a serial communication port on the Host Computer Connect the other end of the RS 232 cable to the Debug Module Connect the power supply to the Debug Module by inserting the power supply s connector into the power receptacle on the Debug Module NOTE For safety we recommend th
32. lock EE A A a Sa A ae A A ARA AA 28 Options By Function gt AR A A TG EGG W 35 Clock Modes ee RA RA RRA AR ARA AA RA RA AA 35 Crystal Oscillator Mode RR EEE RR EE EE w 35 External Oscillator Mode gt Ken WG EEE OR A A EEE EEE 36 R C Oscillator Mode kod bow MR sa er KGW W WoW AER KE R WEG W 38 Chapter 6 PROM Programmer sr KK KK KK KK KK KK KK KK KK KK 6 40 General Information EO AA AR EE EEE EE ARA ee n 40 DM3 EPROM Programming Voltage Vpp Source nnn nnn 41 DM3 External Vpp Source nk n n KK n KK Kn KK Kn 41 DM3 On Board Vpp Generator 41 DM3 On Board Vpp Generator Adjustment 41 DM4 DM5 EPROM Programming Voltage Vpp Source tt 42 DM4 DM5 External Vpp Source gt nnn fe tee ee 1 42 DM4 DM5 On Board Vpp Generator Adjustment 42 Chapter 7 Operational Considerations ttt ttt ttt te 43 Emulation Notes HHHH YKY 43 Static E WK WWW KG EG Ow EA 44 Powers bane 545 SAG ae r l ae ba ES GE G Oe Oe 44 Clock Drivers KA VE eo ee we OE EE ME a ces eS 44 Microcontroller Serial Port 45 IDLE and HALT Modes EE ae a valon 8 d k lay On O al d l eh ont ae vey cee Sih aan ie pene dk ee soy C 45 COP880 Single Step Interrupt Interaction SW Fix tt ste 45 Skipped Instruction Interrupt Interaction Warning 125555255255 46 Chapter 8 Troubleshooting 1755555252 KK KK KK KK KK KK KK KK K6 47 Before
33. m through the Target Interface Cable page This voltage may range anywhere from 2 3VDC to 6 0VDC or 2 5VDC to 6 0VDC depending on the emulation mi 30 J13 J16 CF Emulation J17 J18 CF CL Emulation J21 J22 CF CL Emulation J23 VPP SRC crocontroller Attempting to operate the Debug Module outside the range specified for a particular device will cause unpredictable results When operating the Debug Module with a voltage source less than 4V the maxi mum operating frequency must be reduced per the National Semiconductor specifi cation for that device Attempting to operate the Debug Module above the specified maximum frequency for that device will cause unpredictable results 888CF Debug Module The J13 J16 jumpers are preset at the factory to CF for the 888CF Debug Module These jumper settings should not be changed Other Debug Modules The J13 J16 jumpers are preset at the factory to OTHER for all other Debug Modules These jumper settings should not be changed 888CF Debug Module The J17 and J18 jumpers allow you to configure the 888CF Debug Module for either 88xCF or 88xCL operation Both jumpers should be set to CF for 88xCF emulation or to CL for 88xCL emulation Other Debug Modules The J17 and J18 jumpers are preset at the factory to OTHER These jumper settings should not be changed 888CF Debug Module The J21 and J22 jumpers allow you to emulate the 88xCF and 88xCL parts with the 888CF Debug Module Bot
34. mand is available When using the programmer only one device should be in any of the ZIF sockets at one time Do not insert a device into any of the sockets until prompted to do so by the Host Soft ware and always remove it before exiting the PROM Programmer Dialog Box or the de vice may be damaged 40 DM3 EPROM Programming Voltage Vpp Source You can either supply your own external Vpp source or use the On board Vpp Generator DM3 External Vpp Source In order to use an external source for Vpp use the following procedure 1 Connect the shorting block of the J23 jumper VPP SRC between the center post and the C post C for Power C onnector 2 Connect 13 volts to the terminal block labeled VPP 3 Connect ground to either terminal labeled GND of the 4 position post termi nal block Note that the Vpp voltage for all parts must be 13 volts and it is not regulated by the Debug Module programming hardware The Vpp power source must supply at least 100mA of current at the specified voltage Failure to supply correct and ade quate power to the VPP terminal will result in erratic or possibly destructive pro gramming Note that the rest of the Debug Module is powered from the 5V post on the power terminal block the voltage supplied must be 5V 5 DM3 On Board Vpp Generator In order to use the On Board Vpp Generator connect the shorting block of the J23 jumper VPP SRC between
35. nstructions optionally with HLL source images if available Stack The Stack Window displays memory at the stack as hexadecimal bytes and their AS CII equivalent In addition from the Stack Window you may fill or move blocks of memory compare two blocks of memory and search memory for a value or values match mismatch Status The Status Window displays status information such as the PC address break ad dress real time clock inactive count pass count repetition count emulation status trace status trace read percentage and trace trigger Symbols The Symbols Window displays symbolic information for the loaded program if available Several display formats are available Trace The Trace Window is used to display a trace of the most recent emulation Several display formats are available Note that the Trace Window is available only on those emulator systems that have trace memory Watch The Watch Window is used to display information about watch expressions You can think of watch expressions as peepholes into memory where you specify the starting address symbolically the name of a program variable register or bit or nu merically an expression and where the displayed values are interpreted according to the data type of the expression if available 24 Chapter 5 Jumper Blocks This chapter contains detailed descriptions of Debug Module Jumpers The following describes the general layout of this chapter e As Shipped
36. og Box The device list written to disk will also include any special requirements for programming 14 LED Indicators VCC All Debug Modules The VCC LED indicates that Vcc is being applied to the Debug Module through the power connector VPP DM3 Debug Modules The VPP LED indicates that Vpp is present on the Debug Module This can come from either the VPP post of the terminal block if external Vpr Is being applied or from the On Board Vpp Generator see the PROM Program mer Chapter DM4 and DM5 Debug Modules The VPP LED indicates that Vpp is present on the Debug Module PASS All Debug Modules The PASS LED BUSY LED and FAIL LED indicate the cur BUSY rent status of the EPROM Programmer FAIL PWR DM3 and DM4 Type 1 Debug Modules There is no PWR SUPPLY OVER SUPPLY VOLTAGE LED on these types of Debug Modules OVER VOLTAGE DM4 Type 2 and DM5 Debug Modules When this LED is lit it indicates that Vcc is much greater than is allowed Immediately power down the Debug Module Power Terminal DM3 Debug Modules Power may be supplied through the power receptacle or the 4 Block position post terminal block When using the power receptacle it is supplied using a standard 2 5mm x 5 5mm x 9 5mm plug and jack center positive Switchcraft 760 When using the 4 position post terminal block the minimum wire gauge for all con nections is 24 In either case the power supply must provide 5 volts 5 at I ampere Th
37. on of the microcontroller When enabled the Brown Out feature will be emulated When disabled the Brown Out feature will NOT be emu lated Brown Out Feature BROWN OUT Disabled DIS Enabled EN Table 4 BROWN OUT Jumper Note that the nominal Brown Out voltage for the 820CJ is approximately 2 3 VDC and for the 840CJ is approximately 3 VDC These voltage levels are due to operat ing characteristics of the Debug Module and may differ from final production parts Other Debug Modules There is no BROWN OUT jumper on other Debug Mod ules DM3 and DM4 Debug Modules The Clock Source jumpers allow the clock source CKI to be supplied from either the Debug Module DM or the target system TAR The clock generation circuit is used on the Debug Module to emulate the os cillator circuit of the microcontroller Oscillator Source JI J2 J24 Debug Module DM DM DM Target System TAR TAR TAR Table 5 Clock Source Jumper When the DM setting is selected for J1 J2 and J24 a 10 MHZ crystal is connected to the circuit If J25 is set to XTAL than a fixed frequency of 10 MHz is supplied to the emulation microcontroller If J25 is set to RC OPT then the 10 MHz signal is routed through a divide circuit in the XILINX device to supply a fixed frequency of 5 MHz for COP8SAC and COP8SGR microcontrollers or 3 33 MHz for all other COP8 microcontrollers is supplied to the em
38. pabilities of the Debug Module 20 Chapter 4 Software Guide Overview Features This chapter is an overview of some of the features of the software and a guide to help you understand the layout of the screen Note that context sensitive help is available for every command Windows You can have any number of windows of any type including multiple windows of the same type open at the same time All windows are updated after an emulation cycle or after something changes e g after you explicitly change the value in a register or memory location during Break Condition To cycle through the existing windows CTRL E6 cycle foreword CTRL SHIFT_F6 cycle backward This is the Microsoft Windows convention for cycling through MDI Multi Document Interface child windows The software implementation model most closely resembles an MDI application with the following enhancements 1 The child windows all windows except the Main Window are not con strained to be within be clipped by the Main Window They can be anywhere on the screen For comparison Open several documents in a word processor and move the document windows around 2 You can have as many child windows as you want of a given type open at the same time e g 5 Code Memory windows each viewing the same differ ent overlapping memory addresses 3 If you turn off the Configure Preferences Move Windows with Main option th
39. position post miniature terminal block the yellow LED next to the power connector and the J1 J2 J24 jumber block group If pres ent the 44 Pin PLCC socket is between the SOIC socket and the DIP socket the terminal block is between the RS232 connector and the power switch and the yellow PWR SUPPLY OVER VOLTAGE LED is next to the power connector The following table shows how to determine which Debug Module you have Note that these are not the only differences between the Debug Modules but are all that are needed to distinguish be tween them Debug Module DM3 A A DM5 4 Position Terminal Block Yes No No No 44 Pin PLCC LIF Socket No Yes Yes Yes Yellow LED next to power connector No No Yes Yes J1 J2 J24 Jumper Block Group Yes Yes Yes No If present the jumper block group will be hardwired and will not be selectable Table 1 DM3 DM4 DM5 Determination DM3 Installation Connect one end of the RS 232 serial cable to a serial communication port on the Host Computer Connect the other end of the RS 232 cable to the Debug Module Power may be supplied through the power receptacle or the 4 position post terminal block To use the power receptacle simply connect the power supply to the Debug Module by in serting the power supply s connector into the power receptacle on the Debug Module Alternately when using the 4 position post termina
40. r Mode J1 J2 J24 J3 J25 MHz DM PORT RC OPT 1 2 Frq TAR PORT RC OPT target 1 Warning The EMU jumper position MUST be left OPEN for these Debug Modules 2 The frequency will be 1 2 of the crystal frequency or 1 2 of the programmable clock on the DM5 you must ensure the resulting frequency is legal 3 TAR setting not available for DM5 4 Can be simulated up to maximum frequency allowed for emulation device as described above N A for DM5 Table 23 R C Oscillator Mode Jumper Settings 39 Chapter 6 PROM Programmer General Information The COP8 Debug Module can program the code memory in any of the supported EPROM devices Operation of the programmer hardware is under the control of the Host Software from the PROM Programmer Dialog Box All programming operations use the emulation code memory in the Debug Module Code read from the device will be written into the emulation code memory in the Debug Module and may not match the labels from a previously loaded program By default areas of the emulation memory with no code will be filled with 0x00 hex bytes however you can use the Inititial Code Value control in the Configure Emulator Dialog Box to change the 0x00 hex byte to any other byte value Note that when a byte is programmed into the EPROM it is verified therfore it is not strictly necessary to separately verify the parts after programming although a Verify com
41. re information on EPROM programming J25 The Clock Mode jumper selects the clock mode for the emulation microcontroller Clock Note that other jumper blocks are involved in setting up the Debug Module to sup Mode port Clock Modes Therefore see the Clock Modes description 820CJ 840CJ 880 888CF 888EG 8FGR 8SAC 8SGR Debug Modules Clock Mode 125 Crystal Oscillator XTAL External Oscillator XTAL R C Oscillator RC OPT Table 11 Clock Mode Jumper 888BC 888CG 888EB 888EK 888FH 888GD 888GG 888GW 888HG 888KG 8AC 8SER Debug Modules Clock Mode J25 Crystal Oscillator XTAL External Oscillator RC OPT R C Oscillator RC OPT Table 12 Clock Mode Jumper 32 J26 888GW Debug Module The HALT jumper is located on the 888GW daughter card HALT next to the emulation microcontroller It controls the HALT Enable mask option of the microcontroller HALT J26 Enabled ENABLED Disabled DISABLED Table 14 HALT Jumper Other Debug Modules There is no J26 jumper on other Debug Modules J32 DM3 Debug Modules Misc There is no Mise jumper on DM3 debug Modules DM4 and DM5 Debug Modules 8FGR 8SAC 8SER 8SGR Debug Modules The Misc jumper allows you to emulate the Watchdog option of the microcontroller Watchdog Option 132 Enabled E Disabled D Table
42. s being operated in stand alone mode not connected to a target system For this reason a 47K pull up resistor has been installed on G1 DM3 Debug Modules Please note this resistor may have some effect on your target system If you need to remove the resistor from the circuit it is labeled R29 and is next to the XIL INX chip in the line of resistors between the BREAK IN post and the XILINX chip DM4 and DM5 Debug Modules Please note this resistor may have some effect on your tar get system If you need to remove the resistor from the circuit it is labeled G1 PULLUP and R29 and is next to the XILINX chip RS 232 Interface All Debug Modules The communication link to the Host Computer is based on the serial 18 RS 232 C specification The serial baud rates are established entirely under Host Software control Therefore you do not need to adjust your serial port s baud rate manually Host PC Cable Connector Cable DM Cable Connector Pin Pin Signal James Female Function Direction Male Male Signal DB 25 DB 9 DB 9 DB 25 TxD 2 3 Data to DM gt 3 2 RxD RxD 3 2 Data to Host lt 2 3 TxD RTS 4 7 Reset DM active low 3 7 4 RTS CTS 5 8 ALE to HOST 8 5 CTS Ground 7 5 DC Ground 5 7 Ground DTR 20 4 Handshake gt 4 20 DTR Table 2 DM3 DM4 DM5 RS 232 Interface Connections The cable mates via a 9 pin male DB 9 connector on the c
43. t be aware of any difference since the devices used to emulate are the ac tual microcontrollers Since we need to know what is going on during emulation there are a few constraints placed upon us and a few precautions you can take to prevent problems Emulation Notes The following characteristics apply to all Debug Modules except where noted 1 2 3 4 S The INTR instruction is used to implement software breakpoints There are no hardware breakpoints When emulation starts the program code at all breakpoints will be replaced by an INTR instruction and possibly NOPs to fill out a multi byte instruction If your application code contains INTR instructions they will never be executed The Debug Module behaves as though a breakpoint occurred when emulation encounters an INTR but will display the following message to alert you Unsolicited breakpoint encountered at 0x The program contains a non breakpoint INTR instruction If a breakpoint is set on instruction which could potentially be skipped emulation will break only when that instruction is actually executed Emulation will never break on a skipped instruction In addition when a breakpoint is set on an instruction which could potentially be skipped and that instruction is skipped during emulation the address and data values captured in the trace of execution will not reflect the program code at that address Instead the first cycle will be that of the sk
44. t system Multiple frequency operation is provided via a programmable clock on the DMS and is controllable using the emulator software Table 24 Model 400 Debug Module EPU Differences 51
45. the center post and the G post G for On Board G generator DM3 On Board Vpp Generator Adjustment The On Board Vpp Generator is set at the factory no adjustment is required 41 DM4 DM5 EPROM Programming Voltage Vpp Source The programming voltage Vpp is supplied by the On Board Vpp Generator DM4 DM5 External Vpp Source If the On Board Vpp Generator has become non functional first check the fuse If it is blown replace it and try again If it is still non functional you may supply the re quired 13 volts using the following procedure 1 Remove the fuse 2 Connect 13 volts to the fuse clip on the side closest to the green PASS LED 3 Connect ground to the middle lead labeled GND of the LM2577 in the TO 220 package on the opposite side of the fuse from the 13 volt clip Note that the Vpp voltage for all parts must be 13 volts and it is not regulated by the Debug Module programming hardware The Vpp power source must supply at least 100mA of current at the specified voltage Failure to supply correct and ade quate power to the VPP terminal will result in erratic or possibly destructive pro gramming DMA DM5 On Board Vpp Generator Adjustment The On Board Vpp Generator is set at the factory no adjustment is required 42 Chapter 7 Operational Considerations The ice MASTER COP8 Debug Module is designed to be as close as is possible to an actual device In most cases you will no
46. ulation microcontroller 28 J3 G7 Option When the TAR setting is selected for J1 J2 and J24 the target system must provide either a crystal or clock driver input The maximum frequency is 5 MHz for COP8SAC and COP8SGR microcontrollers or 3 33 MHz for 888BC 888CG 888EB 888EK 888FH 888GD 888GG 888GW 888HG 888KG 8AC and 8SER microcontrollers or 10 MHz for all other microcontrollers Note that in this mode the Target Interface Cable must not exceed 6 inches in length For a complete description of Clock Modes see the Clock Modes description DM5 Debug Modules The J1 J2 and J24 jumpers are hardwired to DM for the DM5 Debug Module This is because the DMS has a programmable clock that can supply any frequency from 390 Hz to 30 MHz note that the operating range for specific de vices is enforced in the software The G7 Option jumper allows you to emulate the G7 CKO option of the target mi crocontroller When emulating the CKO option the Debug Module oscillator is driven out the target G7 pin and G7 is NOT available as an input pin and cannot be used to take the emulation microcontroller out of HALT mode if available When emulating the INPUT HALT bond out option the target G7 pin is routed di rectly to the emulation microcontroller s G7 pin This allows G7 to be used as an in put pin or to take the emulation microcontroller out of HALT mode For a complete description of Clock Modes see the Clock Modes description
47. w the instruction that put the microcontroller into IDLE mode Static Perhaps the most difficult problem anyone who uses MOS devices will face is static You may go for years with no fault traceable to static or you may blow every part you touch The ice MASTER COP8 Debug Module can be as sensitive to static as any other circuit The mi crocontroller devices in the emulators are especially vulnerable since adding extra protec tion would change response characteristics This would be a step away from the real world The built in protections internal to the devices are operative We do still recommend however that you take every precaution regarding static The use of grounding straps static free workstations and a little extra care in handling the emulator and any MOS part can prevent troubles later Power The Debug Module requires 5 VDC 1 0 amperes If you are going to be programming EPROM parts and your Debug Module does not have the on board voltage generator see the PROM Programmer Chapter Clock Drivers Many of the external clock drivers commonly used provide TTL level outputs This can be a problem for not only the Debug Module but your target design as well COP8 microcontrol lers require a CMOS oscillator or clock levels to function reliably 44 Microcontroller Serial Port After breaking emulation all interrupts are disabled A serial port transmit or receive inter rupt which occurs after the breakpoint has b

Download Pdf Manuals

image

Related Search

Related Contents

ASWM Enterprise - Howard Computers  4D Server 2004 Administration  InSight Audit  ユーザガイド - Alliance Laundry Systems    Panas。nーc 取扱説明書 用  Bedienungsanleitung www.kopp.eu  Installation / Troubleshooting Manual  GUIDE D`UTILISATION  AEG 3200 Clothes Dryer User Manual  

Copyright © All rights reserved.
Failed to retrieve file