background image

Z8 GP™ ZGP323 In-Circuit Emulator

User Manual

UM019606-0408

Introduction

16

Figure 11. ZGP323 ICE Front Panel

3. In the wizard, select 

Install from a list or specific location

 

(Advanced)

; click 

Next

.

If the Windows Logo testing dialog appears, select 

Continue Any-

way

.

4. Select 

Search for the best driver in these locations

 and include 

those locations in the search.

5. Browse to one of the following driver directories:

 

<ZDS II Installation Directory>\device drivers\USB

 

<ZDS II Installation CD>\Device Drivers\USB

6. Click 

Next

.

7. Select the appropriate driver, and click 

Next

.

                    ICE Fail LED

ICE Run LED

Note:

Summary of Contents for GP ZGP323 ICE

Page 1: ...Copyright 2008 by Zilog Inc All rights reserved www zilog com ZGP323ICE02ZEMG Z8 GP ZGP323 In Circuit Emulator User Manual UM019606 0408 ...

Page 2: ...ber April 2008 06 Replaced Figure 5 and Figure 11 8 and 16 February 2008 05 Updated Connecting ZGP323 ICE to the Target Pod and Z8 GP Package Support and Ordering Information 5 and 34 December 2007 04 Updated System Requirements Debugger instructions trace event procedure and Figure 12 2 23 20 and 24 September 2007 03 Updated System Requirements Figure 12 and Burn Code from the Current Project 2 2...

Page 3: ... 5 Connecting ZGP323 ICE to a PC 6 Ethernet Port Connection 6 USB Port Connection 15 Sample Project 18 Collecting a Trace 21 Using an Event to Stop Execution 22 Collecting Trace After an Event 24 OTP Programming 25 Burn Code from the Current Project 25 Burn Code from an Existing Hex File 29 LED Indicators 32 External Interface Connectors 32 Using J5 Pin 3 External Trigger Out 33 Using J5 Pin 1 Ext...

Page 4: ...ent tools Once your code is complete use the included OTP programming module to burn your design on to OTP devices Kit Features The kit includes the following features Emulation and OTP Programming support for the Z8 GP Family Emulation Pod for 20 and 28 Pin PDIP Packages Z8 GP ZGP323 Evaluation Board Trace and Event System Ethernet and USB Interface Up to 8 MHz Clock Frequency 2 0 3 6 V VDD ZDS I...

Page 5: ...d Configuration Minimum Configuration PC running MS Windows XP Pro PC running MS Windows 98 SE Windows2000 SP4 Windows XP Pro Pentium III 500 MHz processor Pentium II 233 MHz processor 128 MB RAM 96 MB RAM 65 MB hard disk space 25 MB hard disk space documentation not included Super VGA video adapter Super VGA video adapter CD ROM drive CD ROM drive Ethernet port Ethernet or USB port USB high speed...

Page 6: ... ZGP323 ICE to OTP Programming Module Optional Connecting ZGP323 ICE to a PC You have to reconfigure network settings on the PC or on the ZGP323 ICE before using the emulator Connecting Target Pod Use an appropriate target pod and pin converter to connect the ZGP323 ICE to the target board Figure 1 on page 4 illustrates the ZGP323 ICE top panel connectors and Figure 2 on page 4 illustrates the ZGP...

Page 7: ...606 0408 Introduction 4 Figure 1 ZGP323 ICE Top View Figure 2 ZGP323 Evaluation Board J9 Out In Target Trigger 1 J8 GND 1 J7 Int Target CLK Source 1 OTP Programming P17 P16 Target Interface Target Interface D1 P9 P10 J4 J5 20 PDIP Socket 28 PDIP Socket ...

Page 8: ...he 34 circuit cable from P10 on the emulator to P1 on the 40 PDIP target pod For 20 PDIP and 28 PDIP target pods Connect the 34 circuit cable from P10 on the emulator to P16 on the target pod Emulator connector P9 is not used Connecting ZGP323 ICE to OTP Programming Module Optional After developing and debugging your software follow the steps below to connect the ZGP323 ICE to the OTP programming ...

