Home

Z8932102ZEM User`s Manual

image

Contents

1. Minimum Requirements Recommended sireci Level etie edid do sese edi e ie eee Kit Contents a cedar ha iecur Fe Rusa Chapter 2 Set Up and Installation Software Iristallation ette Ere ei eet deus ever Ea A E TEE ER DRE DA dada ZMASM ZDS Installatioft tinc et rre dur n tte an t Ead e ve cera E b DSP ICEBOX GUI Installation sirpana a aaa aa a aaa a eae aaia Program Uninstallation end ih eret ete ep ted eT Pe Ae Hardware Installation Installation Procedufe eet E e t bee Dea resa ent Be e vec ert eds movida EE u to cet m t er Aer Oo dera ao dea ere E Eod b Emulator Operation eee UMO00000 DSP1 198 289321022 User s Manual Table of Contents ZiLOG Chapter Title and Subsections Page Chapter 3 Summary of Menus Commands and Operations Menu NETT 3 1 File M nU bas gees M selva 3 2 Open Session detenido e 3 3 SAVE SESSION Se DIPL Cl 3 3 Download Application uywa mu aan e eme ee ets 3 4 Download DSP RAMO t t amu E 3 5 Download DSP RAM ret er ene die t e t Be E UR EPOR 3 6 Download DSP Code Me
2. iC BERE k E 0 ome a a BERG OX mms CEES 5220 BES OOCC 5500 5544 NEED EBENEN EET BEER s Cmww uwa Seb dsb shah a se ag amp j bg aj ad Gilder bBhL iibi PHR it 48456 ERR Ligi OUS BERE aa maq eC Ce BERN Figure 4 19 The 289321 Registers RAM Bank1 and Z89321 DSP Memory Windows 26 Close Z89321 DSP Memory Z89321 RAM Bank1 and Z89321 Registers windows by clicking on the X button in the upper right hand corner of each window UMO00000 DSP1 198 4 15 289321022 User s Manual Sample Session ZiLOG Tracing Code Using DSP Debug When downloading a hexadecimal file the file size showing in the file downloading dialog box is the size of the memory the downloaded file will occupy not the actual file size 27 Click on View then Debug 289321 Debug 2 amp GP 2 1 1 00 2 1 1 00 4 255 4 8155 1 0 amp 2 1 1 00 2 1 CE 4 2 1 L00P STEP ovER HALT amp P2 1 Z89221 Debug Figure 4 20 Z89321 Debug Dialog Box Notice that the following menu is displayed when the Z89321 Debug
3. mana rimi sid Tumi rRRR eee 0088 WES RENE PEPI CARE PFFF cee AN Ce BEE LL DAI GSS BES HE PORA HEBR xs SEFF PH EPET VEER ERIT TTTT FTTT TITT TI SP Wes warr arrr FTTT TTTT FTTT TITT TTET ETET TITT FTTT zrrr er PTTT rr dox iL Sem des add ah 2 _ lt Figure 4 18 DSP Code Memory Z89321 Registers and Z89321 RAM Bank1 Windows 4 14 UMO00000 DSP1 198 Z8932102ZEM User s Manual ZiLOG Sample Session 25 Click on Tracking then 0 1 The value 0000 the contents of row 00A8 column 0005 is high lighted lerema r Plage rers ay uw on m pen FE Dien Euteinal p faba Peirasus e Boi 15 uen rrrr imer m 313 areri H Errr ema Eem ite rrr ee ml dul ers Brrr 62 EET E sa asa ns Poe ERPE
4. 4 12 Figure 4 17 Tracking Pointer P0 1 in RAM 4 13 Figure 4 18 DSP Code Memory Z89321 Registers and Z89321 RAM Bank1 Windows 4 14 Figure 4 19 The Z89321 Registers RAM Bank1 and Z89321 DSP Memory Windows 4 15 Figure 4 20 Z89321 Debug Dialog Box sse enne 4 16 Figure 4 21 Debug Log Dialog 4 17 Figure 4 22 289321 Debug Window With Jump Input eee 4 18 Figure 4 23 289321 Debug Window After Jump seen eene 4 18 Figure 4 24 289321 Debug Window After RESET eee 4 19 Figure 4 25 Z89321 Debug Window With First Breakpoint Set 4 19 Figure 4 26 Z89321 Debug Window At Breakpoint After GO 4 20 Figure 4 27 289321 Debug Window With Two Breakpoints 4 21 viii UMO00000 DSP1 198 289321022 User s Manual ZiLOG List of Figures Chapter 4 Sample Session Continued Figure 4 28 2889321 Debug Window After GO 4 21 Figure 4 29 2889321 Debug Window With Second Breakpoint Cleared 4 22 Figure 4 30 Z89321 Debug Window With Original Breakpoint Cleared 4 22 Figure 4 31 Z89321 Debug Window After 4 23 Figure 4 32 DSP Log File Sample sss enne nennen nennen entre
5. 289321022 User s Manual ZiLOG Setup and Installation Jumper Locations 49 VDC Q Power LED x o 5 51 TP2 LEDS Z8949320GSE OTP RUN READY Figure 2 2 Option Jumper Locations NOTE Refer to the following tables for information on how to set up these jumpers for your specific emulator model before proceeding to the next installation steps UMO00000 DSP1 198 2 5 289321022 User s Manual Setup and Installation ZiLOG Table 2 1 Jumper Option Settings Jumper Position 1 2 2 3 3 4 4 5 5 6 Description FSO drives the user s target board FSO drives the on board CODEC Reserved FS1 drives the on board CODEC FS1 drives the user s target board 1 2 2 3 Transmit data is connected to the user s target board Transmit data is connected to the on board CODEC 1 2 2 3 Receive data is supplied by the user s target board Receive data is supplied by the on board CODEC Open Closed External Halt is Active External Halt is Not Active Open Closed External data bus is Enabled External data bus is Disabled Open Closed Open Closed Open Closed Open Closed Break logic is Disabled Break logic is Enabled Emulation mode Emulation mode is Disabled Emulation mode is Enabled Normal mode is Enabled Reserved DSP clock s
6. 3 39 Breakpoint Implementation u ul S a waktay a kS AEAEE E Sawa aysa 3 39 EPROM OTP Programmable Devices 3 39 Running Multiple Emulators uu u iere teet ee ec e te rn prie dta 3 40 EvaluationFUnctlors io A akapa usa Sate 3 41 Peripheral Interfaces a qam e aaa 3 42 Initialization of Peripherals L u G nennen ener enn 3 42 External Data eie npe a Rex 3 42 iv UMO00000 DSP1 198 289321022 User s Manual ZiLOG Table of Contents Chapter Title and Subsection Page Chapter 4 Sample Session DSP Emulator Sample Session nas 4 1 Starting the Application rst has ae eie eto tien C edet 4 2 DSP Microcontroller Emulation eene nnne nnne nter nins 4 3 Monitoring Modifying Registers a RAER 4 7 Tracing Code Using DSP Debug 4 16 Window Refres i teense itis eens a eed 4 25 o Mere E kika sqa s 4 25 Chapter 5 Troubleshooting Guide w yy Sa eco n due fn tenda ebd ee era Aaya eh 5 1 Initial Screen Does Not 5 1 Oscillator GontentlOh ua rho ee leere e i
7. 3 26 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations Table 3 1 Debug Display and Input Fields Description Clear Breakpoint Input This field is an input area for deleting a breakpoint To delete a breakpoint type the address in this field or place the cursor on the address then click on the CLEAR BRK button After the button is activated the address continues to be displayed in the field The address is removed from the Breakpoint List field 1 Symbol Address This display area contains the address of the symbol to the right of the divider line Symbol Table This display area contains the list of currently defined symbols The symbol table is loaded only when both of the following conditions are fulfilled 1 A symbol file SYM is loaded in code memory and 2 The DSP Debug window is selected This field is an input area for setting the program counter to the address of a specific line of source code To jump to an address type the address in the field then click on the JUMP button The address continues to be displayed in the field The address and line of source code are displayed in the Trace Buffer field 8 and Code List field 9 fields Step Editing This field is an input area for the number of steps to advance the program counter The default value is 1 The maximum value is 99999 To single step through your code set the value of this field to 1 then cl
8. ZiLOG Totally Logical 289321027 USER S MANUAL UMO00000 DSP1 198 This page intentionally left blank Electrical Safeguards Follow the precautions listed below to avoid permanent damage to the emulator I Always use a grounding strap to prevent damage resulting from electrostatic discharge ESD IL Power Up Precautions If the target application board has its own power remove the U Vc jumper J12 Ensure that all power to the emulator and the target application if any is turned OFF Connect the target pod to the target application if any Power up the emulator then press the RESET button Power up the target application if any Power Down Precautions AR WN When powering down follow this procedure in the precise order shown below 1 Power down the target application board if any 2 Remove the target pod 3 Power down the emulator NOTES 1 Refer to the Precaution List section of the Product Information sheet for additional operating precau tions specific to various devices 2 Do leave the emulator powered up with the RS 232C cable connected to a powered down 3 Before inserting target pod into target application board refer to Chapter 2 to determine appropriate jumper selections and options 1998 by ZiLOG Inc All rights reserved No part of this document may be copied or reproduced in any form or by any means without the prior written consent of ZiLOG Inc The
9. and click on CLEAR BRK to remove the original breakpoint EAR BRK field 289321 Debug SET BRK CLEAR olx 1 0 2 1 2 1 2 1 100 2 1 100 4 255 4 8155 amp GGPl 0 GGP 4 GGP 4 GGP GGP2 1 1 00 1 1 100 1 89221 Debug Figure 4 30 289321 Debug Window With Original Breakpoint Cleared UMO00000 DSP1 198 289321022 User s Manual ZiLOG Sample Session 45 Click on GO to resume execution then HALT to stop execution Execution is halted but tracing continues 289321 Debug Ei SET BRK cP amp GGP2 1 1 0 CLEAR 000 Ea CP 2 1 CLEAR ALL CP A P1 0 0016 CP LABEL 0000 000 LABEL gue eser sme ovER a 289221 Debug Figure 4 31 Z89321 Debug Window After HALT 46 Click on Run then Clear Trace 10 end tracing File View OTP Run FontSize Window Help Trace Code Trace Call Y Animate Clear Trace Y Log Execution Log Options The menu closes File View OTP Run FontSize Window Help UMO00000 DSP1 198 4 23 289321022 User s Manual Sample Session ZiLOG 47 Click on Run then Log the log is stopped Execution Log 1 Execution is deselected and capturing of the data into File View OTP Run FontSize Window Help Trace Code Trace Call Y Animate Clear Trace Log Execution
10. and the options Yes No and Cancel 3 12 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations VIEW MENU File View OTP Configuration Help Registers RAM RAM Bank1 DSP Code Memory DSP External Data Memory Debug Source Output Registers The Registers menu item initiates the display of the Z89321 Registers dialog box That window contains the contents of all internal and external registers RAM pointer registers data registers status registers and flags and stacks 289321 Registers _ ID x r Internal Registers RAM Pointers Flags p 20 0 z 20 1 rr pz c x Y Pi 0 z Pi z sua sp 0000 P2 0 P2 1 Loop Size 256 r External Registers Data Pointers EXTO EXT4 DO 0 0 DO 1 0 1 5_1 5_2 1 0 1 1 1 1 EXTZ EXT6_1 EXT6_2 D2 0 2 2 1 2 EXT3 EXT7 1 EXT7 2 D3 0 53 D3 11 3 0008 Esssz1 Registers l gt EIBB o d o o o o o o Figure 3 12 289321 Registers Dialog Box UMO00000 DSP1 198 3 13 Z8932102ZEM User s Manual Summary of Menus Commands and Operations ZiLOG When the Z89321 Registers window is displayed the following menu bar is displayed File View OTP Font Size Window Help Font Size You can choose from a number of font sizes Point 6 to Point 12 File View OTP FontS
11. In Windows 95 an entry is created in the submenu under Programs The Uninstall facility should be utilized when removing ZMASM ZDS and DSP ICEBOX GUI from your PC to properly restore the Windows operating environment 2 2 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Setup and Installation HARDWARE INSTALLATION Before installing the hardware refer to Figure 2 1 for a view of the emulator Figure 2 2 provides a diagram for connecting the emulator to your PC and power supply NOTE Proper functioning of the emulator depends upon proper installation and running of the GUI software on your PC Installation Procedure This section provides the quick method of installing the hardware utilizing VDC wall adaptor power supply 1 Connect the serial cable to the PC If you are doing in circuit emulation connect the emulator to your target board Set up the oscillator and option jumpers Refer to the Electrical Safeguards page of this manual Plug a9 0 VDC 1 2 Amp Wall Adaptor to the P11 label 9 0V DC on the Z8932102ZEM Set the power switch to ON Qu oA quocp Serial Cable Connection Locate the serial cable Connect the male end to the female connector and the female end to either the COMI 2 connector of your PC UMO00000 DSP1 198 2 3 289321022 User s Manual Setup and Installation ZiLOG Serial Cable Emulator Figure 2 1 Hook Up Diagram UMO00000 DSP1 198
12. eorr Y P1 0 fr z PC SR 2 0 2 1 Loop Size 256 External Registers Data Pointers EXTO EXT4 0 0 80 180 6000 1 5 1 EXTS 2 D1 0 51 D1 1 1 0000 2 EXT6_1 EXT6 2 D2 0 52 2 1 2 1010 EXT3 EXT7 1 EXT 2 D3 0 53 1 3 0008 85321 Registers HE Figure 4 8 Z89321 Registers Dialog Box If the characters are either too small or too large use the Font Size menu to select an appropriate font size NOTES 1 careful when modifying ports or read only registers because the values of these registers are not editable That is they cannot be changed using this screen 2 The values displayed for write only registers may not represent the actual values When the 789321 Registers window is displayed the following menu is displayed File View OTP Font Size Window Help UMO00000 DSP1 198 4 7 289321022 User s Manual Sample Session ZiLOG 13 Click on View then RAM Bank0O The Z89321 RAM BankO0 window is displayed 289321 RAM BankO Tracked Address OOFF Data FFFF 000 001 002 003 005 006 007 0 1 2 3 4 5 6 Figure 4 9 289321 RAM Bank0 Window The following menu bar is displayed File View OTP Edit Tracking Font Size Window Help T UMO00000 DSP1 198 Z8932102ZEM User s Manual ZiLOG Sample Session 14 Click on Edit
13. then Fill The Memory Fill dialog box is displayed Memory Fill Start Address End Address 00 Fill Value 0000 Radix Hex C Decimal Cancel Buc Figure 4 10 Memory Fill Dialog Box 15 Type 0020 inthe Start Address field then 0000 inthe Fill Value field and click on OK The Z89321 RAM BankO window updates to reflect the new memory contents 289321 olx Tracked Address 0000 0100 000 001 002 003 004 005 006 007 0 1 2 3 4 5 6 7 0000 0008 0010 0018 0020 0028 0030 0038 from 0020 to 00FF filled with string 0000 Figure 4 11 Z89321 RAM BankO Dialog Box With Memory Block 0020 00FF Zeroed UMO00000 DSP1 198 4 9 289321022 User s Manual Sample Session ZiLOG 16 Click on the content of RAM BanKO then right click using your two button mouse The following items are made available e Clear All Fill e Tracking Absolute Address Download DSP RAMO Upload DSP RAMO Selection of any of these items results in the display of the corresponding Edit or Tracking menu items 17 Select Clear 11 then With 0000 The Clear All Memory window is displayed Clear All Memory x Clear All RAM with 0000 Cancel Figure 4 12 Clear All Memory Window 18 Click on OK The Z89321 RAM BankO window updates to reflect the new memory contents 289321 RAM BankO Tracked Address 0000 Data 0
14. 0018 0000 000 0018 LABEL 0019 Es EXT7 CP A BBP1 0 CP A B8P2 1 CP A Pl 0 CP A P2 1 CP LABEL A P1 0 sub att CP A P2 1 CP 4 355 A 5155 89321 Debug Figure 4 27 Z89321 Debug Window With Two Breakpoints 42 Click on RESET to return to the beginning of the code then click on GO to begin execution The program stops at addre ss the first breakpoint 289321 Debug 000 SET BRK 6013 0015 Es ADD 1 0 CLEAR 0018 ADD 2 1 M curam ALL 0010 amp GPl 0 STEP ovzR 69321 Debug 0011 0012 0012 0014 0015 0016 0017 0018 0019 CP LABEL amp P2 1 amp 55 amp 155 4 Q GP1 0 2 1 1 0 2 1 amp A GGPl 0 Figure 4 28 2889321 Debug Window After GO UMO00000 DSP1 198 4 21 289321022 User s Manual Sample Session 43 Click on CL ZiLOG EAR BRK to remove the breakpoint at line 0018h The breakpoint list window shows one breakpoint at line 000F 289321 Debug lolx 4 P1 0 amp P2 1 amp 55 amp 155 amp GGPl 0 amp GGP2 1 amp P1 0 JUMP RESET 2 1 A EXT OVER HALT 1 0 9321 Debug Figure 4 29 2889321 Debug Window With Second Breakpoint Cleared 44 Click on RESET to return to the beginning of the code then put your cursor in the CL and type 000
15. 1 Device Control 2 Device Control 3 Device Control 4 Negative Acknowledge Synchronous Idle End Of Block Cancel End Of Medium Substitute Escape File Separator Group Separator Record Separator Unit Separator Space Exclamation Point Quotation Mark Number Sign Dollar Sign Percent Sign Ampersand Apostrophe UMO00000 DSP1 198 ZiLOG Table 5 1 ASCII Character Set Continued Graphic Decimal Hexidecimal 289321022 User s Manual Introduction Comments Opening Left Parenthesis Closing Right Parenthesis Asterisk Plus Comma Hyphen Minus Period Slant Zero One Two Three Four Five Six Seven Eight Nine Colon Semicolon Less Than Equals Greater Than UMOO0000 DSP1 198 Question Mark 289321022 User s Manual Introduction ZiLOG Table 5 1 ASCII Character Set Continued Graphic Decimal Hexidecimal Comments Commercial At Uppercase A Uppercase B Uppercase C Uppercase D Uppercase E Uppercase F Uppercase G mim oOo a we gt Uppercase H Uppercase Uppercase J Uppercase K Uppercase L Uppercase M Uppercase N Uppercase 0 Uppercase P U
16. 55 4 155 4 P1 0 4 GGP 1 L00P BGP 1 4 P2 1 LOOP 4 P2 1 Figure 3 28 Z89321 Debug Dialog Box Summary of Menus Commands and Operations The Z89321 Debug window enables you to view the disassembled code set break points trace through the code and perform other debug operations UMO00000 DSP1 198 289321027 User s Manual Summary of Menus Commands and Operations ZiLOG Display and Input Fields 289321 Debug olx gt 0001 ADD 1 0 CLEAR sexi 5 CLEAR ALL GPZ 1 amp 2 1 1 00 4 P2 1 L00P amp 55 amp 155 a 3Pl 0 2 IFLOOP 4 G P2 1 4 a 3P2 4 a 3P2 STEP 7 OVER 289221 Debug Figure 3 29 Z89321 Debug Fields The Z89321 Debug dialog box contains the several fields which are numbered for reference in the preceding figure Table 3 1 Debug Display and Input Fields Description 1 Breakpoint List This display area contains a list of all addresses currently defined as breakpoints 2 Set Breakpoint Input This field is an input area for setting a breakpoint To set a new breakpoint type the address in this field or click on a line of code inthe Code List field field 9 then click on the SET BRK button After the button is activated the address continues to be displayed in the field The address then appears in the Breakpoint List field 1
17. Commands and Operations Run File View OTP Run FontSize Window Help Trace Code Trace Call Animate Clear Trace Log Execution Log Options Trace Code Provides a line by line trace capability for tracing all instructions while running the Debug program When Trace Code 15 selected Animate is also automatically selected and execution is running See Chapter 4 Sample Session for a sample of tracing activities Trace Call Provides the capability to trace only subroutine calls while running the Debug program Traced code is displayed in the Code List field field 9 of the Z89321 Debug window When the STEP OVER button is activated and the current instruction is a CALL instruction subsequent code is executed in real time until the program returns from the subroutine When Trace Call is selected Animate is also automatically selected and execution is simulated Animate Animation is a mode where the user can simulate single step execution through the code A GO command starts execution The address and instruction of the current and last 99 executed lines of code are displayed in Trace Buffer field field 8 and the Trace Buffer field field 9 of the 789321 Debug window NOTE When Animation is activated execution is not realtime Single step execution is emulated To execute code in real time the Animation feature must be disabled Clear Trace Clears the contents of the Trace field and ends tra
18. Intel hex and disassembly The entire contents of the bank are stored when the Save 11 button is activated A portion of the contents is stored when numbers are entered in the Start Address and End Address fields and the Save button is activated File Name Start Address End Address Format Binary C Intel Hex C Disassembly c dsice_c3 12b Directories Save Figure 3 8 Save DSP RAMO Dialog Box UMO00000 DSP1 198 3 9 289321027 User s Manual Summary of Menus Commands and Operations ZiLOG Upload DSP RAM1 The Upload DSP RAM1 menu item enables the contents of memory bank to be saved in an object file Three formats are available for storing the data binary Intel hex and disassembly The entire contents of the bank are stored when the Save 11 button is activated A portion of the contents is stored when numbers are entered in the Start Address and End Address fields and the Save button is activated File Name Start Address End Address Format Binary C Intel Hex C Disassembly c dsice_c3 12b Directories Save Save All Cancel 1 Figure 3 9 Save DSP RAM1 Dialog 3 10 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations Upload DSP Code Memory The Upload DSP Code Memory menu item enables the contents of code memory to be saved in an object file Three formats are available for storing th
19. Microsoft Windows environment OUT OF SYNCHRONIZATION WITH THE EMULATOR MESSAGE This message appears whenever communication between the emulator and the PC is interrupted 1 Ensure that the power cable is connected 2 Ensure that the RS 232 cable is connected 3 Change the baud rate setting the default value is 19200 A lower setting usually improves communica tions reliability 4 The Emulator hardware RESET button was pressed while the GUI was running There are three responses to the message Abort Quits the GUI altogether Retry Resets the GUI by reinitializing You are returned to the initial screen with the ZiLOG logo IgnoreAttempts to reestablish communication between the GUI and emulator without reinitializing 5 2 UMO00000 DSP1 198 Z8932102ZEM USER S MANUAL APPENDIX A ZiLOG Totally Logical ACCESSING THE ZBBS INTERNET BULLETIN BOARD INFORMATION The ZiLOG Bulletin Board Service ZBBS currently provides basic information on ZiLOG products and includes a ROM CODE upload area In addition the ZBBS provides valuable information on items of interest such as ZiLOG specialty software and documentation How to Access the ZBBS The ZBBS can be reached by dialing 1 408 558 8890 The ZBBS supports speeds up to 28 8K Baud with connections 8 N 1 8 bits No parity 1 stop bit We recommend that you use an ANSI BBS terminal emula tion setup To preview information or download files follow the on
20. Number Enter the exact serial number in the input field Specify the format of the number as either hexadecimal or decimal If a decimal number is input the number is converted to hexadecimal for storage in memory This field is not available when Device Serialization is set to None Address Enter a four digit hexadecimal number to be the address where the serial number is to be stored in memory This field is not available when Device Serialization is set to None CONFIGURATION At start up the user selects the appropriate ICEBOX entry When the Configuration dialog box is shown on the screen you can choose the processor and the ROM size you want to emulate The code file you download to Code Memory is limited to the ROM size selected Selected ports automatically reference port availability in the selected processor Other information about the processor such as the number of ports and extended register banks can be observed but cannot be altered Click the OK or CANCEL button to confirm or cancel the configuration NOTE modify the configuration you must first close all open windows the Configuration command then reappears in the Main Menu When the Configuration menu item is selected the Configuration dialog box is displayed 3 36 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations Configuration F ROM Size C 16K 32K 64K Actual ROM Size 4K Mi
21. The DSP GUI provides the inter face screens that are customized for use with the Z8932102ZEM emulator ZMASM ZDS Installation If you are installing the ZiLOG Macro Cross Assembler ZMASM or ZiLOG Developer Studio ZDS run the installation program from the diskette before installing the GUI diskette You may choose to use another assembler but the sample session assumes the ZiLOG assembler has been installed ZDS is available only for the Windows 95 environment Under Windows 95 a choice is offered to the user to install either ZDS that includes ZMASM or to install ZMASM only NOTES 1 The ZMASM ZDS is a licensed product it is not sold Before opening the envelope containing the software carefully read the Software License and Limited Warranty Agreement 2 The installation procedure can be run before creating the installation directory 3 To ensure that you receive proper notification of updates to this product please fill out and return the enclosed ZiLOG Registration Card UMOO00000 DSP1 198 2 1 289321022 User s Manual Setup and Installation ZiLOG To install ZMASM ZDS perform the following steps 1 Select the Run command from the File menu under Program Manager Windows 3 1 or under the Start button Windows 95 2 Insert the ZMASM 2 10 w ZDS 1 00 Disk 1 into drive A or drive B if appropriate 3 Type a setup and press ENTER Type b setup if drive B is used A dialog box prompts you for the
22. User s Manual ZiLOG Summary of Menus Commands and Operations Command Status This field contains a message display area and a progress bar that is activated when one of the OTP operations are performed Device Serialization A user specified serial number can be programmed into the OTP device The serial number can be changed at any time before it is programmed into a device The characteristics of the serial number are specified in the Device Serialization section of the OTP window Method Three methods of creating a serial number are available sequential pseudorandom or none Sequential Mode The serial number increments by one after each device is programmed Pseudorandom Mode The serial number is generated according to the following algorithm r i 1 a r i b mod 2 N where r i 1 is the new serial number r i is the last serial number a 1909 o ll 221571 N number of bits in the serial number Example Entering 1000 in the Address box selecting 4 Bytes as the Serial Number Size and entering 12345678 in the Serial Number box outputs to the screen as follows 1000 12 1001 34 UMO00000 DSP1 198 3 35 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG Serial Number Size The Serial Number Size field specifies length in number of bytes the serial number occupies in memory This field is not available when Device Serialization is set to None Serial
23. program entry ROM Size The Z89321 emulator features selectable ROM sizing Up to 64K of code memory is available for program development on the emulator Then during a later stage of project development the user can shrink the program to fit in to the 4K of code memory on the chip Breakpoint Implementation The emulator bases its breakpoint facility completely on addresses rather than on inserting special Trap instructions into the program which means you can set breakpoints in RAM on your target board The emulator uses static RAM for each cycle emitted by the ICE chip during code execution to implement the breakpoint function in hardware LED Operation Table 2 2 LED Assignments Indication Description Power is ON Power is OFF Communicating in Bisync Mode and waiting for command Communicating in ASCII Mode or executing Bisync command Emulator is self testing Running user code Not running user code Programming OTP Not programming OTP 2 8 UMO00000 DSP1 198 Z8932102ZEM USER S MANUAL ZiLOG CHAPTER 3 SUMMARY OF MENUS Totally Logical COMMANDS AND OPERATIONS MAIN MENU File View OTP Configuration Help The Main Menu window of the emulator graphical user interface GUD is displayed after the GUI program is started The following menu items can be accessed from this Main Menu File View Configuration Help Each of these items along with all win
24. register PO 1 289321 RAM x Tracked Address 0000 Data 0001 000 001 002 003 004 005 006 007 0 1 2 3 t 5 0008 0010 0018 0020 0028 0020 0028 0030 memory address 9 Figure 3 22 Tracking Pointer Register 0 1 Pointer Register P1 1 You can track to the contents of pointer register P1 1 289321 RAM Tracked Address OOFF Data FFFF 000 001 002 003 004 005 006 007 0 1 2 3 4 5 46 0060 Doce DODO 0008 OOEO 00 8 00 00 8 0000 0000 0000 0000 4000 0000 0110 0100 0000 0000 0000 0000 0000 0018 0000 0004 0000 0010 0000 0000 0010 2000 0040 0000 0000 0000 0000 0000 FFFF FFFF FFF FFFF FFFF FFFF FFFF FDFF FFFB FDFF FF7F FFFF FFFF FFFF FFFF FFFF 7FFF BFE FFSF FFFF FFFF FFFF FF7F F77F FFFF FFFF memory address ff Figure 3 23 Tracking Pointer Register P1 1 UMO00000 DSP1 198 3 21 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG Pointer Register P2 1 You can track to the contents of pointer register P2 1 289321 RAM Bank Tracked Address OOFF Data FFFF 000 001 002 003 004 005 006 007 0 1 2 3 4 5 6 7 ooco 00C8 0000 0008 00 0 00 8 00 00 acking P2 1 memory address ff Figure 3 24 Tracking Pointer Register P2 1 When you right click on your two button mouse the following it
25. s Manual Introduction ZiLOG GUI SUPPORTED COMPILER ASSEMBLER FORMATS The Emulator GUI supports object binary or Intel hex code files produced by the ZiLOG Macro Cross Assembler ZMASM Production Languages Corporation PLC assembler 2500AD and other third party development tool companies HARDWARE SPECIFICATIONS Operating Conditions Operating Temperature 20 C 10 C Emulation Speed 1 MHz Internal Clock Minimum 20 MHz Internal Clock Maximum Operating Humidity 10 90 RH Noncondensing Dimensions 0 5 in Height x 4 875 in Width x 7 125 in Length Serial Interface RS 232C 9600 19200 Default 28800 or 57600 Baud Rates Emulation Memory Maximum 64K Words Number of Breakpoints Maximum 256 1 Production Languages Corporation PLC may be reached by telephone at 817 367 6030 or online at info plcorp com 1 2 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Introduction HOST COMPUTER Minimum Requirements IBM PC or 100 percent compatible 486 Based Machine 33 MHz 4 MB RAM VGA Video Adapter Hard Disk Drive 3 0 MB free space 3 5 inch High Density HD Floppy Disk Drive RS 232 COM Port Mouse or Pointing Device Microsoft Windows 3 1 Recommended The following changes to the Minimum Requirements are recommended for increased performance 486 or Pentium Based Machine 66 MHz or Faster 8 MB of RAM or More SVGA Video Adapter Color Monitor Printer Microsof
26. screen instructions The latest production released version of the DSP GUI software can be downloaded from this site ZILOG ON THE INTERNET ZiLOG has a Home Page on the Internet The Home Page address is http www zilog com The ZiLOG Home Page includes valuable information about hardware and software development tools The latest production released version of the DSP GUI software can be downloaded from this site UMOO00000 DSP1 198 A 1 This page intentionally left blank 289321022 USER S MANUAL APPENDIX B ZiLOG Totally Logical EMULATOR SCHEMATIC The next page contains the schematic for Z8932101ZEM board UMOO0000 DSP1 198 B 1 This page intentionally left blank This is a dummy page for Z8932102ZEM schematic 289321022 USER S MANUAL APPENDIX C ZiLOG Totally Logical ASCII CHARACTER SET ASCII CHARACTER SET Table 5 1 ASCII Character Set Graphic Decimal Hexidecimal Comments Null Start Of Heading Start Of Text End Of Text End Or Transmission Enquiry Acknowledge Bell Backspace Horizontal Tabulation Line Feed Vertical Tabulation Form Feed Carriage Return Shift Out Shift In UMO00000 DSP1 198 C 1 289321022 User s Manual Introduction Table 5 1 ASCII Character Set Continued Graphic Decimal Hexidecimal ZiLOG Comments Data Link Escape Device Control
27. 0 C 19200 57600 cM C 28800 Figure 4 1 ZiLOG ICEBOX Connect Dialog Box UMO00000 DSP1 198 289321022 User s Manual ZiLOG Sample Session 3 Select the Z8932102ZEM ICEBOX the correct COM port and the appropriate baud rate for the commu nication to the PC then click on the Connect button and wait for the initialization procedure to complete The Configuration dialog box is displayed Configuration LX ROM Size C 16K 32K 64K Actual ROM Size 4K Microcontroller 288321 371 M Cancel 789321027 89371 Please see OTPPROG TXT for info Figure 4 2 Configuration Dialog Box Changes to the emulator COM port and baud rate are saved and become the new default the next time the icon is activated If the communication attempt between the PC and the emulator fails check the connection or reset the emulator Refer to Chapter 5 Troubleshooting Guide DSP MICROCONTROLLER EMULATION 4 Inthe MicroController field see Figure 4 2 select 289321 371 then click on the 64K ROM Size option button if it is not already selected see Figure Figure 4 3 and click on the OK button or press the ENTER Key to accept the configuration The Main Menu is displayed File View OTP Configuration Help UMO00000 DSP1 198 4 3 289321022 User s Manual Sample Session ZiLOG Configuration Lx ROM Size C 16K C 32K Actual ROM
28. 000 000 001 002 003 004 005 005 007 0 1 2 3 4 5 5 7 0000 0005 0010 0015 0020 Wis os ooa Figure 4 15 RAM Bank1 With Value 00ADH At Location 09H 22 Inthe P0 1 field of the RAM Pointer section of the Z89321 Registers window type 9 289321 Registers olx r Internal Registers RAM Pointers Flags P Po 0 rr 1 os T P10 rr visi rr 7 0000 2 0 2 1 Loop Size 256 External Registers Data Pointers Errr EXT4 sooo DO 0 80 DO 1 0 rz 01 0 1 71 1 21 2 rz EXT5 1 0000 EXT6 2 02 0 2 02 1 2 EXT rz EXT 1 0000 EXT 2 0 2 03 1 3 5 l oooo 5 2 289221 Registers Figure 4 16 Set Pointer P0 1 4120 000000 0 1198 Z8932102ZEM User s Manual ZiLOG Sample Session 23 Click on 789321 RAM Bank window and Tracking and Pointer Register P0 1 The cursor highlights the memory location at row 0008 column 001 and the following message is displayed at the bottom of the window Tracking P0 1 memory address 59 289321 Registers Internal Registers RAM Pointers Flags P 0 0 rr 20 1 09 Y pio rr Pri r 1E SR 2 0 P2 1 Loop Size 256 External Registers Da
29. 000 000 001 002 003 004 005 006 007 0 1 2 3 4 5 6 Figure 4 13 Z89321 RAM Dialog Box With Zeroed Registers 4 10 UMO00000 DSP1 198 Z8932102ZEM User s Manual ZiLOG Sample Session 19 Close the 789321 RAM BankO dialog box The Z89321 Registers window remains displayed The following menu bar is displayed File View OTP Font Size Window Help 20 Click on View then DSP RAM Bankl The Z89321 RAM Bank window is displayed 289321 Registers nl x r Internal Registers RAM Pointers Flags P po 0 rr 20 1 x Y P1 0 Pl l D sef PC SR 2 0 2 1 Loop Size 256 External Registers Data Pointers Stack EXTO rrr EXT4 DO 0180 0 1 0 EXTL rrr EXTS 1 5 Errr 1 0 1 D1 1 1 EXT2 rz EXT6 1 EXT6 2 rrr 2 0 2 D2 1 2 EXT2 rz EXT 1 2 0 2 02 10 2 9321 Registers 289321 RAM Bankl Tracked Address 0009 Data 0004 000 001 002 003 004 005 005 007 0 1 2 3 4 5 5 7 Figure 4 14 289321 Registers and 289321 RAM Bank1 Windows The following menu bar is displayed File View OTP Edit Tracking Font Size Window Help UMO00000 DSP1 198 4 11 Z8932102ZEM User s Manual Sample Session ZiLOG 21 Type 00AD into the memory location highlighted which is location row 0008 column 001 289321 RAM olx Tracked Address 000A Data 2
30. 008 Telephone 408 558 8500 FAX 408 558 8300 Internet http www zilog com Z8932102ZEM USER S MANUAL ZiLOG Totally Logical PREFACE ABOUT THIS MANUAL We recommend that you read and understand everything in this manual before setting up and using the product However we recognize that users have different styles of learning Therefore we have designed this manual to be used either as a how to procedural manual or a reference guide to important data The following conventions have been adopted to provide clarity and ease of use Courier Font For Executables Commands variables icon names entry field names selection buttons code examples and other executable items are distinguished by the use of the Courier font Where the use of the font is not possible like in the Index the name of the entity is capitalized For example a procedure may contain an instruction which appears as Click on File However an Index entry would appear as FILE e Grouping of Actions Within A Procedure Step Actions in a procedure step are all performed on the same window or dialog box Actions performed on different windows or dialog boxes appear in separate steps Sequencing Words Within A Procedure Step When an item in a procedure contains a series of actions the second action is preceded by the word and the third and subsequent actions are preceded by the word and For example Click on View then Memory and 28 C
31. 89321 Debug Figure 4 25 289321 Debug Window With First Breakpoint Set UMO00000 DSP1 198 4 19 289321022 User s Manual Sample Session ZiLOG 39 Click on Run then Log Execution to enable capturing the data log file that was specified in the path C DSPICE_C3 12B DSP 1log 40 Click on GO to resume execution 289321 Debug 000 poor 0009 ADD A P2 1 L00P CLEAR CLEAR ALL ADD 2 1 ADD A P2 1 LOOP ADD A P2 1 0000 LABEL ADD 1 0 0018 CP LABEL ADD A P2 1 Eee SUB LABE SUB A EXT7 OOOF SUB LABEL SUB A P1 0 SUB A P2 1 SUB A 55 000 SUB A 155 8 zum SUB 1 0 SUB A BBP2 1 STEP OVER 89321 Debug Figure 4 26 Z89321 Debug Window At Breakpoint After GO The mouse cursor is changed to an hourglass shape The only action allowed after a GO is HALT If no breakpoints are set click on the HALT button to stop execution If the application inadvertently enters STOP mode the way to halt the emulator execution is by doing a Stop Mode Recovery as defined by the user program You may also reset the application using the RESET button on the emulator UMO00000 DSP1 198 ZiLOG Z8932102ZEM User s Manual Sample Session 4 Place your cursor in the SET BRK field then change the value to 0018 and click on SET BRK A second breakpoint is set at address 0018h 289321 Debug
32. 89321 RAM BankO Tracked Address 002 003 000 001 ooco Doce DODO 0008 OOEO DOES 00 00 8 4000 0010 0004 0000 0000 0008 0010 0004 0008 0400 0000 0800 0004 0000 FFFF FFFF FFFD 7FFF FFFF FFDF FFFF FFFF FFEF FFF FDFF FFBF PUFF FFFY FFFF 0000 0000 0000 FFFF FFFF FFFF FFFF Data 0000 0000 0000 FFFF FFFE FFFF FFFF memory address ff 006 007 0 1 2 3 4 5 6 Pile E Figure 3 19 Tracking Pointer Register P1 0 Pointer Register P2 0 You can track to the contents of pointer register P2 0 289321 RAM BankO Tracked Address 002 003 000 001 Doce DODO 0008 00 0 00 8 00 00 4000 0010 0004 0000 0000 0008 0010 0004 0008 0400 0000 0800 0004 0000 FFFF FFFF FFFD 7FFF FFFF FFDF FFFF FFFF FFEF FFF FDFF FFBF F FF FFFF FFFF FFFF DOFF 004 0000 0000 0000 FFFF FFFF FFFF FFFF Data FFFF 005 0000 0000 0000 FFFF FFFE FFFF FFFF memory address sff 006 007 0 1 2 43 4 5 6 Figure 3 20 Tracking Pointer Register P2 0 When you right click on your two button mouse the following items are displayed Clear Fill e Tracking Absolute Address Download DSP RAMO Upload DSP RAMO UMO00000 DSP1 198 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG RAM Bank1 The RAM Bank1 menu item activates 789321 R
33. AM Bank window and enables the viewing and editing of the contents of internal data bank1 289321 RAM Bank1 BI x Tracked Address 0027 Data FFFF 000 001 002 003 004 005 006 007 0 1 2 3 4 5 6 7 0000 0008 0010 0018 0020 0028 0020 0003 1012 1402 OOAF 3002 1002 0004 0001 0000 0000 0000 0000 0001 0400 0000 0000 0000 0000 0000 0000 0004 0000 0000 0000 0000 0000 FFFF FBB EFFF FDFF FFFF FFFF BUFF FSDF EF FF F FFFF FFFF FFFF FFFF FFF FFBF FFFF FFFF FFFF FFDF Figure 3 21 Z89321 RAM Bank1 Window When the RAM Bank dialog box is displayed the following menu bar is displayed File View OTP Edit Tracking Font Size Window Help Tracking Selecting Tracking from the menu displays the Absolute Address Pointer Register 1 Pointer Register 1 1 Pointer Register P2 1 menu items File View OTP Edit Tracking FontSize Window Help _ Absolute Address Pointer Register P0 1 Pointer Register P1 1 Pointer Register P2 1 Absolute Address You can track to a register by its absolute address by entering the absolute address value in the dialog box that appears when Absolute Address is selected from the Tracking menu see Figure 3 17 T UMO00000 DSP1 198 Z8932102ZEM User s Manual ZiLOG Summary of Menus Commands and Operations Pointer Register P0 1 You can track to the contents of pointer
34. BINARY Address Format OK WORD BYTE Cancel Figure 3 6 Download To DSP Code Memory Dialog Box UMO00000 DSP1 198 3 7 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG Download DSP External Data Memory The Download to DSP External Data Memory menu item enables you to download Intel hexadecimal hex or binary format code to External Data Memory The Address Format section of the Download To External Data Memory window designates the format of the contents of the file being downloaded Memory can also be padded with FFFFh or 0000h Download To External Data Memory Eg Path dsice_d3 12b Files Directories Extensions Memory Pad With HEX C 0000 HEX File Format NOTHING INTEL HEX BINARY Address Format OK WORD BYTE Cancel Figure 3 7 Download To External Data Memory Dialog Box Load Symbol The Load Symbol menu item enables the selection of a symbol during debugging The value of corresponding labels and constants in your program code is displayed This item is available only when the Z89321 Debug window is displayed 3 8 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations Upload DSP RAMO The Upload DSP RAMO menu item enables the contents of memory to be saved in an object file Three formats are available for storing the data binary
35. Debug Figure 3 36 Multiple Emulator Operation Using 2 COM Ports 3 40 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations EVALUATION FUNCTIONS The Z8932102ZEM combines the advantages of an in circuit emulator and evaluator in one device As an in circuit emulator it can trace user programs using an emulation pod to the target board As an evaluator it has extensive on board periphery for quickly implementing and prototyping typical DSP systems The Z8932102ZEM has the following peripheral devices on board 64K External Data Memory 8 LEDs for Indicating Program Status 8 Buttons for Data Input Analog Interface Consisting of 1 Input Connector INO and 2 Output Connectors Linear Output and Speaker Output Buffer Amplifier These peripherals are mapped to the External device address map as follows Table 3 2 External Device Address Map Designation Function SRAM Address Write Only SRAM Data Read Write LEDs Write Only Buttons Read Only Additional External Port Read Write External Ports Write Only EXT3 6 do not access on board peripherals They are decoded by the Altera chip for accessing user peripherals UMO00000 DSP1 198 3 41 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG PERIPHERAL INTERFACES Initialization of Peripherals The periphery is shown on the schematic in Appendix B The follo
36. Log Options 48 Use any text editor like WordPad or Word then open your log file at the path NDSPICI E C3 12BNDSP 10g to view the trace log Bl Dsp log Notepad Edit Search Help Figure 4 32 DSP Log File Sample UMO00000 DSP1 198 289321022 User s Manual ZiLOG Sample Session Window Refresh 49 Double click on the caption bar of the DSP Registers dialog box to refresh it and check the value of the registers You may also use the Window menu to activate a new window Save and Quit 50 Click on File then Save Session to save the current setting in a session file ZILOG ICEBOX x Save the Current Session Figure 4 33 Save Session Dialog Box 51 You can reload the last session by using the Open Session command on the File menu OPEN SESSION x File Name Path c dsice_c3 12b Files Directories Extensions L OK PRJ M oO Figure 4 34 Open Session Dialog Box 52 Quit the application by clicking on File then Exit or ALT F4 to end this sample session UMO00000 DSP1 198 4 25 This page intentionally left blank Z8932102ZEM USER S MANUAL CHAPTER 5 ZiLOG Totally Logical TROUBLESHOOTING GUIDE INTRODUCTION Before contacting your ZiLOG representative or submitting a Problem Report please follow these simple steps Also check the Precautions and Limitations sections in the Product Information document incl
37. P1 198 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG Download Application The Download Application menu item enables you to download an application object file to the Code Memory of the ICEBOX Type the path and name or use the Browse button to locate and select your file Two object formats are supported for output from ZM ASM or the PLC compiler In addition memory can be cleared prior to downloading Download Application x Application Object Filename C DSICE_C3 12B Browse r Options Clear program memory before downloading r Object Format Zilog Object Module Format C PLC Object Module Format Cancel Figure 3 3 Download Application Dialog Box 3 4 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations Download DSP RAMO The Download DSP RAMO menu item enables memory to be filled with the values contained in an Intel hex or binary file The Address Format section of the Download To DSP RAMO window designates the format of the contents of the file being downloaded Memory can also be padded with FFFFh or 0000h Download To DSP x Path dsice_d3 12b Files Directories Extensions Memory Pad With C EFFF HE C 0000 HEX File Format NOTHING INTEL HEX C BINARY Address Format OK WORD C BYTE Cancel Figu
38. SAMPLESN69COONSuite asm NPROGRA 1NZD5_J2 00NSAMPLESN69COO0NSuite asm Figure 3 33 Output Window 3 32 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations OTP This emulator provides OTP programming capabilities Selecting the OTP menu item displays the OTP window OTP S Device 42 31 M Topmark Standard a m Programming Options BLANK CHECK Reserved Reserved EPROM Protect Reserved VERIFY Reserved Reserved EXAMINE Reserved RC Oscillator PROGRAM m OTP CHECKSUM READ OPTIONS RAM CHECKSUM QUIT Command Status Device Serialization Method _ __ Serial Number Size r Address C 1 C 3 Byte C Sequential 0000 C 2 4 Byte C Pseudorandom Serial Number None Hexadecimal Z86CCP xZEM Programmer 28 001 18PDIP Use ZSED0100ZAC Z8E001 1850IC Use 28 001007 and Z86E0700ZDP 28 001 20550 Use ZS8E00100ZDH Z8M00101ZEM programmer 28 001 18SOIC Use Z86E0700ZDP 28 001 20550 Use Z8E00101ZDH Figure 3 34 OTP Window UMO00000 DSP1 198 3 33 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG OTP ROM The OTP ROM section of the OTP window sets the method for bit significance in the registers Three settings are available Word High Low Programming Opti
39. Size 4K Microcontroller 289321 371 Cancel 289321027EM Z789371 Please see OTPPROG TXT for info Figure 4 3 Configuration Dialog Box With 64K ROM Size Selected Emulation ROM Size selection affects the size of the code file you can download The Configuration dialog box is only accessible when no other window is open NOTE Refer to the Product Information Sheet for a complete list of precautions and limitations 4 4 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Sample Session 5 Click on File then Download Application The Download Application window is displayed Download Application x Application Object Filename C DSICE_C3 12B Browse r Options Clear program memory before downloading r Object Format Zilog Object Module Format C PLC Object Module Format Cancel Figure 4 4 Download Application Dialog 6 Click on Browse The Load File Browse dialog box is displayed Load File Browse 21x File name Folders M 29 dsice d3 12b C3 samples List files of type Drives Load Files Id c presariob85 J Figure 4 5 Load File Browse Dialog Box Change the current path to the ZiLOG Developer Studio for example c Nprogra 1Nzds 32 00 The names of two subfolders are displayed Double click on the samples entry Additional names of subfolders are dis
40. acking Pointer Register a uu 3 21 Figure 3 23 Tracking Pointer Register P1 1 u 3 21 Figure 3 24 Tracking Pointer Register P2 1 35 2 3 22 UMO00000 DSP1 198 vii 289321022 User s Manual List of Figures ZiLOG Figure Title Page Chapter 3 Summary of Menus Commands and Operations Continued Figure 3 25 DSP Memory Window 3 23 Figure 3 26 At Register Dialog 3 24 Figure 3 27 Program Counter Window 3 24 Figure 3 28 Z89321 Debug Dialog 3 25 Figure 3 29 289321 Debug Fielda u 3 26 Figure 3 30 Debug Log Window Sup u 3 30 Figure 3 31 DSP Source Window 3 31 Figure 3 32 Source Module Window 3 32 Figur 3 33 Output WINdOW Las rasta nee ite ete tie eet tb red eade 3 32 Figure 3 34 OTP 3 33 Figure 3 35 Configuration Dialog Box enne nenne 3 37 Figure 3 36 Multiple Emulator Operation Using 2 Ports 3 40 Chapter 4 Sample Se
41. adix field specifies the format hexadecimal or decimal of the entry in the Fill Value field Memory Fill x End Address Q0FF Radix OK Hex C Decimal Cancel L Figure 3 14 Memory Fill Dialog Box Clear All The Clear 11 menu item provides the option of filling Z8 Code Memory with the 0000h or FFFFh value To exit the choice list without any changes press the Escape key File View OTP Edit Tracking Font Size Window Help Fill Clear All With 0000 Start Address With FFFF When With 0000 orWith menu item is selected a confirmation window is displayed 3 16 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations Clear All Memory x Clear All RAM Bank with 0000 1 Cancel Figure 3 15 Clear All Memory Confirmation Window Start Address The Start Address menu item provides facility for jumping the cursor in the 789321 RAM Bank0 window to the location entered in the Start Address field The Radix field specifies the format hexa decimal or decimal of the entry inthe Start Address field Address x Start Address IIIT Radix Hex OK C Decimal Cancel Figure 3 16 Address Dialog Box Start Address Tracking Selecting Tracking from the menu displays the Absolute Address Pointer Register P0 0 Pointer Register P1 0 and Pointer Register P2 0 menu items File View OTP E
42. ae tede tpe i Fun e E Et ped 5 2 Can t Open Windows 5 2 Out of Synchronization with the Emulator 5 2 Appendix A Accessing the ZBBS Internet Bulletin Board Information a A 1 How to Access the ZBBS uu anan uuu Q A 1 Z4 BeE ONTARIO A 1 Appendix B Emulator Schematic Emulator Scherrialle 52 913 5 2 mos tte etit ur deter esie B 1 Appendix C ASCII Character Set Character D aT REN C 1 Appendix D Problem Suggestion Report Form Problem Suggestion Report D 1 UMO00000 DSP1 198 V This page intentionally left blank Z8932102ZEM USER S MANUAL ZiLOG Totally Logical LIST OF FIGURES Figure Title Page Chapter 2 Set Up and Installation Figure 2 1 Hook Up Diagram 2 4 Figure 2 2 Option Jumper Locations 2 5 Chapter 3 Summary of Menus Commands and Operations Figure 3 1 Open Session Dialog 3 3 Figure 3 2 ZiLOG ICEBOX Save Session Dialog 3 3 Figure 3 3 Download Application Dialog 3 4 Figure 3 4 Download DSP RAMO Dial
43. atic RAM for each cycle emitted by the Z8 ICE chip during code execu tion to implement the breakpoint function in hardware EPROM OTP Programmable Devices 789371 NOTE Refer to the Data Sheet DS for exact OTP Programming requirements UMO00000 DSP1 198 3 39 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG RUNNING MULTIPLE EMULATORS The DSP ICE GUI allows several emulators to run at the same time if your PC has more than one commu nication port NOTE Running multiple emulations two or more emulators running simultaneously requires more memory than single emulation operation therefore we recommend using a PC with 8 MB RAM or 16 MB RAM for Windows 95 In addition two or more communication ports are needed when running multiple instances Ensure that there are no COM port interrupt conflicts if installing additional COM ports via an add on board ZILOG ICEBOX 289321 z8em 321 bsc 0 2 19200 OF x File View OTP Run FontSize Window Help Z89321 Debug SET BRK 0000 START LD SR s 85000 CLEAR B ADD A P1 0 an ADD 2 1 ZILOG ICEBI 89323 z8em 393 bsc COM File View OTP Run FontSize Window Help 789323 Debug 0004 SET BPK START LD SE 8000 JE ids oid ADD A P1 0 ADD 2 1 2 1 00 2 1 100 55 4 3155 4 P1 0 2 1 100 A PZ 1 4 P2 1 LO0P Z89323
44. cing activities Log Execution Enables or disables logging When enabled selected registers are logged to the specified file each time emulation is halted such as at breakpoint or after single step See Chapter 4 Sample Session for an example of trace logging Log Options Specifies the registers to log the format in which to log them and the name of the log file Logging may be linear or circular Linear logging treats the log file as a linear buffer with infinite capacity circular logging treats the log file as a circular buffer with finite capacity The circular buffer default capacity is 100 logging actions however the number is user definable in the Maximum field See Figure 3 30 UMO00000 DSP1 198 3 29 Z8932102ZEM User s Manual Summary of Menus Commands and Operations ZiLOG A T1XZDS J2 00YS5AMPLESXY89COO0YDSP LOG Figure 3 30 Debug Log Window Resources to Log The following items are available for logging A A Register Accumulator SR Status Register PC Program Counter P P Register Output of Multiplier Read Only X X Register X Multiplier Input Y Y Register Y Multiplier Input RAM Address Pointers Pn b Data Pointers Dn b External Registers EXTn For detailed information about these resources and registers refer to the Z89321 371 16 Bit Digital Signal Processors Preliminary Product Specification DS000500 MOD0698 3 30 UMO00000 DSP1 198 289321022 User s Ma
45. crocontroller 289321 371 M Cancel 28932 102ZEM Z89371 Please see OTPPROG TXT for info Figure 3 35 Configuration Dialog Box HELP File View OTP Configuration Help Index Keyboard Commands Glossary Procedure Using Help About ICEBOX The on line Help program is available to provide brief help messages on various topics The Help program features an index that easily references the emulator commands and procedures Topics covered under Help include Index of the Help Program Keyboard Commands UMO00000 DSP1 198 3 37 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG ICEBOX GUI Commands Procedures for Using the Emulator e How to Use Help Version and Copyright Information WINDOW REFRESHING When you make a change in the Code Memory window the code view in the Debug window is updated auto matically When a program runs from the Debug window the Status window is updated automatically at each step Halt or breakpoint All other windows Registers Expanded Registers Data Memory and Code Memory are not updated automatically as the program runs To refresh the window display to reflect the current hardware values double click the caption bar of each window EMULATOR OPERATION Hardware Reset When you press the emulator RESET button or power down then power up the initial screen and the ZiLOG logo are shown while the ICEBOX goes thr
46. dialog box is displayed File View OTP Run FontSize Window Help 28 Click on Run The following menu is displayed File View OTP Run FontSize Window Help Trace Code Trace Call Animate Clear Trace Log Execution Log Options 4 16 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Sample Session 29 30 31 32 33 Click on Log Options The Debug Log dialog box is displayed 1205 J2 00YS5AMPLESX89CO0YDSP LOG Figure 4 21 Debug Log Dialog Box The default path and name for a log file are displayed in the Log Filename field To change the name or path type a new entry or use the Browse button Resources can be selected or deselected Logging Options can be selected for configuring your trace session Click on OK The Z89321 Debug dialog box is displayed see Figure 4 20 Click on Run then Trace Code The menu closes Click on Run Notice that the Trace Code and Animate items are checked Click on Run again to close the menu UMO00000 DSP1 198 4 17 289321022 User s Manual Sample Session 34 Place your cursor in the JUMP field then type 0008 289321 Debug STEP OVER 9321 Debug ZiLOG 2 amp GP2 GP2 l LOOP 2 1 100 4 855 4 8155 amp GGPl 0 2 1 100 2 1 PZ 1 LOOP amp GGP2 1 Figure 4 22 Z89321 Debug Window With Jump Input 35 Click on the JUMP button The current line in the code displa
47. directory to install the software into In Windows 3 1 the default path is C NZMASM 2 10 In Windows 95 the default path is NProgram Files NZDS 1 00 for ZDS For the ZMASM only installation the default path is C Program FilesNZMASM 2 10 The setup program copies the files into the target directory 4 Follow all on screen instructions In Windows 3 1 a ZMASM program group icon is placed on the desktop In Windows 95 a ZiLOG Developer Studio entry is placed on the Programs menu under Start 5 Remove the diskette and store in a safe place when installation is complete DSP ICEBOX GUI Installation To install DSP ICEBOX GUI under Windows perform the following steps 1 Select the Run command from the File menu under Program Manager Windows 3 1 or under Start Windows 95 2 Insert the DSP GUI S W Disk 1 into drive A or drive B if appropriate 3 Type a setup and press ENTER b setup if drive B is used A dialog box prompts you for the directory to install the software into 4 Follow all on screen instructions The setup program copies the files into the target directory creating DSP ICEBOX GUI program group icon in the Windows environment 5 Remove and store all diskettes in a safe place when installation is complete Program Uninstallation Uninstaller facilities are created during the installation of ZMASM ZDS and DSP ICEBOX GUI In Windows 3 1 an Uninstall icon is a member of each program group
48. dit Tracking gt Jl N FontSie Window Help Absolute Address Pointer Register P0 0 Pointer Register P1 0 Pointer Register P2 0 UMO00000 DSP1 198 3 17 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG Absolute Address You can track to a register by its absolute address by entering the absolute address value in the dialog box that appears when Absolute Address is selected from the Tracking menu Address x Absolute Address HUU Radix Hex OK Decimal Cancel Figure 3 17 Address Dialog Box Absolute Address Pointer Register P0 0 You can track to the contents of pointer register PO 0 289321 olx Tracked Address 0000 Data 0000 000 001 002 003 004 005 006 007 0 1 2 3 4 5 6 0000 0000 0004 0000 0000 0008 0000 0000 0000 0000 0010 0004 0008 0400 0000 0000 0000 0000 0000 0800 0004 0000 0000 0000 0000 0080 FFFF FFFF FFFD 7FFF FFFF FFFF FFFF FFFF FFFF FFDF FFFF FFFF FFFF FFFE FFFF FFFF FFEF FFF7 FDFF FFBF FFFF FFFF FFFF FFFF F7FF FFFF FFFF FFFF FFFF FFFF 7FFF FFFF Doce DODO 00D8 OOEO 00 00 00 racking P0 0 memory address ff Figure 3 18 Tracking Pointer Register P0 0 3 18 UMO00000 DSP1 198 ZiLOG 289321022 User s Manual Summary of Menus Commands and Operations Pointer Register P1 0 You can track to the contents of pointer register P1 0 2
49. dows subset menus menu items commands and operations are summarized in the following sections of this chapter NOTE Consult ZiLOG s ZBBS or Internet site at www zilog com to obtain the latest released version of DSP GUI Emulator software UMOO00000 DSP1 198 3 1 289321022 User s Manual Summary of Menus Commands and Operations FILE MENU File View OTP Open Session Save Session Download Application Download DSP Download DSP 1 Download DSP Code Memory Download DSP External Memory Upload DSP Upload DSP RAM1 Upload DSP Code Memory Upload DSP External Data Memory Exit Alt F4 Configuration Help ZiLOG UMO00000 DSP1198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations Open Session The Open Session menu item provides a facility for loading a previously saved session OPEN SESSION x File Name Path cAdsice c3 12b Files Directories Extensions OK a Figure 3 1 Open Session Dialog Box Save Session Selecting Save session saves the information about the position of the opened windows downloaded code file font size used and debug flags such as Trace and Animation Not all windows reappear upon reloading of a saved session ZILOG ICEBOX x Save the Current Session Figure 3 2 ZiLOG ICEBOX Save Session Dialog Box UMO00000 DS
50. e data binary Intel hex and disassembly The entire contents of code memory are stored when the Save A11 button is activated A portion of the contents is stored when numbers are entered in the Start Address and End Address fields and the Save button is activated This function may be used for sessions involving patched code Save DSP Memory x Format Binary C Intel Hex C Disassembly c dsice_c3 12b Directories Save Save All Cancel Figure 3 10 Save DSP Memory Dialog Box UMO00000 DSP1 198 3 11 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG Upload DSP External Data Memory The Upload DSP External Data Memory menu item enables the contents of external data memory to be saved in an object file Three formats are available for storing the data binary Intel hex and disas sembly The entire contents of external data memory are stored when the Save A11 button is activated A portion of the contents is stored when numbers are entered in the Start Address and End Address fields and the Save button is activated File Name Start Address End Address Format Binary C Intel Hex C Disassembly c dsice_d3 12b Directories Save Figure 3 11 Save DSP External Memory Dialog Box Exit The Exit menu item enables you to leave the emulator GUI The ZiLOG ICEBOX confirmation window offers the message Save the Current Session
51. ems are displayed e Clear All e Tracking Absolute Address Download DSP RAMI e Upload DSP RAMI 3 22 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations DSP Code Memory The Z89321 DSP Memory window provides a facility for tracking and changing the contents of the code memory registers 289321 DSP Memory k ojx 001 003 8201 8306 8401 SBOE 8B06 8B0Z 9201 9302 200 2201 2302 2655 2755 2 01 2B02 3201 3302 600F 6401 6802 7201 7302 6201 6302 6655 6755 2 2 AAAA SAAA 2 22 A 22 2 2 AAAA SAAS 82 ZOAA SAAZ SOAA 88 8 FFFF AAZA AAAA AAZA AAAS OAAA AAAS OAZZ 28 OAAA 89321 DSP Memory Figure 3 25 DSP Memory Window When the Z89321 DSP Memory dialog box is displayed the following menu bar is displayed File View OTP Edit Tracking Font Size Window Help Tracking Selecting Tracking from the menu displays the following menu items Absolute Address Register Program Counter 0 0 P1 0 P2 0 P0 1 P1 1 P2 1 UMO00000 DSP1 198 3 23 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG Absolute Address You can track to a register by its absolute address by entering the absolute address value in the dialog box that appears when Absolute Address is selected from
52. ick on the STEP button or click on the GO button Trace Buffer This display area contains the address of the line of code displayed on the same line in the Code List field field 9 Use the vertical scroll bar to scroll up and down Code List The Code List contains the disassembled contents of code memory The field scrolls with the Trace Buffer field Use the vertical scroll bar to scroll up and down Selection of a line of code causes the address of that line to be inserted into the SET BRK CLEAR BRK and JUMP fields Code Memory can be change by entering the assembly code directly into the window line by line After you input a line of assembly code you must press the RETURN key The assembled code is then written to Code Memory and immediately reflected in this field NOTE Be careful when replacing instructions to avoid corruption of the remaining assembly code UMO00000 DSP1 198 3 27 Z8932102ZEM User s Manual Summary of Menus Commands and Operations ZiLOG Buttons Several buttons are available in the 789321 Debug window Table 3 1 Debug Buttons Name Description Activation of this button clears all breakpoints All addresses are then removed from the Breakpoint List field 1 Activation of this button deletes a breakpoint at the address in the Clear Breakpoint Input field field 3 The address is then removed from the Breakpoint List field 1 Activation of this button starts exec
53. ies while reading the User s Manual please copy this form fill it out then mail or fax it to ZiLOG see Return Information We also welcome your suggestions Customer Information Name Country Company Telephone Address Fax Number City State ZIP E Mail Address Product Information Return Information Serial or Board Fab Rev ZiLOG Inc Software Version Support Products Director Manual Number 910 E Hamilton Ave Suite 110 MS 4 3 Host Computer Description Type Campbell CA 95008 Fax Number 408 558 8300 Email tools zilog com Problem Description or Suggestion Provide a complete description of the problem or your suggestion If you are reporting a specific problem include all steps leading up to the occurrence of the problem Attach additional pages as necessary UMO00000 DSP1 198 D 1 This page intentionally left blank
54. information in this document is subject to change without notice Devices sold by ZiLOG Inc are covered by warranty and patent indemnification provisions appearing in ZiLOG Inc Terms and Conditions of Sale only ZiLOG Inc makes no warranty express statutory implied or by description regarding the information set forth herein or regarding the freedom of the described devices from intellectual property infringement ZiLOG Inc makes no warranty of merchantability or fitness for any purpose The software described herein is provided on an as is basis and without warranty ZiLOG accepts no liability for incidental or consequential damages arising from use of the software ZiLOG Inc shall not be responsible for any errors that may appear in this document ZiLOG Inc makes no commitment to update or keep current the information contained in this document ZiLOG s products are not authorized for use as critical components in life support devices or systems unless a specific written agreement pertaining to such intended use is executed between the customer and ZiLOG prior to use Life support devices or systems are those which are intended for surgical implantation into the body or which sustains life whose failure to perform when properly used in accordance with instructions for use provided in the labeling can be reasonably expected to result in significant injury to the user ZiLOG Inc 910 East Hamilton Ave Suite 110 Campbell CA 95
55. ize Window Help Point 6 Point 8 Point 10 Point 12 Window File View OTP FontSize Window Help Cascade Shift F5 Tile Shift F4 Arrange Icon Close All The Cascade Tile and Arrange Icon items perform standard Windows functions Close 11 displays the ZiLOG ICEBOX confirmation window which offers the message Save the Current Session and the options Yes No and Cancel see Figure 3 2 RAM The RAM Bank0 menu item activates the Z89321 RAM BankO window and enables the viewing and editing of the contents of internal data bank0 3 14 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations 289321 RAM Tracked Address OOFF Data FFFF 000 4001 002 003 005 006 007 0 1 2 3 4 5 6 0068 0020 0008 00 0 00 8 00 00 89321 RAM Figure 3 13 289321 RAM Window When the Z89321 RAM BankO window is displayed the following menu bar is displayed File View OTP Edit Tracking Font Size Window Help Edit File View OTP Edit Tracking FontSize Window Help Fill Clear All Start Address UMO00000 DSP1 198 3 15 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG Fill The Fill menu item enables you to assign a value to a specified range of memory addresses The Memory Fill dialog box has entry fields for Start Address End Address and Fill Value The R
56. mory 3 7 Download DSP External Data 3 8 Eoad Symbol usa 3 8 Upload DSP RAMO 1 5 u auqa ten Eti qa e per asa 3 9 Upload DSP RAM Qusan u aaa mE 3 10 Upload DSP Code Memory 2 aan un nennen nennen nenne aa Ads 3 11 Upload DSP External Data Memory n 3 12 E 3 12 VAM 3 13 EE 3 13 RAM BanKO eee tbe eee ben e eee 3 14 RAM Bankl 25 itt ee pt nece deret be beste e edes 3 20 DSP Gode Memotry AR basa 3 23 Biz EE 3 25 EH MEE C Eb REO 3 33 ae ian enaa 3 34 Programming Options uuu t eh E Ee E e HR yaaa tua y nesses 3 34 Command Status Ne a usa a uka aya eorr t oett eee eae 3 35 De vice SerialiZation robe De tod 3 35 Gonfig ratiOn ete e ir t rui eet ete oes re 3 36 ule rS 3 37 Window meo tee ta Eee eben 3 38 Emulator Operation e eene beta ia ena tese nenas 3 38 Hardware Reset eite te ie iet pe Pa uer Melee Bb ed gta ees 3 38 aku a a
57. n 4 24 Figure 4 33 Save Session Dialog r a 4 25 Figure 4 34 Open Session Dialog Box n nnne 4 25 UMO00000 DSP1 198 ix This page intentionally left blank Z8932102ZEM USER S MANUAL CHAPTER 1 ZiLOG Totally Logical INTRODUCTION OVERVIEW Congratulations for selecting a fine development tool The ZiLOG Z8932101ZEM Emulator is carefully engineered to provide the best balance between low cost and useful features to shorten your development time for Z89321 based products The DSP GUI Emulator graphical user interface GUI software runs under MS Windows supporting selected ZiLOG devices Also included is the ZiLOG Macro Cross Assembler ZMASM a full featured assembler that runs under Windows SUPPORTED DEVICES Table 1 1 Supported Devices Packages Emulation OTP Programming 40 Pin DIP 78932 1 371 789371 44 Pin PLCC Z89321 371 789371 44 N A 789371 NOTES 1 A third party adapter tower is required for this configuration Consult ZiLOG Customer Service for more information 2 The complete up to date list of all supported devices is specified in the ZiLOG Data Sheet DS document shipped with ZiLOG s Order Acknowledgment form The DS is also available from the ZiLOG Bulletin Board Service ZBBS and the home page at www zilog com see Appendix A for additional information UMOO00000 DSP1 198 1 1 289321022 User
58. nual ZiLOG Summary of Menus Commands and Operations Source The DSP Source dialog box displays the source code when you download a load LD format file using the Download Application dialog box DSP Source C DSICE_C3 12B SAMPLES 90341 sampl341 asm VECTOR RESET START GLOBALS ON START ADD LABEL ADD A P1 0 ADD A P2 1 ADD A P2 1 ADD A P2 1 LO00P ADD A P2 1 LOOP ADD A X55 ADD 155 A P1 0 ADD A P2 1 LO0P ADD A P2 1 ADD A P2 1 LOOP Figure 3 31 DSP Source Window When the DSP Source window is displayed the following menu bar is displayed File View OTP Options Window Help Options When the Options item is selected the following item is displayed File View OTP Options Window Help Source Module Source Module The Source Module window displays the name of the source assembler module UMO00000 DSP1 198 3 31 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG ADHEP foes DE ne PL odes Figure 3 32 Source Module Window Output The Output window displays the status at file load and at command execution such as HALT and RESET LOX Output ZiLOG DSP ICEBOX GUI Version D3 12b C Copyright 1998 ZiLOG Ine All rights reserved Loading OMF file C PROGRA 1 ZD5_J2 00NSAMPLES 89CO00NSuite asm Loading source file Loading source file PROGRA 1 ZDS_J2 00
59. ode Memory Unavailable menu items are presented in gray UMOO00000 DSP1 198 i 289321022 User s Manual Preface ZiLOG ADDITIONAL SOURCES OF INFORMATION In addition to this manual you should have access to and be familiar with the following documentation 789321 371 Preliminary Product Specification The new emulator Graphical User Interface GUI software features many enhancements including an improved context sensitive on line help facility that provides brief messages on keyboard emulator commands and various procedures on how to use the emulator Refer to the README TXT file on the DSP GUI diskette for detailed information TRADEMARKS Windows is a registered trademark of the Microsoft Corporation ii UMO00000 DSP1 198 Z8932102ZEM USER S MANUAL ZiLOG Totally Logical TABLE OF CONTENTS Chapter Title and Subsections Page Chapter 1 Introduction I A pse Supported DEVICES uu ood TRE ed ee y eda e aye ee daga aes GUI Supported Compiler Assembler Formats Hardware Specifications u Operating Conditions DIMENSIONS saves aes LA Serial INTC MACS iom t Det Emulation Memory tee Heo ese dil hiked le REDE Number of Breakpoints tanen entes Host GOmputer E
60. og Box eem emere 3 5 Figure 3 5 Download To DSP RAM Dialog Box a 3 6 Figure 3 6 Download To DSP Code Memory Dialog Box 3 7 Figure 3 7 Download To External Data Memory Dialog Box 3 8 Figure 3 8 Save DSP RAMO Dialog 3 9 Figure 3 9 Save DSP RAM Dialog 3 10 Figure 3 10 Save DSP Memory Dialog BOX 3 11 Figure 3 11 Save DSP External Memory Dialog 3 12 Figure 3 12 289321 Registers Dialog Box 11 u u u 3 13 Figure 3 13 289321 RAM 3 15 Figure 3 14 Memory Fill Dialog uuu 3 16 Figure 3 15 Clear All Memory Confirmation 3 17 Figure 3 16 Address Dialog Box Start 3 17 Figure 3 17 Address Dialog Box Absolute Address 3 18 Figure 3 18 Tracking Pointer Register PO 0 u u 3 18 Figure 3 19 Tracking Pointer Register P1 0 u uu u 3 19 Figure 3 20 Tracking Pointer Register P2 0 3 19 Figure 3 21 Z89321 RAM Bank1 Window nnne 3 20 Figure 3 22 Tr
61. ons Several OTP operations can be performed Table 3 1 OTP Operations Functions Operations Functions Performed Checks whether the OTP device is blank Compares the contents of the Code Memory and the OTP device Load the contents of the OTP device into Code Memory Writes the contents of the Code Memory to the OTP device Calculates the Checksum of the OTP device only and displays it on the screen RAM CHECKSUM Calculates the Checksum of the RAM and displays it on the screen ROM Protect Blocks read access to OTP programming code from external viewing and disables the following commands LDC LDCI LDE and LDEI Quit OTP programming operations 1 To obtain a Data I O such as UniSite 3900 or 2900 calculated Checksum the user should first download the file with 00 padding option then perform the OTP programming Data I O fills its memory with 00 after power up 2 Checksum differences may occur During user program download the memory is padded with code outside the user program memory if the user program is less than the emulation memory The memory is padded with either 00 or nothing according to user selection This does not effect the user program however it does effect the calculation of the Checksum during the OTP programming because the Checksum is calculated through out the whole memory size of the OTP 3 RAM is Code Memory space 3 34 UMO00000 DSP1 198 289321022
62. ough the initialization sequence Pressing the RESET button resets most of the settings that you establish using the GUI For example the emulated ROM size is reset to 4 KB and all 64 KB breakpoint RAM is cleared NOTE After RESET you must wait a minimum of 5 seconds for completion of selftests before starting the GUI software Hardware Reset While GUI Is Running If you press the Hardware Reset while the GUI is running a communication error dialog box appears with the following message Out of synchronization with the emulator This message appears when the power or RS 232C cable is removed or whenever the ICEBOX emulator and the host PC have failed to properly communicate with each other You have three responses to this message Abort Retry or Ignore 3 38 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations Abort Quits the GUI Retry Resets the GUI by reinitializing You are returned to the initial purple screen with ZiLOG logo Ignore Attempts to reestablish communication between the GUI and ICEBOX emulator without reinitializing ROM Size The ICEBOX has the selectable ROM size of 4K to 64K Breakpoint Implementation The emulator bases its breakpoint facility completely on addresses rather than on inserting special TRAP instructions into the program which enable the setting of breakpoints in Program Memory on your target board The ICEBOX uses a 32Kx1 st
63. ource is the Oscillator CLKI Reserved Reserved DSP clock source is the Oscillator divided by 2 DSP CLKII DSP clock source is the User clock U CLK Oscillator input divided by 2 is not active power save Oscillator input divided by 2 is the 20 MHz Oscillator CODEC data format is A law CODEC data format is u law The target board has its own The target board does not have its own Vcc Note The designates the default setting when shipped UMO00000 DSP1 198 289321022 User s Manual ZiLOG Setup and Installation Option Jumpers Setup Selected option jumpers are accessible on top of the emulator board see Figure 2 2 The option jumpers allow you to configure things like how the clock pin of the emulated DSP is connected The clock for the emulated DSP can be provided from an oscillator in the emulator or from a TTL level clock on your design For electrical reasons it cannot be provided from the oscillator on your design until you are done using the emulator and have done one of two things 1 programmed an EPROM or OTP DSP and installed it in your design or 2 installed a Masked ROM DSP in your design NOTE Each emulator is shipped with a 20 MHz oscillator If you want another rate remove the oscillator and install a different one within the frequency specifications of the device in use ZiLOG however does not guarantee operation with oscillators other then the supplied model Power Up If an
64. played in the same area of the window UMO00000 DSP1 198 289321022 User s Manual Sample Session ZiLOG 9 Double click on the entry 89c00 An entry suite 1 is displayed to the area on the left side of the window Load File Browse 21x File name Folders e prograI zds 200 Cancel J progra 1 zds_j2 00 samples 3 89 00 N List files of type Drives Load Files Id c 586 Figure 4 6 Load File Browse Dialog Box With SUITE LD File Selection 10 Double click on the entry suite 1d The Download Application dialog box is displayed Download Application LX Application Object Filename 14 ZDS_J2 00 SAMPLES 89CO0 SUITE LD Browse Options Clear Program Memory Before Downloading Object Format Zilog Object Module Format C PLC Object Module Format Cancel Figure 4 7 Download Application Dialog Box With SUITE LD Selection 4 6 UMOO00000 DSP1 198 289321022 User s Manual ZiLOG Sample Session 11 Click on the option Clear Program Memory Before Downloading then click on OK The contents of file suite 1d is loaded into memory and the Main Menu is displayed File View OTP Configuration Help Monitoring Modifying Registers 12 Click on View then Registers The Z89321 Registers dialog box is displayed 289321 Registers m Internal Registers RAM Pointers Flags Fr 20 1 z Fo Fz c x
65. ppercase Q Uppercase R Uppercase S Uppercase T Uppercase U Uppercase V K L M N 0 Q R 5 T U W Uppercase W C 4 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Introduction Table 5 1 ASCII Character Set Continued Graphic Decimal Hexidecimal Comments Uppercase X Uppercase Y Uppercase Z Opening Left Bracket Reverse Slant Closing Right Bracket Circumflex Underscore Grave Accent Lowercase A Lowercase B Lowercase C Lowercase D Lowercase E Lowercase F Lowercase G Lowercase H Lowercase Lowercase J Lowercase K Lowercase L Lowercase M Lowercase N Lowercase O UMO00000 DSP1 198 5 289321022 User s Manual Introduction ZiLOG Table 5 1 ASCII Character Set Continued Graphic Decimal Hexidecimal Comments Lowercase P Lowercase Q Lowercase R Lowercase S Lowercase T Lowercase U Lowercase V Lowercase W Lowercase X Lowercase Y Lowercase Z Opening Left Brace Vertical Line Closing Right Brace Tilde Delete C 6 UMO00000 DSP1198 Z8932102ZEM USER S MANUAL APPENDIX D ZiLOG Totally Logical PROBLEM SUGGESTION REPORT FORM If you experience any problems while operating this product or if you note any inaccurac
66. r 3 Summary of Menus Commands and Operations and in Chapter 5 Troubleshooting Guide NOTES 1 In order to properly demonstrate the program features be prepared to import sample files in this session A sample DSP source code file and sample assembly batch files have been included on the ZMASM Diskette however other sample files of your choice can be used You can also download other sample files from ZiLOG s Bulletin Board Service ZBBS or Internet site Refer to Appendix A for information 2 Consult ZiLOG s ZBBS www zilog com to obtain the latest released version of DSP GUI software 3 This sample session assumes the ZiLOG Macro Cross Assembler has been installed 4 The screen images contained in this file are representative only Your screen display may vary UMOO00000 DSP1 198 4 1 289321022 User s Manual Sample Session STARTING THE APPLICATION ZiLOG 1 Press the RESET button on the emulator after power up 2 Double click the DSPICE program icon The ZiLOG ICEBOX Connect dialog box is displayed Zilog ICEBOX Connect Select an ICEBOX 28700000ZEM 289309002 289319002 289321012 28932102ZEM 289323002 289323012 289323022 289371002 289391002 289393002 289 00002 290349002 290359002 The ICEBOX is connected to Communication Port C COM2 C Baud Rate C 960
67. re 3 4 Download To DSP RAMO Dialog Box UMO00000 DSP1 198 3 5 289321022 User s Manual Summary of Menus Commands and Operations ZiLOG Download DSP RAM1 The Download DSP RAM1 menu item enables memory to be filled with the values contained in an Intel hex or binary file The Address Format section of the Download To DSP RAMI window designates the format of the contents of the file being downloaded Memory can also be padded with FFFFh or 0000h Download To DSP RAM1 F Path dsice_d3 12b Files Directories Extensions Memory Pad With C EFFF HE C 0000 HEX File Format NOTHING INTEL HEX C BINARY Address Format OK WORD BYTE Cancel Figure 3 5 Download To DSP Dialog Box 3 6 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus Commands and Operations Download DSP Code Memory The Download DSP Code Memory menu item enables you to download Intel hexadecimal hex or binary format code to Code Memory The Address Format section of the Download to DSP Code Memory window designates the format of the contents of the file being downloaded Memory can also be padded with FFFFh 0000h Download To DSP Code Memory LX File Name Path dsice_d3 12b Files Directories Extensions Memory Pad With C EFFF C 0000 HEX File Format NOTHING INTEL HEX C
68. ssion Figure 4 1 ZiLOG ICEBOX Connect Dialog Box I 4 2 Figure 4 2 Configuration Dialog naa 4 3 Figure 4 3 Configuration Dialog Box With 64K ROM Size Selected 4 4 Figure 4 4 Download Application Dialog 4 5 Figure 4 5 Load File Browse Dialog 4 5 Figure 4 6 Load File Browse Dialog Box With SUITE LD File Selection 4 6 Figure 4 7 Download Application Dialog Box With SUITE LD Selection 4 6 Figure 4 8 289321 Registers Dialog Box 1 U uu Q 4 7 Figure 4 9 289321 RAM 4 8 Figure 4 10 Memory Fill Dialog Box U 4 9 Figure 4 11 Z89321 RAM Dialog Box With Memory Block 0020 00FF Zeroed 4 9 Figure 4 12 Clear All Memory 4 10 Figure 4 13 289321 RAM Dialog Box With Zeroed Registers 4 10 Figure 4 14 Z89321 Registers and Z89321 RAM Bank1 Windows 4 11 Figure 4 15 RAM Bank1 With Value OOADH At Location 09H 4 12 Figure 4 16 Set Pointer 1
69. t Windows 95 UMO00000 DSP1 198 1 3 289321022 User s Manual Introduction ZiLOG KIT CONTENTS The emulator kit contains one of each of the following items Assembly Z8932102ZEM DSP Emulation Board Cable Assembly 9 CKT RS232 6 Ft Power Supply AC MOD 9VCD 1 2A DSP Graphical User Interface GUI Software ZILOG Macro Cross Assembler ZMASM ZiLOG Developer System ZDS Software ZiLOG Macro Cross Assembler ZMASM User s Manual ZiLOG Macro Cross Assembler ZMASM License Agreement 28932102ZEM User s Manual Product Information ZDS For Windows 95 Pprogramming Adapter for 44 PLCC Progoramming Adapter for 44 PQFP Emulation Pod for 44 PLCC Emulation Pod for 40 DIP 1 4 UMO00000 DSP1 198 Z8932102ZEM USER S MANUAL CHAPTER 2 ZiLOG Totally Logical SET UP AND INSTALLATION SOFTWARE INSTALLATION Software for the Emulator is stored on two sets of diskettes 1 DSP GUI 2 ZiLOG Macro Cross Assembler ZMASM with ZiLOG Developer Studio ZDS NOTE Refer to the README TXT file on each diskette Text TXT files are easily accessed by using the Microsoft Windows Notepad program The ZiLOG Macro Cross Assembler ZMASM ver 2 10 is the basis for the ZiLOG 16 bit development envi ronment for Windows 3 1 The ZiLOG Developer Studio ZDS version 1 00 is the 32 bit development envi ronment which runs under Windows 95 and includes ZMASM version 2 10
70. ta Pointers EXTO rz EXT4 DO 0 80 00 1 0 EXTL rrr 5_1 EXTS_2 rre D1 0 1 D1 1 1 EXT rrr 1 2 Ferr D2 0 2 D2 1 2 EXT rrr EXT 1 EXT 2 D2 0 22 D2 1 2 89321 Regi 289321 RAM Tracked Address 000 001 002 003 0 1 2 3 4 5 5 7 ee ee 22 ox mE os we We cs s me lt lt memory address 9 Figure 4 17 Tracking Pointer P0 1 in RAM Bank1 UMO00000 DSP1 198 4 13 Z8932102ZEM User s Manual Sample Session ZiLOG 24 Click on View thenDSP Code Memory The Z89321 DSP Memory window is displayed in addition to the Z89321 Registers and Z89321 RAM Bank1 windows m aT Friman mam gt am singe Fa pi E i Ee Eep Jase Dewars pera Dama erre 35 aive rao awa Esas errr pee bert errr Li Pe pee m rz i s 1 E Ji amp E ES gt sri per terti eee asas 1 Trarhad HEFL SORE 3021 FETA SEN 3 04 SHE 42 asap Cee ea ed SERE SEDL TORO HIS 1582 CEA ZgHZH ITIJ Z 3L ICEL 118 zor mhhk
71. the Tracking menu see Figure 3 17 Register You can indirectly track to a register the contents of which are the address of another register by entering the value in the At Register dialog box At Register x Format RAMs Hex RAMO C Dec RAMI OK CANCEL Figure 3 26 At Register Dialog Box Program Counter The Program Counter message window reports the current value of the program counter Program Counter The program counter value in Hex is ffb3 Figure 3 27 Program Counter Window P0 0 You can track the RAM pointer P0 0 to the DSP Code Memory window P1 0 You can track the RAM pointer P1 0 to the DSP Code Memory window P2 0 You can track the RAM pointer P2 0 to the DSP Code Memory window P0 1 You can track the RAM pointer P0 1 to the DSP Code Memory window P1 1 You can track the RAM pointer P1 1 to the DSP Code Memory window 3 24 UMO00000 DSP1 198 ZiLOG P2 1 You can track the RAM pointer P2 1 to the DSP Code Memory window When you right click on your two button mouse the following items are displayed Clear Hill Download Application Download DSP Code Memory Upload DSP Code Memory Debug 289321 Debug SET BRK 1 cura CLEAR ALL ADD STEP ovrn Z89221 Debug 28932102ZEM User s Manual 4 P1 0 4 amp P2 1 4 amp P2 1 P2 1 L00P 4 P2 1 L0oP 4
72. uded with your emulator to eliminate other possible known problems If a hardware failure is suspected contact your local ZiLOG representative for assistance INITIAL SCREEN DOES NOT APPEAR The initial ZiLOG screen does not appear after selecting a COM port and a message is displayed that begins Time out while reading 1 Check the RS 232 cable connection or try another cable that is known to be good 2 Check if transmit receive signals need to be swapped NOTE Onsome DB9 connectors for the COM ports the transmit receive signal may be swapped and a Null Modem adapter may be required Verify that the power supply is connected and turned On and that power is available Verify that the power supply is set at the correct voltage Check that the power supply can supply the required 1 2 Amp current to the emulator Ensure that the correct crystal oscillator is installed Check selected port using another application or select another COM port U UM000000 DSP1198 5 1 289321022 User s Manual Introduction ZiLOG XTAL OSCILLATOR CONTENTION Ensure that J9 and J10 are set to the appropriate position CAN T OPEN WINDOWS MESSAGE If the Can t Open Windows message appears while attempting to open a window using the GUI software there may not be enough memory within the Microsoft Windows environment to properly run the GUI soft ware Try closing the other active applications or exit and reenter the
73. ution of the DSP program Execution stops when it hits a breakpoint Activation of this button terminates execution Activation of this button sets the program counter to the address in the Jump field field 6 The corresponding line of code is highlighted in the Trace Buffer field 8 and Code List field 9 fields Activation of this button causes a jump to the address located at the reset vector location in the code Activation of this button sets a breakpoint at the address in the Set Breakpoint Input field field 2 The address is then added to the Breakpoint List field 1 Activation of this button advances the program counter the number of steps in the Step Editing field field 7 When the value is set to 1 the STEP button single steps through the code without causing a RESET STEP OVER Activation of this button advances the program counter a single step That is one assembly instruction is executed When the current instruction is a CALL instruction subsequent code is executed in real time until the program returns from the subroutine STEP OVER has the same effect as setting a breakpoint at the instruction immediately following the current one and executing the GO command When the Z89321Debug dialog box is displayed the following menu is displayed File View OTP Run FontSize Window Help 3 28 UMO00000 DSP1 198 289321022 User s Manual ZiLOG Summary of Menus
74. wing recommended instructions appropriately initialize the peripherals ext7 15 1 ext3 68h 7 0000 0000 0110 1000 1 wait for reading SRAM reading buttons d ext7 4 1 0 ld ext2 a switch OFF all the LEDs Review any additional external ports used regarding the need for wait states External Data Memory The external ports used for Data Memory include Table 3 3 External Data Memory External Ports Fun _ EXT 0 SRAM Address Write Only EXT 1 SRAM Data Read Write This memory is primarily for array storage Write the desired first address then write or read data as many times as needed Addresses increment automatically after each access to memory This feature speeds up access to the array in most applications If you want to read and write to the same address you must write the address before each access 3 42 UMO00000 DSP1 198 28932102 ICEBOX USER S MANUAL CHAPTER 4 ZiLOG Totally Logical SAMPLE SESSION DSP EMULATOR SAMPLE SESSION This sample session is designed to introduce you to the features of the DSP graphical user interface GUI software and thoroughly acquaint you with the various GUI windows you will be using in this program For best results follow the steps in sequential order Topic headings such as Using the Debug Window have been added so you can better locate how to information Additional information is available in Chapte
75. y section moves to address 0008h olx 289321 Debug E ser STEP ourn 9321 Debug 0000 0001 0002 0002 0004 0005 0005 0007 START amp EXT 4 amp P1 0 2 1 2 1 2 1 100 amp GP2 1 LOOP amp 55 amp 155 4 P2 1 100 2 1 4 P2 1 LOOP 4 amp P2 1 Figure 4 23 Z89321 Debug Window After Jump UMO00000 DSP1 198 Z8932102ZEM User s Manual ZiLOG Sample Session 36 Click on RESET to return the current line to the top of the code 289321 Debug je 0000 E 0001 ADD 1 CLEAR I A aP2 1 CLEAR ALL A PZ 1 2 1 1 00 4 PZ 1 LO0P 455 155 4 P1 0 4A PZ 1 LO00P P2Z 1 4 P2 1 STEP HALT P2 89321 Debug Figure 4 24 Z89321 Debug Window After RESET 37 Click on Halt to stop execution 38 Double click on the 000F in the Label section of the window to put the 000Fh address inthe SET BRK field then click on SET BRK A breakpoint is set at address 000Fh Z89321 Debuq dol xj CLEAR BRE OOOF CLEAR ALL DOOF SUB LABE SUB 0010 SUB A P1 0 0011 SUB A QP2 1 0012 SUB 4 855 0000 ADD LABEL SUB A 155 0018 CP_LABEL SUB A B8P1 0 0000 START SUB A 88P2 1 000 SUB LABEL SUB 1 0 SUB 2 1 CP LABEL CP A EXT CP A P1 0 CP 2 1 CP 1 0
76. ything unusual such as unexpected sounds and smells occurs the first time you turn the power supply ON quickly turn the power switch OFF and check your connections Check the 9V DC wall adapter and ensure that the adapter has the rated 1 2A current After power up press the RESET button to reset Z89321 02 emulator Pressing the RESET button avoids bus contention on the I O lines Power Down When powering down perform the following steps 1 Power down the target application board if it has its own power supply 2 Power down the emulator NOTE Refer to the complete Electrical Safeguards page of this manual EMULATOR OPERATION Resetting Pressing the RESET button on the emulator resets the state of the target device and much of the status that you establish using the GUI For example it resets the emulated ROM size and clears all breakpoints If your application board drives the RESET pin of the DSP socket Low the target DSP is reset For example the Program Counter is set to the address set by the reset vector in the code but most of the other GUI and emulator settings are not affected UMO00000 DSP1 198 2 7 289321022 User s Manual Setup and Installation ZiLOG NOTE After reset you must wait until the Ready LED is OFF before starting the GUI software Refer to LED Operation section which is later in this chapter You must always press the RESET button on the emulator before selecting the GUI icon or

Download Pdf Manuals

image

Related Search

Related Contents

Exacompta 75234E business card holder  Panasonic AJ-SD965 VCR User Manual  und Bedienungsanleitung für Gelenkarmmarkisen mit Tragrohr    NEC PlasmaSync® Displays REAL WORLD  SAS PRACTICAL USER'S GUIDE  Samsung MM-G25 Benutzerhandbuch    WWW.BEGLEC.COM Operation Manual Mode d'emploi  MMXパンフ  

Copyright © All rights reserved.
Failed to retrieve file