ZiLOG GP ZGP323 ICE User manual

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Revision History
ii
Revision History
Each instance in the Revision History table reflects a change to this docu-
ment from its previous revision. For more details, refer to the correspond-
ing pages and appropriate links in the following table.
Date
Revision
Level Description
Page
Number
April 2008 06 Replaced Figure 5 and
Figure 11.
8and 16
February
2008
05 Updated Connecting ZGP323
ICE to the Target Pod and Z8 GP
Package Support and Ordering
Information.
5and 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, 20, and
25
July 2007 02 Updated document with latest
company address and
implemented Zilog Style Guide.
All
November
2005
01 Original Issue All

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Table of Contents
iii
Table of Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Kit Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Software Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Hardware Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Connecting Target Pod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Connecting ZGP323 ICE to the Target Pod . . . . . . . . . . . . . . . . 5
Connecting ZGP323 ICE to OTP Programming
Module (Optional) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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, External Trigger In . . . . . . . . . . . . . . . . . . . . . . 33
Z8 GP Package Support and Ordering Information . . . . . . . . . . . . 34
Appendix A–ZGP323 ICE
Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Customer Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
1
Introduction
Zilog’s Z8 GP™ ZGP323 In-Circuit Emulator (ICE) provides Z8 GP chip
family emulation with a Trace and Event system for program debugging
using Zilog Developer Studio II (ZDS II) development 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 II
•
Assembler and Full ANSI C Compiler
•
Documentation
•
Sample OTP Devices

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
2
System Requirements
Table 1 lists the system requirements for running ZDS II.
Software Installation
Follow the steps below to install ZDS II with ANSI C-Compiler:
1. DemoShield program available in the ZDS II installation CD
launches automatically. Otherwise, go to the root of the CD-ROM and
double-click the file launch.exe.
Table 1. ZDS II System Requirements
Recommended 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 or full-speed port
One or more RS-232 communications ports1
Internet browser (Internet Explorer or Netscape) Internet browser (Internet Explorer or
Netscape)
Note: 1 RS232 communication port is not necessary when using USB or default Ethernet IP

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
3
2. DemoShield provides several installation options to install ZDS II,
select Install ZDS II. You can install other software and accompany-
ing documentation later.
3. Follow the instructions on the screen to complete the installation.
Hardware Installation
The ZGP323 ICE features an Ethernet interface, a USB interface, and an
RS-232 serial port. Hardware installation consists of the following:
•
Connecting Target Pod
•
Connecting ZGP323 ICE to the Target Pod
•
Connecting 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 ZGP323 evalua-
tion board included with the kit. The 20- and 28-PDIP target pods plug
into the associated PDIP sockets on the target board. For example, if your
target board has a 20-SOIC socket, mate the 20-PDIP target Pod onto the
20-PDIP to 20-SOIC converter. Then install the target pod and converter
assembly into the board’s 20-SOIC socket

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-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

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
5
Connecting ZGP323 ICE to the Target Pod
After installing the appropriate target pod (and converter, if required) onto
the target development board, connect the ZGP323 ICE to the target pod
as follows:
•
For 40-PDIP and 48-SSOP target pods:
– Connect the 20-circuit cable from P9 on the emulator to P2 on
the 40-PDIP target pod. (The 20-circuit cable is included in the
40/48-pin accessory kit, ZLP323ICE01ZAC, ordered sepa-
rately).
ZLP323ICE01ZAC has been replaced by an improved version,
ZCRMZNICE02ZACG.
– Connect the 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 module so that you
can burn your code onto the OTP chip:
1. Connect the 40-circuit ribbon cable from the ZGP323 ICE OTP Pro-
gramming connector to connector P1 on the OTP programming mod-
ule.
2. The 40-PDIP ZIF socket on the OTP programming module is
designed to accept 40-PDIP OTP chips. The OTP programming
adapters supplied with the ZGP323 ICE allow you to adapt the ZIF
Note:

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
6
socket to accept 20/28-PDIP chip packages.Other adapters are avail-
able separately, see Z8 GP Package Support and Ordering Informa-
tion on page 34 for more information.
After installing the OTP chip into the ZIF socket (or programming
adapter), you can program the chip using the instructions provided in
OTP Programming on page 25.
Connecting ZGP323 ICE to a PC
You can connect the 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 port on
the ZGP323 ICE, see Figure 3.
You can connect the ICE to an Ethernet hub using a CAT-5 patch
cable.
2. Connect the serial COM port on the PC to the SETUP serial port on
the ZGP323 ICE using the DB9-to-DB9 serial cable, see Figure 5 on
page 8.
Note:

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
7
Figure 3. Connecting a PC to the ZGP323 ICE
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:

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
8
Figure 5. ZGP323 ICE Front Panel
Setting Up Ethernet Communications
The default IP address and subnet mask of the ZGP323 ICE are
192.168.1.50 and 255.255.255.0, respectively. To enable communication
between the PC running ZDS II 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 network setup. For more details, see Changing
ZGP323 ICE Settings on page 13.
ICE Fail LED
ICE Run LED

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
9
Changing the PC’s Settings to Match the ZGP323 ICE
Follow 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:

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
13
5. Enter the IP address and subnet mask to match those shown in
Figure 9 on page 12. Leave the remaining fields blank. In this exam-
ple, an IP address of 192.168.1.21 and a subnet mask of
255.255.255.0 are being assigned to the PC. These values connect the
PC to the same network as the ZGP323 ICE unit.
6. Click OK and restart the PC.
To execute a sample project, see Sample Project on page 18.
Changing ZGP323 ICE Settings
Follow the steps below to change the ZGP323 ICE Settings:
1. Connect 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, set the Connect Using drop-down menu to
match the COM port to which the ZGP323 ICE is connected. Click
OK.
5. A COM Properties dialog appears. Enter the following port settings
and click OK. HyperTerminal should automatically attempt a connec-
tion. Otherwise, select Call ––> Connect.
Bits per second 57600
Data bits 8
Parity None
Stop bits 2
Flow control None
Note:

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
14
6. When the emulator is turned on or reset, a ZGP323 ICE console boot-
up message appears in the HyperTerminal. A typical boot-up message
is shown below:
ZiLOG Z8 LXM ICE
Firmware Version 2.0, Build (Aug 22 2005 08:14:37)
Copyright (C) 2005 ZiLOG, Inc. All Rights Reserved.
Adding emac driver...
Attempting to establish Ethernet connection.
10 Mbps Half-Duplex Link established
IP Address: 10.1.7.95
IP Subnet: 10.1.0.0/255.255.0.0
IP Gateway: 10.1.1.254
Press '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, type exit to exit
the command shell.
9. Press Alt+F4 to exit HyperTerminal.
10. Type reboot and press Return or cycle the power on the ZGP323
ICE for the new settings to take effect.
11. The hardware is now configured and ready for application develop-
ment.
To execute a sample project, see Sample Project on page 18.
Note:
Note:

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
15
USB Port Connection
To connect the ZGP323 ICE to your PC using a USB port, load the appro-
priate driver from the ZDS II installation directory or CD-ROM provided
with your emulator. ZDS II software is available for download from
www.zilog.com. The procedure of loading the appropriate driver, depends
on your Windows OS version and 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 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 should activate auto-
matically.
Caution:

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:

Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408 Introduction
17
8. Click Finish to complete the installation.
Windows 2000/Windows 98SE
Follow the steps below to connect the ZGP323 ICE to a host PC using
USB Connection for Windows 2000/Windows 98SE OS version:
1. Connect the ZGP323 ICE to the host PC using the supplied USB
cable, see Figure 10 on page 15 for ZGP323 ICE rear panel connec-
tion.
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 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. Browse to one of the following driver directories:
<ZDS II Installation Directory>\device drivers\USB
<ZDS II Installation CD>\Device Drivers\USB
7. Click Next.
8. Select the appropriate driver, and click Next.
9. Click Finish to complete the installation.
Caution:
Table of contents
Other ZiLOG Motherboard manuals

ZiLOG
ZiLOG Z8 Encore! User manual

ZiLOG
ZiLOG Z8 GP ZGP323 User manual

ZiLOG
ZiLOG Z8 Encore! XP F0822 Series Flash MCU User manual

ZiLOG
ZiLOG Z8F08A28100KITG User manual

ZiLOG
ZiLOG Z51F0811 MCU User manual

ZiLOG
ZiLOG Z8 Encore! User manual

ZiLOG
ZiLOG Z183 EMAC User manual

ZiLOG
ZiLOG Z8 Encore! 8K/4K MCU User manual