Page 9: ...he ZGP323 ICE to a host PC using either an Ethernet or USB port To connect the ZGP323 ICE to a host PC using Ethernet see Ethernet Port Connection To connect the ZGP323 ICE to a host PC using USB port see USB Port Connection on page 15 Ethernet Port Connection Follow the steps below to connect the ZGP323 ICE to a host PC using Ethernet 1 Connect a CAT 5 crossover cable from the PC to the Ethernet ...

Page 10: ...CE Figure 4 ZGP323 ICE Rear Panel Ensure the target board is not powered ON 3 Connect a 5 V DC power supply to the ZGP323 ICE The 3 3 V DC and 1 8 V DC power LEDs must illuminate see Figure 5 Contact Zilog support at www zilog com if there is any problem PC ZGP323 ICE DB9 to DB9 Cable CAT 5 Crossover Cable Caution ...

Page 11: ...I and the ZGP323 ICE you must either change the PC s Ethernet settings to match those of the ZGP323 ICE or vice versa If using the PC in a stand alone configuration set the PC s IP address to 192 168 1 21 and its subnet mask to 255 255 255 0 For more details see Changing the PC s Settings to Match the ZGP323 ICE In a networked environment set the ZGP323 ICE IP address and subnet mask to match the ...

Page 12: ...ollow the steps below to change the PC s Ethernet settings The following instructions are for MS Windows XP If your Windows OS is different refer to your MS Windows OS online help for details 1 Open the Windows Control Panel and double click the Network Connections icon see Figure 6 on page 9 Figure 6 Network Connections Note ...

Page 13: ...r Manual UM019606 0408 Introduction 10 2 In the panel labeled LAN or High Speed Internet double click the Local Area Connection icon The Local Area Connection Status window appears see Figure 7 Figure 7 Local Area Connection Status Window ...

Page 14: ... User Manual UM019606 0408 Introduction 11 3 In the Local Area Connection Status window click Properties but ton The Local Area Connection Properties dialog box appears see Figure 8 Figure 8 Local Area Connection Properties Dialog Box ...

Page 15: ...anual UM019606 0408 Introduction 12 4 Select Internet Protocol TCP IP from the scroll down list and click Properties button The Internet Protocol TCP IP Properties dialog box appears see Figure 9 Figure 9 Internet Protocol Properties Dialog ...

Page 16: ...onnect the serial port of the PC to the ZGP323 ICE serial port using the DB9 to DB9 serial cable 2 Launch HyperTerminal on the PC by selecting Start Programs Accessories Communications HyperTerminal The Connection Description dialog box appears 3 Enter the name for a new connection in the Connection Description dialog box and click OK to open the Connect To dialog box 4 In the Connect To dialog se...

Page 17: ...ss Ctrl Z to enter configuration mode 7 Press Ctrl z The emulator command prompt appears Z8 LXM ICE The emulator console prompt is not case sensitive Type help or at the emulator command prompt to see a list of available commands For information on the description of the complete ZGP323 ICE commands see Appendix A ZGP323 ICE Commands on page 35 8 When you have finished configuring the emulator typ...

Page 18: ... is explained below Windows XP Follow the steps below to connect the ZGP323 ICE to a host PC using USB Connection for Windows XP OS version 1 Connect the ZGP323 ICE to the host PC using the supplied USB cable see Figure 10 for ZGP323 ICE rear panel connection Figure 10 ZGP323 ICE Rear Panel Ensure the target board is not powered ON 2 Connect a 5 V DC power supply to the ZGP323 ICE The 3 3 V DC and...

Page 19: ...f the Windows Logo testing dialog appears select Continue Any way 4 Select Search for the best driver in these locations and include those locations in the search 5 Browse to one of the following driver directories ZDS II Installation Directory device drivers USB ZDS II Installation CD Device Drivers USB 6 Click Next 7 Select the appropriate driver and click Next ICE Fail LED ICE Run LED Note ...

