ZiLOG Worldwide Headquarters 910 E. Hamilton Avenue Campbell, CA 95008
Telephone: 408.558. 8500 Fax: 408.558. 8300 www.ZiLOG.com
Z86C36
ICEBOX
User Manual
UM002202-1001
Z86C36
ICEBOX
UM0022 02-1001
This publication is subject to replac ement by a later edition. To determine whe ther a later
edition exists, or to request copies of publications, contac t:
Zi LOG Wo rl d w i de H e adq u a rters
910 E. Hamilton Avenue
Campbell, CA 95008
Te lephone: 408.558.8500
Fax: 408.558.8300
www.ZiLOG.com
Document Discl aimer
ZiLO G is a registered trad em ark of ZiLOG Inc. in the United States and in other countries. All ot her produc ts
and /or servi ce names menti oned herein may be trademarks of the companies wi th wh ich they are associated.
©2001 by ZiLOG, Inc. All rights reserved. Information in this publication concerning the devices,
applications, or technology described is int ended to suggest pos sible us es and may be superseded. ZiLOG,
INC. DOES NOT ASSUME LIABILI TY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF
THE INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED I N THIS DOCUMENT. ZiLOG
ALSO DOES NOT ASSUME LIA BILITY FOR INTELLECTUAL PROPERTY INFRINGEMENT
RELATED IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR TECHNOLOGY
DESCRIBED HEREIN OR OTHERWISE. Except with the express writte n app rov al of ZiL OG, use of
information, devices, or technology as cri tical co mp onents of l ife support sy stems is not aut horized. N o
licenses are conveyed, implicit ly or otherwise, by this document under any int ellectual property r ights.
Z86C36
ICEBOX
Table of Contents UM0022 02-1001
iii
Table of Contents
Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii
List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v
List of Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
ICEBOX Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Supported ZiLOG Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Hardware Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Power Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Serial Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
GUI-Supported Compiler, Assembler Formats . . . . . . . . . . . . . . . . . . . .4
Kit Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Additional Items Not Supplied . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Optional Recommended Item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
Computer Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
Minimum Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
Contacting ZiLOG Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . .7
Setup and Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Hardware Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Quick Installation Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Complete Installation Instructions . . . . . . . . . . . . . . . . . . . . . . . . . .12
Set Power Jumper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
Installing a New ICE Chip . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
Software Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
ICEBOX Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Resetting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Z86C36
ICEBOX
UM0022 02-1001 Table of Contents
iv
LED Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Using ZDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Select the ICEBOX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Open a Project and Add Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Available Debug Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9
Appendix A: Troubleshooting Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Error Opening Serial Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
C o u nter Jumps to U n e x p ec t ed A d d re s s . . . . . . . . . . . . . . . . . . . . . . . . 32
ZDS Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Can Not Open Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Out of Synchronization with the Emulator . . . . . . . . . . . . . . . . . . . 33
Appen dix B: ASCI I C haracter Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5
Appendix C: Problem/Suggestion Report Form . . . . . . . . . . . . . . . . . . . 41
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Z86C36
ICEBOX
List of Figures UM0022 02-1001
v
List of Figures
Figure 1. Hook-Up Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Fig u re 2. Z86C36 ICEBOX External T o p V i ew. . . . . . . . . . . . . . . . 11
Figure 3. J1 Jumper Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 4. ICE Chip Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Figure 5. Closing the ICE Chip Locking Lever . . . . . . . . . . . . . . . . .18
Figure 6. New Project Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . .24
Figure 7. Emulator Configuration Dialog Box . . . . . . . . . . . . . . . . . .25
Figure 8. Project Viewer Window. . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 9. Insert Files into Project Dialog Box . . . . . . . . . . . . . . . . . .27
Figure 10. Project Viewer Window with File . . . . . . . . . . . . . . . . . . . 28
Z86C36
ICEBOX
UM002202-1001 List of Figures
vi
This page intentionally left bla nk.
Z86C36
ICEBOX
List of Tables UM0022 02-1001
vii
List of Tables
Table 1. Z86C5020GSE ICE Chip Supported Products
(Z86C3500ZEM Target Emulator Selection) . . . . . . . . . . . .2
Table 2. Z86C5120GSE ICE Chip Supported Products
(Z86C3600ZEM Target Emulator Selection) . . . . . . . . . . . 2
Table 3. Front LED Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Table 4. Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Table 5. ASCII Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
Z86C36
ICEBOX
UM0022 02-1001 List of T ables
viii
This page intentionally le ft blank.
Z86C36
ICEBOX
UM0022 02-1001 Preface
ix
Preface
We recommend that you read and under stand everything in this manua l
before se ttin g up and using the pr oduct. However, we recogniz e tha t users
have dif fe rent sty les of lea rning. Therefor e, we ha ve des igned th is manu al
to be used either as a how-to procedural manual or a reference guide to
important data.
The following conventions have been ad opted to provide clarity and ease
of use:
Times 10-point all-caps is used to highl ight the following items:
commands, displayed m essages
menu sele ctions, pop-up lists, button, fields, or dialog boxes
modes
pins and ports
program or application name
instructions, registers, signals and subroutines
an action performed by the softwar e
icons
Courier Regular 10-point is used to highlight the follow ing
items
bit
software code
file nam es and paths
hexadecimal value
Z86C36
ICEBOX
UM0022 02-1001 Preface
x
Grouping of Actions Within a Procedur e Step
Actions in a procedure step are all pe rformed on the same window or
dialog box. Actions perform ed on different windows or dialog boxes
appear in separate steps.
Z86C36
ICEBOX
Prefac e UM0022 02-1001
xi
Follow the precautions listed below to avo id permanent damage to the
emulator.
1. Always use a grounding strap to prevent damage resulting from
electrostatic disc harge (ESD).
2. Power-Up Precautions.
a. Ensure that a ll power to the emulator and the target application (if
any) is turned OFF.
b. Connect the target pod to the target appli cation (if an y).
c. Power up the emulator, the n press the RESET button.
d. Power up the target applicatio n (if any).
3. Power- Down Preca utions.
When powering down, follow this proce dur e in the precise order
shown below:
a. Halt emulat ion.
b. In ZDS select Reset from the Build or Debug Menu.
c. Power down the tar get application boa rd (if any).
d. Remove the tar get pod.
e. Power down the emulator.
Electrical Safeguards
Z86C36
ICEBOX
UM0022 02-1001 Preface
xii
1. Refer to the Precaution List section of the Product Informati on
sheet for additional operating pr ecautions specific to various devices.
2. Do not leave the emulator powered up with the RS-232C cable
connected to a powered-down PC.
3. Before inserting tar get pod into tar get application boa rd, refer to
Chapter 2 to deter mine appropriate jumper sele ctions and options.
Notes:
Z86C36
ICEBOX
UM0022 02-1001 Introduction
1
1Introduction
OVERVIEW
Congratulations for select ing a fine development tool! The Z86C36
ICEBOX provides in-circuit emulation f or the Z8 family of UART
controllers. The IC EBOX consists of an emulati on daughter board that is
plugged into a 32 -MHz motherboa rd using P1 and P2 headers. The
Z86C50 ICE chip is use d as the emulat ion processor f or devices wit h less
than or equal to 32K of code mem ory. The Z86C51 ICE chip is used as
the emula tion processor for devices with 64K of c ode memory, tha t is,
Z86C36 and Z86C46.
The 32 MHz mother board has been modifi ed for 64 K operation and
provides host communication interface, cont rol processor, I/O space
decoding, a nd LED indicator. The ICEBOXes are designed to be used
with ZiLOG Developers Studio, giving the user a total pack age to write,
edit, and debug their applications.
ICEBOX FEATURES
Key features of the Z86C36 ICEBOX i nclude:
Supports up to 64 K of ROM
The capa bility to vary the operating voltage from 3.05.0 V
Supports in-circuit emulation on target system s tha t opera te fr om
3.05.5 V
The user ca n choose to power th e Ice chip f rom either the I CEBOX or
target board
Supports UART devices that operate up to 16.384 MHz
Z86C36
ICEBOX
UM0022 02-1001 Introduction
2
Emulates and supports all the features an d functions for a spec ified
Z8 UART microcontroller
Multitaskin g all ows the user to use other W i ndows applica tion s while
ZiLOG Developer Studio (ZDS) is running
Supported ZiLOG Devices
Ta ble 1 shows products supported by the Z86C5020GSE ICE chip.
Ta ble 2 shows the products supported by the Z86C5120GSE ICE chip.
Table 1. Z86C5020GSE I CE Chip Supported Produ cts (Z86C3500ZEM
Target Emul a tor Selecti o n)
Packages Emulation OTP Required Accessories
28 P DI P Z86C34C35 N/A 28 PDIP emulation pod
28 S OI C Z86C34C35 N/A 28 PDIP emulation pod and a DIP to SOIC
conversion ad apter from Emulation Technology
(AS-DIP-6-028-S003-1 or AS-DIP-6-028-S003-2)
28 P L CC Z86C34C35 N/A 28 PLCC emula tion pod
40 P DI P Z86C44C45 N/A 40 PDIP emulation pod
44 PLCC Z86C44C45 N/A 44 PLCC emula tion pod
44 QF P N/A N/A N/A
Table 2. Z86C5120GSE ICE Chip Supported Products (Z86C3600ZEM
Target Emul a tor Selecti o n)
Packages Emulation OTP Required Accessories
28 P DI P Z86C36 N/A 28 PDIP emulation pod
Z86C36
ICEBOX
Introduc tion UM0022 02-1001
3
The Z86C3600ZEM becomes the Z86C3500ZEM when you use
a Z86C50 ICE chip.
28 S OI C Z86C36 N/A 28 PDIP emulation pod and a DIP to SOIC
conversion adapter from Emulation Tec hnology (AS-
DIP-6-028-S003-1 or AS-DIP-6-028-S003-2)
28 P L CC Z86C36 N/A 28 PLCC em ulation pod
40 P DI P Z86C46 N/A 40 PDIP emulation pod
44 PLCC Z86C46 N/A 44 PLCC em ulation pod
Table 2. Z86C5120GSE ICE Chip Supported Products (Z86C3600ZEM
Target Emul a tor Selecti o n) (Continued)
Packages Emulation OTP Required Accessories
Notes:
Z86C36
ICEBOX
UM0022 02-1001 Introduction
4
HARDWARE SPECIFICATIONS
Operating Conditions
Operating Humidity: 10%-90% RH (Noncondensing)
Operating Temperature: 20 °C ±10 °C
Clocks: The control processor operates at 7.3728
Mhz; the emulation processor operates at
16.384 Mhz
Serial Baud Rate: 57,600 bps
Power Requirements
This ICEBOX requires an external 5VDC power suppl y.
Operating Voltage (Input): +4.75 VDC to +5.25 VDC Max
(+5.0 VDC typical)
Operating Voltage (Tar get): +3.0 VDC to +5.5 VDC Max
Operating Current: 2.5 A typical ( maximum 3.0 A)
Serial Interface
ZiLOG Developer S tudio communicates with the Z86C36 ICEBOX using
a DB25, RS-232 and DCE cable (TxD, RxD only).
GUI-SUPPORTED COMPILER, ASSEMBLER FORMATS
The ICEBOX supports objec t (bina ry or Intel hex) code f iles produced by
ZiLOG Developer Studio (ZDS) a nd ZiLOG Macro Cr oss Asse mbler
(ZMASM).
Z86C36
ICEBOX
Introduc tion UM0022 02-1001
5
KIT CONTENTS
The ICEBOX kit conta ins one of each of the following items:
Z86C36 ICEBOX
40 PDIP emulation pod with cable ZiLOG: 93C0024-001
44 PLCC emulation pod ZiLOG PC: 99C0273-001
28 PDIP emulati on pod ZiLOG PC: 99C0742-001
28 PLCC emulation pod ZiLOG PC: 99C0512-001
Power Cable with Ba nana Plugs
RS-232 Serial Cable, DB 25
ZiLOG Developer Studio Insta llation CD
Z86C36 ICEBOX User Manual
ZiLOG Developer Studio manual containe d on the ZDS installation
CD-ROM.
If the ZDS CD-ROM does not conta in the manual, it can be
downloaded from the ZiLOG web page at www.zilog.co m.
Additional Items Not Supplied
The following item is required but a re not currently supplie d in the
ICEBOX kit:
A source of power (+5 VDC typical) for the ICEBOX. This c an be a
laboratory power supply with current r ating of at least 2.5 ampere.
Note:
Z86C36
ICEBOX
UM0022 02-1001 Introduction
6
Optional Recommended Item
The following items are recommended:
Your tar get design. The target design is a wire-wrapped or printed
circuit prototype that includes a socket for the target device that the
ICEBOX cable/pod plugs into.
C-Compiler
Contact a ZiLOG Sales Office or Distributor to order a copy of the
Z8 C-Compiler. Refer to our website for a representative ne ar you:
http://www.zilog.c om/sales/.
Oscilloscope
Log i c Ana l yzer
COMPUTER REQUIREMENTS
Minimum Requirements
IBM PC (or 100-percent compa tible) Pentium based m achine
75 MHz or more with 16 MB RAM
VGA Video Adapter
Hard Disk Drive (12 MB free space)
CD-ROM Drive (a CD-ROM drive is not needed if you download
ZDS from the web at www.zilog.com)
RS-232 COM P ort
Mouse or Pointing Device
Microsoft Windows 95/98/NT
Note:
Z86C36
ICEBOX
Introduc tion UM0022 02-1001
7
The following enhancements to the minimum requirements are
recommended:
166-MHz IBM PC
SVGA video adapter
Printer
CONTACTING ZILOG CUSTOMER SUPPORT
ZILOG has a worldwide customer support cente r located in Austin,
Te xas. The custo mer supp ort center is open from 7 a.m. to 7 p.m. Central
Time.
The customer support toll-free number for the Unite d States and Canada
is 1-877-ZiLOGCS (1-877-945-6427) . For calls outside of the Unite d
States and Ca nada dial 512-306-4067. The FAX numbe r to the customer
support center is 512-306-4072. Customers can also contact the suppo rt
center through our website a t http://www. zilog.com/support/.
For valuable information about hardwar e and softwa re development tools,
go to ZiLOG home page at http://www.z ilog.com. The late st released
version of the ZDS can be downloaded from this site.
Z86C36
ICEBOX
UM0022 02-1001 Introduction
8
This page intentionally left blan k.
Z86C36
ICEBOX
UM002202-1001 Setup and Installation
9
2Setup and Installation
HARDWARE INSTALLATION
Befo r e ins ta llin g the hard ware, ref er to Fi gu re 1 for a diagr am on
connecting the IC EBOX to a PC and powe r supply. F igure 2 provides
option jumper loc ations.
Quick Installation Instructions
To install the hardware using a benc h power supply, perform the
following.
1. Set the correct jumper setting for powering the ICE chip and target
board. See Set Powe r Jumper on page 12.
2. Connect the power supply to the emulator and ensure it is set to
provide + 5.0 V and 2.5 A.
3. Connect the serial cable to the PC.
4. Connect the ICEBOX to the target board (if performing in-circuit
emulation).
5. Set up the oscillator and option jumpers.
6. Select the ICE chip that you want to emulate.
7. Power up the ICEBOX.
2
Z86C36
ICEBOX
UM002202-1001 Setup and Installation
10
Figure 1. Hook-Up Diagram
Each ICEBOX is shipped with a 16.384 MHz oscillator. The user
can also use the targets osc illator or a crystal/ ceramic resonator
to clock the ICE chip, for more information see Jumper Setting s
on page 20.
+
-
Note:
Z86C36
ICEBOX
Setup and Installa tion UM0022 02-1001
11
Figure 2. Z86C36 ICEBOX External Top View
RS-232C Power Reset
LEDS
Target P od
Logic analyzer connector*
Debug
pins
J2
J3
J7
Voltage
adjuster
J5
J6
Oscillator
Reset
J1
IC E ch i p ziff
socket
U1
*This is n ot supported.
Z86C36
ICEBOX
UM002202-1001 Setup and Installation
12
Complete Installation Instructions
The following procedure s illustrate a complete ste p-by-step guide on
installing the ICEBOX.
Set Power Jumper
The Z86C36 ICEBOXes allow the user to power the ICEBOXes and
target from a variety of diff erent sources. Before powering the ICEBOX
the use r should select the power configuration.
The procedures below must be followed exactly as described.
Before begin ning th e proce dures study Figure 3 , whi ch shows a
schematic of the J1 pow er jum per. Failure to follow the proce-
dures will result in total damage to the IC EBOX or target.
Choose from one of the following options when selecti ng the power
source:
Jumper pin 1 to pin 2 to power the ICE chip with the ICEBOXs
adjustable regulator
Jumper pin 3 to pin 4 to power target with the ICEBOXs adj usta ble
regulator
Jumper pin 1 to pin 2 and pi n 3 to pin 4 to power both the ICE chip
and t arge t from the ICE B O Xs adjustable regulator
Jumper pin 2 to pin 4 to power the ICE chip from the target
When powering the target from the ICEBOX ensure that the
targets power supply is disconnected.
Caution:
Note:
Z86C36
ICEBOX
Setup and Installa tion UM0022 02-1001
13
Figure 3. J1 Jumper Schema tic
Connect the Power Supply
1. If the power supply allows voltage adjustment:
Turn the power supply on and adjust it to +5 V
Adjust the limiting adjustment, if present, to at le ast 2.5 A
2. Turn the supply of f.
3. Locate t he power c able (re d wire, b lack wi re, an d banana pl ugs on t he
other end). P lug in the black banana plug into the black jack on the
power supply (l abeled COM, GND, or with the ground sym bol). Plug
the red plug into the red jack on the power supply (la b el ed +, + V or
+5 V).
4. Plug the white connector on the other end of the cable into the
matching 4-pin connector on the back side of the ICEBOX. This
connection is keyed to ensure against an impro per con nection.
The ZiLOG P ower Supply Accessory Kit (ZPS 05V00ZAC),
which is sold separately, provide s a fixed-5 V Universal Output
Power Supply, accepts 110 V to 220 V AC input, a nd includes a
power cable and an in-line jack cable.
Always check the supply voltage before plugging in the power
cord.
Target
ICEBOX Adjust able
Voltage Regulator
2
1
34
ICE chip
Note:
Caution:
Z86C36
ICEBOX
UM002202-1001 Setup and Installation
14
Connect the Serial Cable to the PC
Locate the serial cable. Connect the male end to the female connector on
the back of the ICEBOX, and the female end to eithe r the COM1, COM2 ,
COM3, or COM4 connector of the host PC, see Figure 1.
If conne ctor availability is lim ited to a 9-pin COM1 through
COM4, then use either a different cable or a 25-pin to 9-pin
converter. This converter is available at any elec tronics store f or a
nominal fee.
Connect to the Design
Perfor m the foll ow ing steps to con n ect to the t arge t desi gn:
We ar a properly grounded wrist str ap or sim ilar ESD protection
before continuing.
1. Locate the emulation cable for the device.
2. Plug the c able into the tar get device. Ensure that t he pin 1 m arking ( as
indicated by the red mark on the ribbon cabl e) matches pin 1 on the
target board.
3. Plug the other end of the cable s into target pod on top of the
ICEBOX. See Figure 2 for the location of the target pod.
4. Select the power source for the ICE chip by configuring the J1
jumpe r. See Tabl e 4 for mo re info rm at ion o n jum per sett ings and
Figure 2 for the location of the J1 jumper.
5. If the target and ICEBOX are usin g separate power supplies, ensure
that the ICE chip voltage matches the targets device voltage. Adjust
the voltage by per forming the following steps:
a. Measure the voltage of your target.
b. Locate the voltage adjuster on top of the ICEBOX. See Figure 2
for the location of the voltage adjuster
Note:
Caution:
Z86C36
ICEBOX
Setup and Installa tion UM0022 02-1001
15
c. Attach the volt meter lead to e it her pin 1 or 3 on the J1 j umper an d
ground.
d. Power the ICEBOX with the target device disconnected.
e. Turn the voltage adjus ters scr ew until the voltmeter s read-out
matches the target devices volta ge.
Failure to match the target devices voltage with the ICE chips
voltage cou ld resul t in damage to the ICEBOX, targe t device, or
ICE chip.
Pow er th e I CE B OX
If anything unusua l (such as an unexpected sound and/or smell) oc curs
when turning on the power supply, turn off the power supply and chec k
the setting for the J1 jumper. See Set Power Jumper on page 12. If the
power supply allows voltage adjustment, adjust it again to +5 V. The
power supply output may measure less than +5 V because of the load of
the ICEB OX. If your power supply ha s a current meter, ensure that the
ICEBOX is drawing within the rated curre nt.
After power-up, press the RESET button to reset the ICE chip. (Pressing
the RESET but ton avoid s bus cont ent ion on the I/O li nes.) If the ICEBOX
is not powering your design through the VCC pin, turn on the power
supply of the design.
If your design already has a power supply, do not power your
design from the ICEBOX VCC pin.
When powering down, follow the procedure described below:
1. Halt emulation.
2. In ZDS select R eset from the Build or De bug Menu.
3. Power down the target application boa rd (if using it s own power
supply).
4. Power dow n the ICEB OX.
Caution:
Caution:
Z86C36
ICEBOX
UM002202-1001 Setup and Installation
16
Refer to the complete Electrical Safeguards shown in the preface
of this manual.
Installing a New ICE Chip
The Z86C36 ICEBOX comes with the Z86C51 I CE chip. Under ordinary
circumstances, the user should never have to remove this ICE chip. If for
some reason the ICE chip nee ds to be replaced, follow the procedures
below. See Figure 4 and Figure 5 for more information.
Replace the Z86C51 ICE ch ip with the Z86C50 ICE chip to
support devices with 32K code size or less.
Failure to follow the procedures below could result in damage
to the ICEBOX.
Perfor m the foll ow ing steps to repl ace the ICE ch ip .
1. Disconnect all power to the ICEBOX
2. Move the ICEBOX ziff socket labeled U1 to the upright position and
remove the ICE chip. See Figure 2 for the location of the ziff socket.
3. Place the new ICE chip into the U1 ziff socket. Ensure that the ICE
chips pin 1 matches pin 1 on the U1 ziff soc ket.
4. Close the zif f sock et loc king lever.
A do t in the corn er of the pr o cess o r indi cates the ch ip s pin 1
location.
Note:
Note:
Caution:
Note:
Z86C36
ICEBOX
Setup and Installa tion UM0022 02-1001
17
Figure 4. ICE Chip Installation
Z86C36
ICEBOX
UM002202-1001 Setup and Installation
18
Figure 5. Closing th e ICE Chip Locking Leve r
SOFTWARE INSTALLATION
For more information on installing ZDS, ref er to the user manual that is
included on the installation CD-ROM or download ZDS literature from
the ZiLOG web page at www.zilog.com.
ICEBOX OPERATION
The following topics guide the user on how to operate the ICEBOX and
configure jumper settings.
Z86C36
ICEBOX
Setup and Installa tion UM0022 02-1001
19
Resetting
Press the RESET button on the ICEBOX to reset the state of the target
device and the status that was est ablished using ZDS.
For example, the ICEBOX sets the program counter to 000Ch .
After r eset, wait until the Ready LED is ON and has finished blinking
before starting ZDS. Refer to the LED Operation section of this chapter
for more de tails.
Always press the RESET button on the ICEBOX before starting
ZDS.
LED Operation
ZiLOG ICEBOXes use LEDs to co mmunicate the dif ferent hardware
states. The following ta ble gives a description of the LEDs. The
ICEBOXs LEDs are located o n the righ t fro nt of the ICEBO X. Se e
Table 3.
Table 3. Front LED Assi gn me nts
LED Indication Description
READY On
Off Communicating in Bis ync Mode and waiting for command
Communicating in ASCII Mode or executing Bisync command
RUN On
Off Running user code
Not running user code
OTP On
Off The ICEBOX is perf ormi ng OTP programming
The ICEBOX complet ed OTP progr ammi ng
PWR On
Off
Blink
IC EBOX is powered up and Self Test is com p leted
Power is off
ICEBOX is self - testing
Note:
Z86C36
ICEBOX
UM002202-1001 Setup and Installation
20
Jumper Settings
Ta ble 4 lists jumper setting that the are easily configured by the user. See
Figure 2 for the location of the jumpers.
Port 3 pin 4 can be used as an output pin or an external memory
indicator. If P3.4 is used for external memory and not data
memory, then jumper pin 2 to pin 4 on the J6 j umper.
Table 4. Jumper Se tti n gs
Jumper Pin Position Description
J1 1-2 In Powers the ICE chip with ICEBOXs adjustable voltage
regulator (defa ult), for more informat ion s ee Figure 3
J1 3-4 In Powers the Target with ICEBOXs adjustable voltage regulator
J1 2-4 In Ta rg et po wers the IC E chip
J2 1-2 In Y2 Crystal to XTAL2
J2 2-3 In Us e r Cr y s tal to X TA L2
J3 1-2 In Y2 Crystal to XTAL1
J3 2-3 In Us e r Cr y s tal to X TA L1
J3 2-4 In Can n ed Oscillator to XTAL1 (Default)
J5 1-2 In Not installed (factory settings)
J6 2-4 In Enable if P3.4 used for ext ernal memory/DM (see note)
J6 2-3 In P3.4 not used (default)
J6 1-2 In Ground signal
J7 1-2 In Default setting
J7 2-3 In Output of PAL (Programable Array Lo gic)/not used
Note:
Z86C36
ICEBOX
Setup and Installa tion UM0022 02-1001
21
The user can adjust the voltage of the ICE chip to matc h the tar gets
voltage using the ICEBOXs R55 Voltage Adjuster. S ee Figure 2 for the
location of the voltage adj uster.
Z86C36
ICEBOX
UM002202-1001 Setup and Installation
22
This page intentionally le ft blank.
Z86C36
ICEBOX
UM0022 01-0301 Overview
23
3Overview
USING ZDS
This IC EBOX is fully compatible with ZiLOG Developer Studio (ZDS )
software. The f ol lowing ste ps briefl y desc ribe th e pr ocedure s neces sary to
setup a nd cre ate projects with the Z86C36 ICEBOX. A sum mary of the
ICEBOXs available debug windows is also inc luded at the end of this
chapter.
For more detailed information on using ZDS, refer to the ZDS User
Manual (in PDF format) located on the inst allation CD-ROM, or
download the latest information from our web site at www.zilog.com.
Select the ICEBOX
Perfor m the foll ow ing steps to sel ect the IC EB OX an d creat e a new
project:
1. Open ZDS by selecting St art>Programs>Zilog Developer Studio>
ZDS.
2. Choose New Projec t from the File menu. The New Proj ect dialo g box
appears as show in Figure 6.
If the pr o ject has already b een cre ated , sel ect Target from the
Project menu and perform the following steps that are app licable
for the ZiLOG MCU Database dialog box.
Note:
3
Z86C36
ICEBOX
UM0022 01-0301 Overview
24
Figur e 6. New Pro j ec t Dialog Box
3. Select Family in the Selection by field.
4. Select Z8 fr om the Master pop- up list.
5. Select a microcont roller from the Z8 fa mily in the Project Tar get pop-
up list.
6. Select Z86C3500ZEM or Z86C3600ZEM in the Emulator pop-u p
list.
The Z86C3600ZEM becomes the Z86C3500ZEM wh en you use a
Z86C50 ICE chip.
7. Click on the br owse button (...) in the Project Name field. The New
Project Browser dialog box appears.
8. Enter the projec t file name and select a pa th in the New Project
Browse dia log box.
Z86C3500ZEM
Note:
Z86C36
ICEBOX
Ove rview UM0022 01-0301
25
All build output files, such as linker and assembly files are saved
in the s ame director y as the p ro ject .
9. Click Save. The project na me appear s in the Proj ect Name fiel d in the
New Project dialog box.
10. Click on Chip Data to view the microcontroller specifications.
Fields in the Chip Data page are read-on ly and can not be
modified.
11. Click OK. The new pr oject is saved a s the name specif ie d in the New
Project Browse dia log box.
12. Select Emulator C onfiguration from the Project menu. The Em ulator
Configuration dialog box appear s, a s shown in Figure 7.
Figure 7. Emulator Configuration Dialog Box
Note:
Note:
Z86C36
ICEBOX
UM0022 01-0301 Overview
26
13. Ensure that Emulator is selected in the M odule field.
14. Select the port the ICEBOX is connected to from the Port pop-up list.
15. Select 57600 from the Baud Rate pop-up list.
16. Click OK to close and apply the Emulator Configuration options.
17. Select Save Proje ct from the File menu to save the emulator
configuration setting.
Open a Project and Add Files
A previously crea ted project has the following attributes saved with it:
Ta rget setti ngs
Ass em b le r and Lin ker se ttin g s for the speci fied target
Source files (including header files)
Use t h e Proj ect Viewer w i ndow t o view and acc es s the va ri ou s
files in any given projec t.
Perform the following steps to open a previously created project:
1. Select Open Project from the File menu. The Open Proj ect dialo g box
appears.
2. In the Open Pr oject dialog box, select the previously created project.
The project appears in the Project Vie wer window, as shown in
Figure 8.
Note:
Z86C36
ICEBOX
Ove rview UM0022 01-0301
27
Figur e 8. Project Vie wer Window
Add an Existing File
Perform the following steps to add an existing file to a project:
1. Select Add to Pr oject>Files from the Project menu. The Inser t Files
into Project dialog box appears, as shown in Figure 9.
Figure 9. Insert Files into Project Dialog Box
2. Select the file to add to the project.
Z86C36
ICEBOX
UM0022 01-0301 Overview
28
3. Click Open. The file appear s in the Project Viewer window, as shown
in Figure 10.
Figur e 10. Pr ojec t Viewer Wind ow with File
4. Double-click on the file in the Project V iewer window. The file
appears in the ZDS main Edit window.
In some cases, non-editable file s, such as .obj files need to be
included in a project. These files are displayed in the sourc e file
list, but cannot be open ed. When the proje ct is buil t, these f iles are
automatic ally linked.
5. Select Update All Dependencie s from the Build menu. The
Dependencies folder list in the Proje ct Viewer window is update d.
Add a New File
1. Select Add to Pr oject>New from the Proje ct menu. The Insert New
Files Into Project dialog box appears.
2. Type a file name in the File Nam e fie ld.
3. Click Ope n. The new fil e name appears in the P roject Vi ewer window
with a .asm suffix, and a blank Edit window also appear s.
Header and Included files do not have to be added . The program
detect s those called by th e source code.
Note:
Note:
Z86C36
ICEBOX
Ove rview UM0022 01-0301
29
#8#+.#$.'&'$7)9+0&195
Table 5 lists the debug windows tha t are availa ble using ZDS.
Tabl e 5. Debug Windows
Window Function Updated value s display in red
Watch
Shows the symbols and the contents of the registers
(see th e
ZDS user manual for more information)
Z8 Standard Registers
Shows the contents of the Z8 standar d registers
Code Me mory
Allows the user to m onitor, edit, and d ownload a .ld file
or a .hex file into Code Memory from generated assembly
source code
Tracks a s pecific address e ntered in the Cod e Address edit
box
Disassembly
Shows code memory along with the corresponding
disassembled code
Allows the user to edit, and download a file.ld or file.hex
into the Code memory
Follows the program counter
Provides a complete scroll down with this window,
however the scroll up is limited
Accesses the disassembly of code at the address specified in
the Code Address field
The D isas sembly window is auto m atically displa ye d w hen
debugging hex code or whenever there is no corresponding
sour ce fil e av ail able at the ad dres s sp ec ifie d by th e pr ogr am
counter
Z86C36
ICEBOX
UM0022 01-0301 Overview
30
Z8 Re gister File
Shows all Z8 internal and external registers, all RAM
pointer and data registers, status registers and status flags,
and stacks
Monitor and edit write-able registers in this window
Z8 Expanded Register
Displays the Z8 Expanded Register banks that are specified
in the configuration
Monitor and edit write-able registers directly in this window
by selecting a specific bank tab
Working Regis ters
Modify and view working registers in this window
Timer Counter Registers
Modify and view the timer/counter registers in this window
Ports Register
Monitor and edit port registers in this window
Tabl e 5. Debug Wind ows (Continue d)
Window Function Updated value s display in red
Z86C36
ICEBOX
UM0022 02-1001 Appendi x A: Troubleshoo ting Guide
31
Appendix A: Troubleshooting Guide
INTRODUCTION
Before contacting a ZiLOG repre sentative or submitting a Problem
Report, please follow these simple steps. Also, check the Precautions and
Limitations sections in the Product I nformation document include d with
the emula tor to eliminate other possible known problems. If a hardware
failure is suspected, contact a local ZiLOG representative for assistance.
ERROR OPENING SERIAL PORT
If the initial ZiLOG screen is not app earing after selecting the COM port
and the screen message displays Time-out while re ading:
1. Check the RS-232C cable connection and communication por t
selection in ZDS. See Select the ICEBOX on page 23 for more
information on how to configure the host PCs por t.
2. Reset the emulator and ZDS.
3. Try connecting another cable.
4. Check if transmit/receive signals need to be swapped.
On some DB9 connectors for the COM por ts, the transmit /receive
signal may be swapped and a Null Modem adapter may be
required.
5. Ensure that the power supply is co nnected, is turned on, and power is
available.
6. Ensure that the power supply is set at the correct voltage.
Note:
Z86C36
ICEBOX
UM0022 02-1001 Appendi x A: Troubleshoo ting Guide
32
7. Ensure that the J1 power jumper has been proper ly configured. See
Set Power Jumper on page 12 for more information on setting the J1
jumper.
8. Check if power supply is supplying the required current ( 2.5 A
typ i cal) to the emu l ato r.
9. Check se lected the port using another application or select another
COM port.
10. After resetting the emulator, wait a minimum of 5 seconds before
running ZDS.
COUNTER JUMPS TO UNEXPECTED ADDRESS
Any instruction other than a DI instruc tion is used to disable interrupts.
Possible causes include:
The sta ck overflows into the gener al re gister locations.
Extra POP, PUSH, IRET, or RET is encountered (stack unbala nced).
Program resets repeatedly.
Program counter rolls over from value FFFF to 0000 and
proceeds back to the beginning of program.
Wa tch-Dog Timer (WDT) is not initi alized or ref reshed.
Unintialized interrupt ve ctor is activa ted. The inte rrupt vector is not
set to the interrupt handler.
ZDS ERROR MESSAGES
Can Not Open Windows
If this message appears while attempting to open a window ZDS, there
may not be enough memory within the Microsof t Windows env ironment
Z86C36
ICEBOX
Appendix A: Troubleshooting Guide UM002202-1001
33
to properly run ZDS. T ry closing the other active applications or exit and
re-enter the Microsof t Windows envi ronment.
Out of Synchronization with the Emulator
Thi s mess ag e app ear s wh enev e r co mm u n icat ion bet w een the em u la tor
and the PC is interrupted.
1. Ensure that the power cable is connecte d.
2. Ensure that the RS-232C cable is connecte d.
3. Change the baud rate setting (default is 19200). A lower set ting
usually improves com munications reliability.
4. Reestablish communication between ZDS and the emulator. See the
ZDS on-line help for more information on establi shing
communication with an emulator.
Z86C36
ICEBOX
UM0022 02-1001 Appendi x A: Troubleshoo ting Guide
34
This page intentionally le ft blank.
Z86C36
ICEBOX
UM0022 02-1001 Appendix B: ASCII Character Set
35
Appendix B: ASCII Character Set
Table 6. ASCII Character Set
Graphic Decimal Hexadecimal Comments
0 0 Null
1 1 S tart Of Heading
2 2 Start Of Text
3 3 End Of Text
4 4 End Or Transmission
5 5 Enquiry
6 6 Acknowledge
7 7 Bell
8 8 Backspace
9 9 Hor izontal Tabulation
10 ALine Feed
11 BVertical Tabulation
12 CForm Feed
13 DCarriage Return
14 EShift Out
15 FShift In
16 10 Data Li n k Escape
17 11 Device Control 1
18 12 Device Control 2
Z86C36
ICEBOX
UM0022 02-1001 Appendix B: ASCII Character Set
36
19 13 Device Control 3
20 14 Device Control 4
21 15 Negat ive Acknowledge
22 16 Sync hronous Idle
23 17 End Of Bloc k
24 18 Cancel
25 19 End Of Medium
26 1A Substitute
27 1B Escape
28 1C File Separator
29 1D Group Separator
30 1E Record Separat or
31 1F Unit Separator
32 20 Space
!33 21 Excl amat ion Po in t
"34 22 Quotation Mark
#35 23 Number Sign
$36 24 Dollar Sign
%37 25 Percent Sign
&38 26 Ampersand
39 27 Apostrophe
(40 28 Opening (Left) Pare nthesis
)41 29 Closing (Right) P arenthesis
Tabl e 6. ASCII Cha racter Set (Continued )
Graphic Decimal Hexadecimal Comments
Z86C36
ICEBOX
Appendix B: ASCII Character Set UM002202-1001
37
*42 2A Asterisk
+43 2B Plus
,44 2C Comma
-45 2D Hyphen (Minus)
.46 2E Period
/47 2F Slant
048 30 Zero
149 31 One
250 32 Two
351 33 Three
452 34 Four
553 35 Five
654 36 Six
755 37 Seven
856 38 Eight
957 39 Nine
:58 3A Colon
;59 3B Semicolon
<60 3C Less Than
=61 3D Equals
>62 3E Greater Than
?63 3F Question Mark
@64 40 C o mm erci al At
Tabl e 6. ASCII Cha racter Set (Continued )
Graphic Decimal Hexadecimal Comments
Z86C36
ICEBOX
UM0022 02-1001 Appendix B: ASCII Character Set
38
A65 41 Uppercase A
B66 42 Uppercase B
C67 43 Uppercase C
D68 44 Uppercase D
E69 45 Uppercase E
F70 46 Uppercase F
G71 47 Uppercase G
H72 48 Uppercase H
I73 49 Uppercase I
J74 4A Uppercase J
K75 4B Uppercase K
L76 4C Uppercase L
M77 4D Uppercase M
N78 4E Uppercase N
079 4F Uppercase 0
P80 50 Uppercase P
Q81 51 Uppercase Q
R82 52 Uppercase R
S83 53 Uppercase S
T84 54 Uppercase T
U85 55 Uppercase U
V86 56 Uppercase V
W87 57 Uppercase W
Tabl e 6. ASCII Cha racter Set (Continued )
Graphic Decimal Hexadecimal Comments
Z86C36
ICEBOX
Appendix B: ASCII Character Set UM002202-1001
39
X88 58 Uppercase X
Y89 59 Uppercase Y
Z90 5A Uppercase Z
[91 5B Opening (Left) Bracket
\92 5C Reverse Slant
]93 5D Closing (Right) Bra cket
^94 5E Circumflex
_95 SF Underscore
96 60 Gr av e Accen t
a97 61 Lowercase A
b98 62 Lowercase B
c99 63 Lowercase C
d100 64 Lowercase D
e101 65 Lowercase E
f102 66 Lowercase F
g103 67 Lowercase G
h104 68 Lowercase H
i105 69 Lowercase I
j106 6A Lowercase J
k107 6B Lowercase K
1108 6C Lowercase L
m109 6D Lowercase M
n110 6E Lowercase N
Tabl e 6. ASCII Cha racter Set (Continued )
Graphic Decimal Hexadecimal Comments
Z86C36
ICEBOX
UM0022 02-1001 Appendix B: ASCII Character Set
40
o111 6F Lowercase O
p112 70 Lowercase P
q113 71 Lowercase Q
r114 72 Lowercase R
s115 73 Lowercase S
t116 74 Lowercase T
u117 75 Lowercase U
v118 76 Lowercase V
w119 77 Lowercase W
x120 78 Lowercase X
y121 79 Lowercase Y
z122 7A Lowercase Z
{123 7B Opening (Left) Brace
|124 7C Vertical Line
}125 7D Closing (Right) Bra ce
~126 7E Tilde
127 7F Delete
Tabl e 6. ASCII Cha racter Set (Continued )
Graphic Decimal Hexadecimal Comments
Z86C36
ICEBOX
UM002202-1001 Appendix C: Problem/Suggestion Report
41
Appendix C: Problem/Suggestion
Report Form
If you experienc e any problems while operating this pr oduct, or if you note any inac-
curacie s while read ing the user manual, please copy this fo rm, fill it out, then mail or
fax it to ZiLOG. We also we lcome your suggestions!
Customer Informatio n
Product InformationRe turn Information
Problem Description or Suggestion
Provide a complet e descriptio n of the problem or your suggestion. If you are reporting a specific
problem, include all steps le ading up to the occurrence of the problem. Attach additional pages as
necessary.
_______________________________________________________________________________
______________________________________________________________________________
_______________________________________________________________________________
Name Country
Company Telephone
Address Fax Number
City/State/ZIP E-Mail Address
Serial # or Board Fab #/Rev. # ZiLOG, Inc.
Software Version System Test/Customer Support
Manual Number 910 E. Hamilton Ave., Suite 110, MS 4-3
Host Computer Descript ion/Type Campbell, CA 95008
Fax Number: (408) 558-8536
Email: tools@z ilog.com
Z86C36
ICEBOX
UM002202-1001 Appendix C: Problem/Suggestion Report
42
This page intentionally le ft blank.
Z86C36
ICEBOX
UM0022 02-1001 Glossa ry
43
Glossary
ASCII American Standard Code of Informat ion
Interchange.
Baud Unit of measure of transmission c apacity.
Binary Number system based on 2. A binary dig it is a bit.
BISYNC Bidirectional Synchronous Communication
Protocol.
Bit A digit of a binary system. It ha s only two possible
values: 0 or 1.
BPS Bits Per Second. Number of binary digits transmit te d
every second during a data-tr ansfer procedure .
Bus In Electronics, a parallel interconne ction of the
internal units of a system that enables data transfer
and co n tro l Inform ati o n.
Byte A collection of four sequentia l bits of memory. Two
sequential bytes (8 bits) compris e one word.
COM Devi ce name used to des ignate a communication
port.
DIP Dual In-line Package. The plastic housing designed
to be attached directly to a circuit board or equipment
case.
Z86C36
ICEBOX
UM0022 02-1001 Glossa ry
44
Emulation Process of duplic ating the behavior of one product or
part using anothe r medium.
Em u lat or An emula tio n device. For ex am p le , an In- Circu it
Emulator (ICE) module duplicates the behavior of
the chip it em ulates in the c ircuit being tested.
GUI Graphical User Interfa ce. The windows and text that
a user sees on their computer screen when they are
using a program.
ICE In-Circuit Emulator. A ZiLOG product which
supports the application design process.
Ico n A small sc reen i mag e rep resen ti n g a speci fi c
element like a doc ument, embedded and linked
objects, or a collection of programs gathered
together in a group.
Initialize To esta blish start-up pa rameters, typically involving
clearing all of some part of the devi ces memo ry
space.
Instruction Command.
I/O Input/Output. In c omputers, the par t of the system
that de als wi th interfac ing to ex tern al dev ices for
input or output, such as keyboa rds or printer s.
MCU Micr ocontroller or Microcomputer Unit.
OTP One -Tim e Pr ogr ammab le.
PC Personal computer, progr am counter.
Z86C36
ICEBOX
Glossary UM0022 02-1001
45
PO P R et ri eve a V al ue fro m the Sta ck.
Port The point at which a communications circuit termi-
nates at a Network, Serial, or Parallel Interface card.
PUSH Store a Value In the Stack.
RA Relative Address.
RAM Random-Access Me mory. A memory that can be
written to or read at random. The device is usually
volatile , whic h means the data is lost without power.
RS-232C Electronic Industr ies Assoc iation Standard for
Asynchronous Transmissions Betwee n a Computer
and a Peripheral De vice.
SOIC Small Outline IC.
SVGA S uper Vide o Graphics Adapter.
TMR Timer Mode Register.
UART Universal Async hronous Receiver Transmitter.
Component or functional block that handle s
asynchronous communications. Converts the data
from the parallel format in which it is store d, to the
serial format for transmission.
V Volt, Overflow F lag.
VCC Supply Voltage.
Z86C36
ICEBOX
UM0022 02-1001 Glossa ry
46
WDT W a t ch-D o g Timer. A tim er tha t, when enab l ed und e r
normal ope rating conditions, must be reset within the
time per iod se t within the application (WDTM R
(1,0)) . I f the timer is not reset, a Power-on Reset
occurs. Some earlier manuals refer to this timer as the
WDTMR.
Word Amount of data a processor can hold in its r egister s
and proce ss at one tim e. A DS P word is often 16 bits.
Given the same clock rate, a 16-bit controller
processes four byte s in the same time it takes an 8-bit
controller to process two.
XTAL Crystal.
Z8 ZiLOG Chip.
ZDS ZiLOG Develope r Studio. ZiLOGs program
development environment for Windows 95/98/NT.
Z locatable object modules for the ZiLOG family of
microcontrollers.
ZMASM ZiLOG Macro Cross Asse mbler. ZiLOGs program
development environment for Windows 3.1.
Z86C36
ICEBOX
Index UM0022 02-1001
47
Index
A
Adjust the volta ge 14
Appendix A 31, 35, 41
AS CI I Ch ara ct er Set 35
Available Debug Windows 29
C
Chip Data 25
Choosing the IceChip 15
Clocks 4
Connect to Your Design 14
E
Error Messages 32
H
Header and Included files 28
I
Index 47
Insert Files 27
Installation 9, 23
installation instructions 12
J
jumper settings 18
K
Kit Contents 5
L
LED Operation 19
List of Figures v
List of Tables vii
O
Overv i ew 1
P
power supply 13
adjusting 13
proble ms 15
settings 9
powering down 15
Q
Quick installation 9
Z86C36
ICEBOX
UM0022 02-1001 Inde x
48
R
Requirements 6
RESET 15
Resetting 19
S
Selecting the emulator 23
ser ia l cable 1 4
Software Installation 18
Software Setup 23
T
Table of Contents iii
Target connectors 11
V
voltage adjuster 14
Z
ZDS
adding files 26
Create a New Project 23
Debug windows 29
New Project 25
obj files 28
Open a project 26
Project Viewer window 28
TARGET CONNECTION
ZIF SOCKET
ZIF SOCKET
ICE Chip & Target Connection
test points
96C0620-00 1B
Schematic, Z86C36 Daug hter Board
B
14Tuesday, July 27, 1999
Title
Size Document Number Rev
Date: Sheet of
MA0
MA1
MA2
MA3
MA4
MA5
MA6
MA7
C50SZ2
C50SZ1
C50SZ0
IWD0
IWD1
IWD2
IWD3
IWD5
IWD6
IWD7
U_P36
U_P34
U_P35
U_P37
RBP0
U_P33
RBP1
U_RW
U_P31
UD7
U_P32
RA0
U_P30
MA10
UD1
UD6
UD0
UD5
UD3
UD4
UD2
U_P05
U_P07
U_P15
U_P17
U_P11
U_P06
U_P14
U_P00
U_P03
U_P04
U_P10
U_P01
U_P16
U_P02
U_P12
U_P13
IRD5
IRD7
IRD4
IRD2
IRD3
IRD1
IRD6
IRD0
nCE_ERF
nREGWR
RA3
RA5
RA4
RA7
RA6
RA2
RA1
nREGRD
IWD4
nU_DS
nU_AS
SCLK
nSYNC
nIACK
MA8
MA9
MA11
MA12
MA13
MA14
MA15
nU_MDS
U_XTAL1
U_XTAL2
U_D2
U_D6
U_D7
U_D4
U_D5
U_D0
U_D1
U_D3
U_P36
U_P34
U_P35
nU_DS
T_P37
nU_AS
U_P25
U_P31
U_P22
U_P23
U_P27
U_P33
U_P32
U_P20
U_P26
U_P21
U_P24
VccTGT
VccTGT
U_P03
U_P06
U_P00
U_P02
U_P04
U_P05
U_P07
U_P20
U_P21
U_P22
U_P23
U_P24
U_P25
U_P26
U_P27
nIRQ3
nIRQ4
nRESET
U_RW
SMR
ADMUX
RBP2
RBP3
nU_RESET
U_P37
T_P30
U_P30
XTAL1
Crystal2
U_XTAL1
U_XTAL2
XTAL2
Crystal1
ICRAM
U_P01
nSTOP
nU_MAS
IRD0
IRD1
IRD2
IRD3
IRD4
IRD5
IRD6
IRD7
VccICE
VccADJ
VccICE
VccICE
Vcc
VccICE
TP4
CON5
1
2
3
4
5
TP3
CON5
1
2
3
4
5
TP2
CON5
1
2
3
4
5
Y1 OSC
4
2
3
1
VCC
GND
OUT
NC
TP5
CON2
1
2
J2
1
2
3
J3
1
2
3
4
R2410k
J1
3
2
4
1
R2510k
Y2
20MHz
C8122pF
C8022pF
TP1
1
2
3
4
5
6
7
8
R2210k
R2310k
P3 1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
53
55
57
59
61
63
65
67
69
71
73
75
77
79
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
66
68
70
72
74
76
78
80
U1
Z86C50
E2
E1
F3
F2
G2
G3
G1
H1
B5
C5
B4
A3
A2
C4
B3
A1
B8
A8
B7
C7
A6
B6
C6
A5
C3
B2
B1
D3
C2
C1
D2
D1
J3
M8
N8
L7
M7
N6
M6
L6
N5
M5
N4
M4
N3
M3
L4
N2
M2
L1
K2
K3
K4
D4
K1
D10
L2
N1
L3L5
H2
J1
J2
M1
L8
N11
M9
M10
L9
N12
L10
M11
N13
K10
L11
M12
M13
K11
L12
L13
K12
J11
K13
J12
C11
B12
A12
C10
B11
A11
B10
C9
A10
B9
A9
C8
N10
E3
D13
A4A7
J13
N9
F1
H11
H12
H13
G12
G11
G13
F13
F12
E13
E12
E11
D12
C13
B13
D11
C12
H3
N7
F11
A13
P10
P11
P12
P13
P14
P15
P16
P17
P20
P21
P22
P23
P24
P25
P26
P27
P00
P01
P02
P03
P04
P05
P06
P07
P30
P31
P32
P33
P34
P35
P36
P37
R/W
A0
A1
A2
A3
A4
A5
A6
A7
A8
A9
A10
A11
A12
A13
A14
A15
AS
DS
SYNC
WAIT
HALT
HOLD
STOP
IACK
MAS
MDSSMR
DM
RESET
DTIMERS
SCLK
ADMUX
XTAL1
XTAL2
IRQ3
IRQ4
RBP0
RBP1
RBP2
RBP3
SCLKN
IWD0
IWD1
IWD2
IWD3
IWD4
IWD5
IWD6
IWD7
REGWR
REGRD
CE_ERF
D0
D1
D2
D3
D4
D5
D6
D7
SIZE0
SIZE1
SIZE2
VCC_N10
VCC_E3
VCC_D13
VCC_A4GND_A7
GND_J13
GND_N9
GND_F1
RA0
RA1
RA2
RA3
RA4
RA5
RA6
RA7
IRD0
IRD1
IRD2
IRD3
IRD4
IRD5
IRD6
IRD7
GND_H3
GND_N7
CT0
TCLK
R2110k
nIRQ3<3A1
SMR<3A3
nRESET<1E4;>3A3
T_P37<3A1
C50SZ[2..0]<1A3
UD[7..0]
<>1E3
MA[15..0] >1A1
nSTOP >3A3
nSYNC >1A4
nIACK >1A4
nU_AS >4E4
nU_RESET>1A4
U_P1[7..0]
<>1E4
XTAL1>3A3
T_P30>3A2
U_P37>3A2
IRD[7..0] <3A4
IWD[7..0] >3A4
RBP[3..0] >3A4,>4A1
RA[7..0] >3A4,>4A3
nREGRD >3A4
nREGWR >3A4
nCE_ERF >3A4
SCLK >1A4;>3A3
U_D[7..0]<>1A4
nU_DS >1A4
nU_MDS >1A4
U_RW >1A4
U_P30<3A1
U_P2[7..0]>1A4
ICRAM<1E4
U_P0[7..0]>1E1
U_P3[7..0]>1E1
TCLK >4E4
nU_MAS >4E4
CLK_VCC >1
CLK_TgtVcc1
UM002202-1001 Schematic-1
96C0620-00 1B
Schematic, Z86C36 Daug hter Board
B
24Tuesday, July 27, 1999
Title
Size Document Number Rev
Date: Sheet of
mU_P37
mU_P35
mU_P33
mU_P31
mU_P36
mU_P34
mU_P32
U_P30
U_P31
U_P32
mU_P30
U_P33
U_P34
U_P35
U_P36
U_P37
RBP3
RBP2
RBP1
RBP0
mU_P37
mU_P36
mU_P35
mU_P34
mU_P33
mU_P32
mU_P31
mU_P30
laRBP3
laRBP2
laRBP1
laRBP0
laRBP0
laRBP2
lanREGRD
laICRAM
laRBP3
laRBP1
lanREGWR lanREGWR
lanREGRD
laICRAM
laRA7
laRA6
laRA5
laRA4
laRA3
laRA2
laRA1
laRA0
laIWD7
laIWD6
laIWD5
laIWD4
laIWD3
laIWD2
laIWD1
laIWD0
laRA0
laRA2
laRA4
laRA6
laIWD0
laIWD2
laIWD4
laIWD6 laIWD7
laIWD5
laIWD3
laIWD1
laRA7
laRA5
laRA3
laRA1
mU_P26
mU_P24
mU_P22
mU_P20
mU_P16
mU_P14
mU_P12
mU_P10 mU_P11
mU_P13
mU_P15
mU_P17
mU_P21
mU_P23
mU_P25
mU_P27
mUD0
mUD2
mUD4
mUD6
mMA8
mMA10
mMA12
mMA14 mMA15
mMA13
mMA11
mMA9
mUD7
mUD5
mUD3
mUD1
lanCEERF lanCEERF
lanU_MAS
laTCLK
laTCLK
lanU_MAS
lanU_MAS
mSCLK
mSCLK
laU_RW
laU_RW
U_P07
U_P06
U_P05
U_P04
U_P03
U_P02
U_P01
U_P00
nU_MAS
TCLK
SCLK
nU_AS
U_RW
nSYNC
mnIACK
mnIACK
nIACK
RA7
RA6
RA5
RA4
RA3
RA2
RA1
RA0
IWD7
IWD6
IWD5
IWD3
IWD2
IWD1
IWD0
IWD4
ICRAM
nREGRD
nREGWR
nCE_ERF
mnU_AS
mnSYNC
mU_P01
mU_P05
mU_P06
mU_P01
mU_P07
mU_P06
mU_P03
mU_P02
mnSYNC
mU_P04
mnU_AS
mU_P00
nU_M_DS
hvnRESET
mU_P03
mU_P02
mnU_AS
mU_P00
mU_P04
mU_P07
mU_P05
hvnRESET
nU_M_DS
nSTOPlanSTOP
lanSTOP
Vcc
Vcc3_3
Vcc
Vcc3_3
Vcc
Vcc
Vcc
Vcc3_3
Vcc
VccICE
Vcc3_3Vcc
Vcc
VccICE
Vcc
C51
100uF
C50
100uF
C21
0.1uF
U17
IDT74FCT164245TPA
48
47
1
46
25
44
24
43
41
40
38
37
36
35
33
32
30
29
27
26
2
3
5
6
8
9
11
12
13
14
16
17
19
20
22
23
7
18
31
42
4
10
15
21
28
34
39
45
1OE
1A1
1DIR
1A2
2OE
1A3
2DIR
1A4
1A5
1A6
1A7
1A8
2A1
2A2
2A3
2A4
2A5
2A6
2A7
2A8
1B1
1B2
1B3
1B4
1B5
1B6
1B7
1B8
2B1
2B2
2B3
2B4
2B5
2B6
2B7
2B8
VCCB1
VCCB2
VCCA1
VCCA2
GND4
GND10
GND15
GND21
GND28
GND34
GND39
GND45
C22
0.1uF
C23
0.1uF
C25
0.1uF
C24
0.1uF
C26
0.1uF
C27
0.1uF
C29
0.1uF
C28
0.1uF
C31
0.1uF
P4
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
53
55
57
59
61
63
65
67
69
71
73
75
77
79
81
83
85
87
89
91
93
95
97
99
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
66
68
70
72
74
76
78
80
82
84
86
88
90
92
94
96
98
100
C33
0.1uF
C32
0.1uF
U18
IDT74FCT164245TPA
48
47
1
46
25
44
24
43
41
40
38
37
36
35
33
32
30
29
27
26
2
3
5
6
8
9
11
12
13
14
16
17
19
20
22
23
7
18
31
42
4
10
15
21
28
34
39
45
1OE
1A1
1DIR
1A2
2OE
1A3
2DIR
1A4
1A5
1A6
1A7
1A8
2A1
2A2
2A3
2A4
2A5
2A6
2A7
2A8
1B1
1B2
1B3
1B4
1B5
1B6
1B7
1B8
2B1
2B2
2B3
2B4
2B5
2B6
2B7
2B8
VCCB1
VCCB2
VCCA1
VCCA2
GND4
GND10
GND15
GND21
GND28
GND34
GND39
GND45
C35
0.1uF
C34
0.1uF
C37
0.1uF
C36
0.1uF
C39
0.1uF
C38
0.1uF
C20
0.1uF
C30
0.1uF
C13
0.1uF
C17
0.1uF
C19
0.1uF
C10
0.1uF
C14
0.1uF
C18
0.1uF
C11
0.1uF
C9
0.1uF
C12
0.1uF
C16
0.1uF
C7
0.1uF
C6
0.1uF
C40
0.1uF
C15
0.1uF
C5
0.1uF
C8
0.1uF
U19
IDT74FCT164245TPA
48
47
1
46
25
44
24
43
41
40
38
37
36
35
33
32
30
29
27
26
2
3
5
6
8
9
11
12
13
14
16
17
19
20
22
23
7
18
31
42
4
10
15
21
28
34
39
45
1OE
1A1
1DIR
1A2
2OE
1A3
2DIR
1A4
1A5
1A6
1A7
1A8
2A1
2A2
2A3
2A4
2A5
2A6
2A7
2A8
1B1
1B2
1B3
1B4
1B5
1B6
1B7
1B8
2B1
2B2
2B3
2B4
2B5
2B6
2B7
2B8
VCCB1
VCCB2
VCCA1
VCCA2
GND4
GND10
GND15
GND21
GND28
GND34
GND39
GND45
IWD[7..0]<2A3
RA[7..0]<2A3
RBP[3..0]<2A3
U_P3[7..0]<2A3
ICRAM<2A3
nREGRD<2A3
nREGWR<2A3
nCE_ERF<2A3
mU_P1[7..0]<1E4
mU_P2[7..0]<1E3
mU_P3[7..0]>3A4
nIACK <2A1
nSYNC <2A1
U_RW <2A1
nU_AS <2A1
SCLK <2A1
TCLK <2E3
nU_MAS <2A1
mUD[7..0] <2A1
mMA[15..8] <1E1
U_P0[7..0] <2A1
mU_P0[7..0]>3A4
mnIACK >1E3
mnU_AS >1E3
mnSYNC >1E2
mSCLK >1E2
nSTOP <2A1
hvnRESET <1E3
nU_M_DS <1A1
laU_RW >1E3
UM002202-1001 Schematic-2
Motherboard Connection & Level Shifting
C36MISC.JED
96C0620-00 1B
Schematic, Z86C36 Daug hter Board
B
34Tuesday, July 27, 1999
Title
Size Document Number Rev
Date: Sheet of
SIZE4
nM_P25RESET2
MA0
MA1
MA2
MA3
MA4
MA6
mUD7
MA8
MA9
MA10
MA11
MA13
MA15
U_D0
U_D1
U_D2
U_D3
U_D4
U_D5
U_D6
U_D7
mUD6
mUD4
mUD7
UD0
mUD1
mUD3
mU_P15
mUD0
mUD2
mUD2
mU_P16
mU_P17
mUD3
UD7
mU_P11
mUD0
mUD1
mUD7
mUD0
mUD2
mU_P12
mUD6
mUD1
mU_P10
mU_P10
mU_P14
mU_P15
mUD6
mUD4
mU_P13
UD1
mU_P17
mU_P16
mUD3
UD2
mU_P14
mUD5
mUD4
UD3
UD4
UD5
UD6
mU_P13
mUD5
mU_P11
mU_P12
mUD5
SIZE3
SIZE1
nRESET
ICRAM
hvC50SZ2
hvC50SZ1
hvC50SZ0
C50SZ0
C50SZ1
C50SZ2
Pup1_2
Pup1_3
SIZE2
nM_P25
RESET2
nU_M_DS
nU_RESET
nU_M_DS
hvC50SZ1
hvC50SZ0
hvC50SZ2
MA12
hvnRESET
CH_DIR
mICRAM
MA5
MA14
CH_DIR
MA7
mICRAM
hvnRESET
Pup1_6
Pup1_7
Pup1_2
Pup1_3
U_P25
U_P24
U_P23
U_P22
U_P21
U_P20
U_P27
U_P26
nU_MDS
nU_DS
mU_P26
mU_P25
mU_P24
mU_P23
mU_P22
mU_P21
mU_P20
mU_P27
mMA15
mMA14
mMA12
mMA9
mMA10
mMA8
mMA10
mMA13
mMA9
mMA13
mMA15
mMA8
mMA11
mMA11
mMA12
mMA14
mU_P07
mU_P06
mU_P05
mU_P04
mU_P03
mU_P02
mU_P01
mU_P00
mU_P37
mU_P36
mU_P35
mU_P34
mU_P33
mU_P32
mU_P31
mU_P30
mU_P27
mU_P26
mU_P25
mU_P24
mU_P23
mU_P22
mU_P21
mU_P20
mnIACK
mnU_AS
mSCLK
mnSYNC
Pup1_5
Pup1_4
Pup1_4
Pup1_5
CS_245
nCH_DIR
U_P11
U_P13
U_P15
U_P17
U_P14
U_P16
U_P10
U_P17
U_P13
U_P12
U_P10
U_P12
U_P15
U_P14
U_P11
U_P16
nCS_245
nCS_245
CS_245
BLKTGT
CH_DIR
nCH_DIR
BLKTGT
U_P34
nDM_BKOF
nDM_BKOF
nD_E
nCS_RD
nBRP_OFF
PALnBKOF
Vcc
Vcc
Vcc3_3
Vcc
Vcc
Vcc
Vcc3_3
VccICE
Vcc
Vcc
VccVcc Vcc
Vcc3_3
Vcc
Vcc
VccICE
Vcc
Vcc
P1
Motherboard
12
34
56
78
910
11 12
13 14
15 16
17 18
19 20
21 22
23 24
25 26
27 28
29 30
31 32
33 34
35 36
37 38
39 40
41 42
43 44
45 46
47 48
49 50
51 52
53 54
55 56
57 58
59 60
61 62
6463
P2
Motherboard
12
34
56
78
910
11 12
13 14
15 16
17 18
19 20
21 22
23 24
25 26
27 28
29 30
31 32
33 34
35 36
37 38
39 40
41 42
43 44
45 46
47 48
49 50
51 52
53 54
55 56
57 58
59 60
61 62
6463
U14
IDT74FCT164245TPA
48
47
1
46
25
44
24
43
41
40
38
37
36
35
33
32
30
29
27
26
2
3
5
6
8
9
11
12
13
14
16
17
19
20
22
23
7
18
31
42
4
10
15
21
28
34
39
45
1OE
1A1
1DIR
1A2
2OE
1A3
2DIR
1A4
1A5
1A6
1A7
1A8
2A1
2A2
2A3
2A4
2A5
2A6
2A7
2A8
1B1
1B2
1B3
1B4
1B5
1B6
1B7
1B8
2B1
2B2
2B3
2B4
2B5
2B6
2B7
2B8
VCCB1
VCCB2
VCCA1
VCCA2
GND4
GND10
GND15
GND21
GND28
GND34
GND39
GND45
R2910k
R5210k
J6
1
2
3
4
R3010k
R5110k
R26
10K
R4210k
R4110k
U12
IDT74FCT164245TPA
48
47
1
46
25
44
24
43
41
40
38
37
36
35
33
32
30
29
27
26
2
3
5
6
8
9
11
12
13
14
16
17
19
20
22
23
7
18
31
42
4
10
15
21
28
34
39
45
1OE
1A1
1DIR
1A2
2OE
1A3
2DIR
1A4
1A5
1A6
1A7
1A8
2A1
2A2
2A3
2A4
2A5
2A6
2A7
2A8
1B1
1B2
1B3
1B4
1B5
1B6
1B7
1B8
2B1
2B2
2B3
2B4
2B5
2B6
2B7
2B8
VCCB1
VCCB2
VCCA1
VCCA2
GND4
GND10
GND15
GND21
GND28
GND34
GND39
GND45
J7
1
2
3
U10
QS3384
3
1
13
2412
4
7
8
11
2
5
6
9
10
14
17
18
21
22
15
16
19
20
23
A0
nLE
nHE
VCCGND
A1
A2
A3
A4
B0
B1
B2
B3
B4
A5
A6
A7
A8
A9
B5
B6
B7
B8
B9
R2810k
R2710k
U15
22V10
2
3
4
5
6
7
8
9
1
11
12
24
10
13
14
15
16
17
18
19
20
21
22
23
I2
I3
I4
I5
I6
I7
I8
I9
I/CLK
I11
Gnd
Vcc
I10
I13
IO14
IO15
IO16
IO17
IO18
IO19
IO20
IO21
IO22
IO23
U11
IDT74FCT164245TPA
48
47
1
46
25
44
24
43
41
40
38
37
36
35
33
32
30
29
27
26
2
3
5
6
8
9
11
12
13
14
16
17
19
20
22
23
7
18
31
42
4
10
15
21
28
34
39
45
1OE
1A1
1DIR
1A2
2OE
1A3
2DIR
1A4
1A5
1A6
1A7
1A8
2A1
2A2
2A3
2A4
2A5
2A6
2A7
2A8
1B1
1B2
1B3
1B4
1B5
1B6
1B7
1B8
2B1
2B2
2B3
2B4
2B5
2B6
2B7
2B8
VCCB1
VCCB2
VCCA1
VCCA2
GND4
GND10
GND15
GND21
GND28
GND34
GND39
GND45
MA[15..0]<2E4
U_P1[7..0] <>2A4
U_D[7..0]<>2A3
nU_DS<2E3
nU_RESET<2A1
ICRAM>2A3
C50SZ[2..0]>2A4
nU_MDS<2E3
mU_P3[7..0]<2A1
U_P2[7..0]<2A3
mU_P0[7..0]<2A1
mnIACK <4E3
mnU_AS <4E3
mnSYNC <2A1
hvnRESET >4E3
nU_M_DS>4E3
UD[7..0] >2A4
mU_P2[7..0] >4A4
mUD[7..0] >4E2
mMA[15..8] >4E2
mU_P1[7..0] >4A4
U_P34<1A2
CLK_VCC<2E3
CLK_TgtVcc2
nRESET<>2A3;>3A3
laU_RW < 4E3
mSCLK <2A1
UM002202-1001 Schematic-3