Page 20: ...ect a 5 V DC power supply to the ZGP323 ICE The 3 3 V DC and 1 8 V DC power LEDs should illuminate see Figure 5 on page 8 Contact Zilog support at www zilog com if there is any problem In Windows the Found New Hardware wizard must activate auto matically 3 In the wizard click Next 4 Select Search for a suitable driver for my device Recommended click Next 5 Select Specify a location click Next 6 Br...

Page 21: ...he emulator may therefore not con nect to the target In such cases set the Target VCC voltage progres sively lower until a proper connection is established 2 If the ZGP323 evaluation board supplied with the kit is used refer to Z8 GPTM ZGP323 Evaluation Board User Manual UM0180 for technical details and board jumper settings The sample project ledblink_c zdsproj is included in the ZDS II sample di...

Page 22: ...ct the emmulator and the PC If you are using Ethernet communications between the emulator and the PC In the Debugger tab see Figure 12 on page 20 select EthernetEmulator from the debug tool area and click Setup button The Ethernet Configure Driver dialog box appears The IP Address field displays a default IP address 192 168 1 50 Enter the ZGP323 ICE IP address if it has been modified Leave the Por...

Page 23: ...s Debugger Tab 7 In the Debugger tab click Setup button Configure Target window appears 8 Set the Voltage drop down menu to Standalone if the emulator is not connected to a target If the emulator is connected to a target set the Voltage drop down menu to the voltage appropriate for the connected target ...

Page 24: ...ng to exit the debug ses sion The following steps describe two ways to use the Trace and Event system For details on executing the Trace and Event system refer to ZDS II online help and ZDS II Z8 GPTM Family User Manual UM0178 located in the docs directory of the ZDS II CD ROM Collecting a Trace Follow the steps below to obtain a sample trace 1 Collect a simple trace by starting the program stoppi...

Page 25: ...t0 state of its pins with mask Data on Port2 state of its pins with mask Data on Port3 state of its three input pins with mask External Trigger In 0 or 1 The following steps setup and execute an event 1 Select Tools Trace and Event System The Trace and Event System window appears see Figure 13 on page 23 2 Check Enable Event System check box and in the Then section check Break radio button 3 In th...

Page 26: ...w by selecting View Debug Windows Trace 6 In the Trace window click Clear Trace button 7 To reset the Debugger click the Reset button in the toolbar or select Debug Reset 8 Click the Go button or select Debug Go to run the Debugger When the program counter reaches 0044 execution stops on event match 9 Click Get Frames to display the trace information ...

Page 27: ...provides a simple mechanism for single stepping through a pro gram Follow the steps below to single step through a program 1 Reset the program to main by either clicking Reset icon or by selecting Debug Reset Set the Reset to main option by selecting Tools Options In the Options window select the Debugger tab and select the Reset to symbol main check box 2 To step through the program one instructi...

Page 28: ... after the Address column 3 Press Enter The new value is displayed in red For more information on setting filling and reading memory refer to ZDS II User Manual UM0164 on the ZDS II CD ROM and the ZDS II online help OTP Programming Use the ZGP323 ICE OTP Programming Module to burn your program onto a Z8 GP family chip There are two ways to burn an OTP chip 1 Burn Code from the Current Project 2 Bu...

Page 29: ...P chip to be burned into the ZIF socket on the OTP pro gramming adapter Match pin 1 of the chip with pin 1 of the ZIF socket 5 In ZDS II open the project for the code to be burned onto the chip In the Project Settings Debugger Page Target Setup Choose the appropriate voltage level according to your device product specification from the voltage dropdown menu Choose between external or internal cloc...

Page 30: ...Manual UM019606 0408 Sample Project 27 Figure 14 OTP Programming Window ZDS II Current Project Example 8 Click Ram Checksum button to calculate the checksum of the data in emulator RAM Use this to compare with the OTP checksum after burning ...

Page 31: ...e quent burns Select the size of the serial number 1 2 3 or 4 bytes in the Serial Number Size area Enter the starting serial number in the Serial Number field In the Address field enter the address of the serial number 12 Click Blank Check to verify that the OTP chip is actually blank 13 Click Burn to program the OTP chip with the contents of emulator RAM The OTP chip content value is also verifie...

Page 32: ...he OTP chip to be burned and the appropriate package con verter 3 Install the package converter if used into the ZIF socket on the OTP programming module 4 Install the OTP chip to be burned into the ZIF socket on the OTP pro gramming adapter Match pin 1 of the chip with pin 1 of the ZIF socket Stop any current debugging process by selecting Debug Stop Debugging or press Shift F5 to stop debugging ...

Page 33: ...ex File Example 7 Select the appropriate target device from the Device drop down menu 8 In the Hex File section click button and select the hex file to be burned on to the OTP chip 9 If you do not want to pad the hex file select the None button in the Pad File With panel Otherwise select FF 00 or Other button If ...

Page 34: ...mber blank 14 To load a serial number Select Sequential or Pseudorandom button This determines how the serial number is incremented on subsequent burns Select the size of the serial number 1 2 3 or 4 bytes in the Serial Number Size area Enter the starting serial number in the Serial Number field In the Address field enter the address of the serial number 15 Click Blank Check to verify that the OTP...

Page 35: ...er is connected 3 The dual LAN LINK LED on the rear panel see Figure 4 on page 7 indicates Ethernet status The LINK LED indicates that the Ethernet connection is live The LAN LED indicates that data is being trans ferred across the connected network External Interface Connectors There are five external interface connectors P8 P9 P10 J4 and J5 on the ZGP323 ICE as explained below Connectors P9 and ...

Page 36: ...p event occurs pin 3 of connector J5 goes HIGH and stays HIGH as long as the event is active Longer the event window longer the trigger out stays HIGH Using J5 Pin 1 External Trigger In The ZGP323 ICE external trigger in feature can be enabled as follows With the ledblink_c zdsproj project open in ZDS II as described in Sample Project on page 18 select Tools Trace and Event System In the Trace and...

Page 37: ... SSOP adapter from Ironwood P N SOIC20 09 28 SSOP ZGP32302810ZDH 28 PDIP to 28 SSOP adapter from Ironwood P N SOIC28 08 48 SSOP ZLP323ICE01ZAC ZLP323ICE01ZAC 20 PDIP Included in ZGP323ICE02ZEM kit Included in ZGP323ICE02ZEM kit 28 PDIP Included in ZGP323ICE02ZEM kit Included in ZGP323ICE02ZEM kit 40 PDIP Included in ZGP323ICE02ZEM kit ZLP323ICE01ZAC 20 SOIC ZGP32302010ZDS 20 PDIP to 20 SOIC adapte...

Page 38: ... available emulator command shell options bpool Displays buffer pool date Displays current date debugport Configures the TCP port usage debugport displays current settings debugport tcp_port sets debugport to specified TCP port Example debugport 4040 sets debugport to TCP port 4040 devs Not used echo Echoes arguments typed into the command line exit Exits the command shell hang Not used help Displ...

Page 39: ...le ifconfig i 192 168 1 1 s 255 255 255 0 g 192 165 1 254 configures the emulator to use IP address 192 168 1 1 on subnet 255 255 255 0 with gateway address 192 168 1 254 ifconfig dhcp on configures the emulator to use DHCP kill Not used mem displays memory usage information password Not used port Displays port information ps Displays a list of processes running on the ICE by process id number reb...

Page 40: ...r answers to technical questions about the product documentation or any other issues with Zilog s offerings please visit Zilog s Knowledge Base at http www zilog com kb For any comments detail technical questions or reporting problems please visit Zilog s Technical Support at http support zilog com ...

Page 41: ...sonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness Document Disclaimer 2008 by Zilog Inc All rights reserved Information in this publication concerning the devices applications or technology described is intended to suggest possible uses and may be superseded ZILOG INC DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCU...

Reviews: