ZiLOG Worldwide Headquarters • 910 E. Hamilton Avenue • Campbell, CA 95008
Telephone: 408.558.8500 • Fa x: 408.558. 8300 • www.ZiLOG.com
Z86C36
ICEBOX
This publication is subject to replacement by a later edition. To determine whether a later
edition exists, or to request copies of publications, contact:
ZiLO G World w i de H e adquarte rs
910 E. Hamilton Avenue
Campbell, CA 95008
Telephone: 408.558.8500
Fax: 408.558.8300
www.ZiLOG.com
Document Disclaimer
ZiLOG is a registered trademark of ZiLOG Inc. in the United States and in other countries. All other products
and/or se rvice names mentioned herein may be trademarks of the companies with wh ich they are associated.
W e recommend that you read and understand everything in this manual
before setting up and using the produc t. However, we recognize tha t users
have differ ent sty les of learni ng. The refore, we have designe d this m anual
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:
•
Times 10-point a ll-caps is used to highlight the following items:
–commands, displayed messages
–menu selections, 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 software
–icons
ix
•
Courier Regular 10-point is used to highlight the following
items
–bit
–software code
–file names and paths
–hexadecimal value
UM002202-1001Preface
x
Z86C36
ICEBOX
•
Grouping of Actions Within a Procedure Step
Actions in a procedure ste p are all performed on the same window or
dialog box. Actions performed on different windows or dialog boxes
appear in separate steps.
UM002202-1001Preface
Z86C36
ICEBOX
ElectricalSafeguards
Follow the precautions list ed below to avoid permanent damage to the
emulator.
1. Always use a grounding strap to prevent damage resulting from
electrostatic discharge (ESD).
2. Power-Up Precautions.
a. Ensure that all power to the emulator and the target application (if
any) is turned OFF.
xi
b. Connect the target pod to the target application (if any).
c. Power up the emulator, then press the RESET button.
d. Power up the target application (if any).
3. Power-Down Precautions.
When powering down, follow this procedure in the prec ise order
shown below:
a. Halt emulation.
b. In ZDS select Reset from the Build or Debug Menu.
c. Power down the target application board (if any).
d. Remove the target pod.
e. Power down the emulator.
PrefaceUM002202-1001
xii
Notes:
Z86C36
ICEBOX
1. Refer to the “Precaution List” section of the Product Information
sheet for additional operating precautions 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 target pod into target application board, refer to
Chapter 2 to determine appropriate jumper selections and options.
UM002202-1001Preface
Z86C36
ICEBOX
1
1
Introduction
OVERVIEW
Congratulations for sele cting a fine development tool! The Z86C36
ICEBOX provides in-circuit emula tion for the Z8 family of UART
controllers. The ICEBOX consists of an emulation daughter board that is
plugged into a 32-MHz motherboard using P1 and P2 headers. The
Z86C50 ICE chip is used as the emulation pro cessor for devices with less
than or equal to 32K of code memory. The Z86C51 ICE chip is used as
the emulation processor for devices with 64K of code memory, that is,
Z86C36 and Z86C46.
The 32 MHz motherboard has been modified for 64 K operation and
provides host communication inte rface, control processor, I/O space
decoding, and LED indicator. The ICEBOXes are designed to be used
with ZiLOG Developers Studio, giving the user a total package to write,
edit, and debug their applications.
ICEBOX FEATURES
Key features of the Z86C36 ICEBOX include:
•
Supports up to 64 K of ROM
•
The capability to vary the operating voltage from 3.0–5.0 V
•
Supports in-circuit emulation on target systems that operate from
3.0–5.5 V
•
The user can choose to power th e Ice chi p from e ither the ICEBOX or
target board
•
Supports UART devices that operate up to 16.384 MHz
UM002202-1001Introduction
Z86C36
ICEBOX
2
•
Emulates and supports all the feat ures and functions for a specified
Z8 UART microcontroller
•
Multitasking allows the user to use ot her W indows a pplication s while
ZiLOG Developer Studio (ZDS) is running
Supported ZiLOG Devices
T able 1 shows products supported by the Z86C5020GSE ICE chip.
T able 2 shows the products supported by the Z86C5120GSE ICE chip.
Table 1. Z86C5020GSE ICE Chip Supported Pr od ucts (Z86C3500ZEM
Target Emulator Select ion)
PackagesEmulationOTP Required Accessories
28 PDI PZ86C34–C35N/A28 PDIP emulation pod
28 SOI CZ86C34–C35N/A28 PDIP emulation pod and a DIP to SOIC
conversion adapter from Emulation Technology
(AS-DIP-6-028-S003-1 or AS-DIP-6-028-S003-2)
28 PLC CZ86C34–C35N/A28 PLCC emulation pod
40 PDI P Z86C44–C45N/A40 PDIP emulation pod
44 PLCC Z86C44–C45N/A44 PLCC emulation pod
44 QFPN/AN/AN/A
28 SOI CZ86C36N/A28 PDIP emulation pod and a DIP to SOIC
conversion adapter from Emulation Technology (AS-
DIP-6-028-S003-1 or AS-DIP-6 -028-S 003-2)
28 PLC CZ86C36N/A28 PLCC emulation pod
40 PDI P Z86C46N/A40 PDIP emulation pod
44 PLCC Z86C46N/A44 PLCC emulation pod
The Z86C3600ZEM becomes the Z86C3500ZEM when you use
a Z86C50 ICE chip.
3
IntroductionUM002202-1001
Z86C36
ICEBOX
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
Serial Baud Rate:57,600 bps
Power Requirements
This ICEBOX requires an external 5VDC power supply.
Mhz; the emulation processor opera tes at
16.384 Mhz
Operating Voltage (Input):+4.75 VDC to +5.25 VDC Max
(+5.0 VDC typical)
Operating Voltage (Target):+3.0 VDC to +5.5 VDC Max
Operating Current:2.5 A typical (maximum 3.0 A)
Serial Interface
ZiLOG Developer Studio communica tes with the Z86C36 ICEBOX using
a DB25, RS-232 and DCE cable (TxD, RxD only).
GUI-SUPPORTED COMPILER, ASSEMBLER FORMATS
The ICEBOX supports object (binary or Int el hex) code file s produced by
ZiLOG Developer Studio (ZDS) and ZiLOG Macro Cross Assembler
(ZMASM).
UM002202-1001Introduction
KIT CONTENTS
Note:
The ICEBOX kit contains one of each of the following items:
•
•
•
•
•
•
•
•
Z86C36
ICEBOX
5
Z86C36 ICEBOX
40 PDIP emulation pod with cable ZiLOG: 93C0024-001
44 PLCC emulation pod ZiLOG PC: 99C0273-001
28 PDIP emulation pod ZiLOG PC: 99C0742-001
28 PLCC emulation pod ZiLOG PC: 99C0512-001
Power Cable with Banana Plugs
RS-232 Serial Cable, DB 25
ZiLOG Developer Studio Installation CD
•
Z86C36 ICEBOX User Manual
•
ZiLOG Developer Studio manual conta ined on the ZDS installation
CD-ROM.
If the ZDS CD-ROM does not contain the manual, it can be
downloaded from the ZiLOG web page at www .zilog.com.
Additional Items Not Supplied
The following item is required but are not currently supplied in the
ICEBOX kit:
•
A source of power (+5 VDC typical) for the ICEBOX. This can be a
laboratory power supply with curre nt rating of at least 2.5 ampere.
IntroductionUM002202-1001
6
Note:
Z86C36
ICEBOX
Optional Recommended Item
The following items are recommended:
•
Your target 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 near you:
http://www.zilog.com/sales/.
•
Oscilloscope
•
Logic Ana lyz er
COMPUTER REQUIREMENTS
Minimum Requirements
•
IBM PC (or 100-percent compatible) Pentium based machine
•
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 Port
•
Mouse or Pointing Device
•
Microsoft Wi ndows 95/98/NT
UM002202-1001Introduction
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 center locate d in Austin,
T exas. The customer support center is open from 7 a.m. to 7 p.m. Central
Time.
The customer support toll-fre e number for the United States and Canada
is 1-877-ZiLOGCS (1-877-945-64 27). For calls outside of the United
States and Canada dial 512-306-4067. The FAX number to the customer
support center is 512-306-4072. Customers can also contact the support
center through our website at http://www.zilog.com/support/.
Z86C36
ICEBOX
7
For valuable information about hardware and sof tware development t ools,
go to ZiLOG home page at http://www.zilog.com. The latest released
version of the ZDS can be downloaded from this site.
IntroductionUM002202-1001
8
Z86C36
ICEBOX
This page intentionally lef t blank.
UM002202-1001Introduction
Z86C36
ICEBOX
9
2
2
Setup and Installation
HARDWARE INSTALLATION
Before ins talli n g the ha rdw ar e, ref er to Fi g ure 1 for a diagram on
connecting the ICEBOX to a PC and power supply. Figure 2 provides
option jumper locations.
Quick Installation Instructions
To install the hardware using a bench power supply, perform the
following.
1. Set the correct jumper setting for powering the ICE chip and target
board. See Set Power 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.
UM002202-1001Setup and Installation
10
Note:
Z86C36
ICEBOX
-
+
Figure 1. Hook-Up Diagram
Each ICEBOX is shipped with a 16.384 MHz oscillator. The user
can also use the target’s oscillator or a crystal/ ceramic resonator
to clock the ICE chip, for more inf ormation see Jump er Setti ngs
on page 20.
UM002202-1001Setup and Installation
Z86C36
ICEBOX
11
RS-232C
ICE chip ziff
socket
J5
U1
Power
Logic analyzer connec tor*
Voltage
adjuster
J1
J3
J2
Oscillator
J6
J7
Target Pod
Debug
pins
Reset
Reset
LEDS
*This is not support ed.
Figure 2.Z86C36 ICEBOX External Top View
Setup and InstallationUM002202-1001
12
Caution:
Note:
Z86C36
ICEBOX
Complete Installation Instructions
The following procedures illustrate a complete step-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 different sources. Before powering the ICEBOX
the user should select the power configuration.
The procedures below must be followed exactly as described.
Before beginning th e procedur es study F igure 3, which shows a
schematic of the J1 power jumper. Failure to follow the procedures will result in total damage to the ICEBOX or target.
Choose from one of the following options when selecting the power
source:
•
Jumper pin 1 to pin 2 to power the ICE chip with the ICEBOX’s
adjustable regulat or
•
Jumper pin 3 to pin 4 to power target with the ICEBOX’s adjustable
regulator
•
Jumper pin 1 to pin 2 and pin 3 to pin 4 to power both the ICE chip
and target from the ICEBOX’s 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
target’s power supply is disconnected.
UM002202-1001Setup and Installation
Z86C36
Note:
Caution:
ICEBOX
13
1
ICEBOX Adjustable
Voltage Regulator
3
Figure 3.J1 Jumper Schematic
2
ICE chip
Target
4
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 least 2.5 A
2. Turn the supply off.
3. Locate the power cable (red wir e, b lack wire, and ba nana plugs on t he
other end). Plug in the black banana plug into the black jack on the
power supply (labeled COM, GND, or with the ground symbol) . Plug
the red plug into the red jack on the power supply (label 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 improper connection.
The ZiLOG Power Supply Accessory Kit (ZPS05V00ZAC),
which is sold separately, provides a fixed-5 V Universal Output
Power Supply, accepts 110 V to 220 V AC input, and includes a
power cable and an in-line jack cable.
Always check the supply voltage before plugging in the power
cord.
Setup and InstallationUM002202-1001
14
Note:
Caution:
Z86C36
ICEBOX
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 either the COM1, COM2,
COM3, or COM4 connector of the host PC, see Figure 1.
If connector availability is limited 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 electronics store for a
nominal fee.
Connect to the Design
Perform the foll o wing steps to co nn ect to the targe t desi gn:
W ear a properly grounded wrist strap or similar ESD protection
before continuing.
1. Locate the emulation cable for the device.
2. Plug the cable into the ta rget devi ce. Ensur e that t he p in 1 marki ng (as
indicated by the red mark on the ribbon cable) matches pin 1 on the
target board.
3. Plug the other end of the cables 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
jumper. See Table 4 for more info rm at ion on jum per settings and
Figure 2 for the location of the J1 jumper.
5. If the target and ICEBOX are using separate power supplies, e nsure
that the ICE chip voltage matches the target’s device voltage. Adjust
the voltage by performing 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
UM002202-1001Setup and Installation
Z86C36
Caution:
Caution:
ICEBOX
c.Attach the voltmete r lead to eit her pi n 1 or 3 on the J1 j umper and
ground.
d. Power the ICEBOX with the target device disconnected.
e.Turn the voltage adjuster’s screw until the voltmeter’s read-out
matches the target devic e ’s voltage.
Failure to match the target devices voltage with the ICE chip’s
voltage could result in dama ge to the ICEBOX, target de vice, or
ICE chip.
Power the ICEBOX
If anything unusual (such as an unexpected sound and/or smell) occurs
when turning on the power supply, turn off the power supply and check
the setting for the J1 jumper. See Set Power Jumper on page 12. If the
power supply allows voltage adjus tment, adjust it again to +5 V. The
power supply output may measure less than +5 V because of the load of
the ICEBOX. If your power supply has a current meter, ensure that the
ICEBOX is drawing within the rated current.
15
After power-up, press the RESET button to reset the ICE chip. (Pressing
the RESET button avoid s bus cont ention on the I /O li nes.) I f the I CEBOX
is not powering your design through the V
pin, turn on the power
CC
supply of the design.
If your design already has a power supply, do not power your
design from the ICEBOX V
CC
pin.
When powering down, follow the procedure descr ibed below:
1. Halt emulation.
2. In ZDS select Reset from the Build or Debug Menu.
3. Power down the target application board (if using its own power
supply).
4. Power down the ICEBOX.
Setup and InstallationUM002202-1001
16
Note:
Note:
Caution:
Note:
Z86C36
ICEBOX
Refer to the complete Electrical Safeguards shown in the preface
of this manual.
Installing a New ICE Chip
The Z86C36 ICEBOX comes with the Z86C 51 ICE chip. Under ordinary
circumstances, the user should never have to remove this ICE chip. If for
some reason the ICE chip needs to be replaced, follow the procedures
below. See Figure 4 and Figure 5 for more information.
Replace the Z86C51 ICE chip 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.
Perform the foll o wing steps to rep lace the ICE chip.
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
chip’s pin 1 matches pin 1 on the U1 ziff socket.
4. Close the ziff socket locking lever.
A dot in the corn er of the pr oces s or ind icat es the chi p ’s pin 1
location.
UM002202-1001Setup and Installation
Z86C36
ICEBOX
17
Figure 4.ICE Chip Installation
Setup and InstallationUM002202-1001
18
Z86C36
ICEBOX
Figure 5.Closing the ICE Chip Locking Lever
SOFTWARE INSTALLATION
For more information on installing ZDS, refer 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 operat e the ICEBOX and
configure jumper settin gs.
UM002202-1001Setup and Installation
Resetting
Note:
Press the RESET button on the ICEBOX to reset the state of the target
device and the status that was establ ished using ZDS.
For example, the ICEBOX sets the program counter to 000Ch.
After reset, wait until the Ready LED is ON and has finished blinking
before starting ZDS. Refer to the LED Operation section of this chapter
for mor e details.
Always press the RESET button on the ICEBOX before starting
ZDS.
LED Operation
ZiLOG ICEBOXes use LEDs to communicate the different hardware
states. The following table gives a description of the LEDs. The
ICEBOX’s LED’s are located on the right front of the ICE B O X . Se e
Table 3.
Z86C36
ICEBOX
19
Table 3. Front LED Assignments
LEDIndicationDescription
READYOn
Off
RUNOn
Off
OTPOn
Off
PWROn
Off
Blink
Setup and InstallationUM002202-1001
Communicating in Bisync Mode and waiting for comma nd
Communicati ng in AS CII Mode or executing Bisync command
Running user code
Not running user cod e
The ICEBOX is performing OTP programming
The ICEBOX completed OTP programming
ICEBOX is powered up and Self Test is completed
Power is off
ICEBOX is self-testing
Z86C36
Note:
ICEBOX
20
Jumper Settings
T able 4 lists jumper setting that the are easily configured by the user. See
Figure 2 for the location of the jumpers.
Tabl e 4. Jumper Se tti ng s
JumperPinPositionDescription
J11-2InPowers the ICE chip with ICEBOX’s adjustable voltage
regulator (default), for more in form ation see Figure 3
J13-4InPowers the Target with ICEBOX’s adjustable voltage regulator
J12-4InTarget powers the ICE ch i p
J21-2InY2 Crystal to XTAL2
J22-3InUser Cr y s ta l to X TAL2
J31-2InY2 Crystal to XTAL1
J32-3InUser Cr y s ta l to X TAL1
J32-4InCanned Oscillator to XTAL1 (Default)
J51-2InNot installed (factory settings)
J62-4In Enable if P3.4 used for external memory/DM (see note)
J62-3InP3.4 not used (default)
J61-2InGround signal
J71-2InDefault setting
J72-3InOutput of PAL (Programable Array Logic)/not used
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 jumper.
UM002202-1001Setup and Installation
Z86C36
ICEBOX
The user can adjust the voltage of the ICE chip to match the target’s
voltage using the ICEBOX’s R55 Voltage Adjuster. See Figure 2 for the
location of the voltage adjuste r.
21
Setup and InstallationUM002202-1001
22
Z86C36
ICEBOX
This page intentiona lly left blank.
UM002202-1001Setup and Installation
Z86C36
Note:
ICEBOX
23
3
3
Overview
USING ZDS
Select the ICEBOX
This ICEBOX is fully compatible with ZiLOG Developer Studio (ZDS)
software. The fol lowing steps br iefly de scr ibe th e procedur es ne cessary to
setup and create projects with the Z86C36 ICEBOX. A summary of the
ICEBOX’s available debug windows is also included at the end of this
chapter.
For more detailed informatio n on using ZDS, refer to the ZDS User
Manual (in PDF format) located on the installation CD-ROM, or
download the latest informat ion from our web site at www.zilog.com.
Perform the foll o wing steps to se lect the IC EB OX an d creat e a ne w
project:
1. Open ZDS by selecting Start>Programs>Zilog Developer Studio>
ZDS.
2. Choose New Project from the File menu. The New Project dia lo g box
appears as show in Figure 6.
If the project has already been created, s elect Target from the
Project menu and perform the following steps that are applicable
for the ZiLOG MCU Database dialog box.
UM002201-0301Overview
24
Note:
Z86C36
ICEBOX
Z86C3500ZEM
Figure 6.New Project Dialog Box
3. Select Family in the Selection by field.
4. Select Z8 from the Master pop-up list.
5. Select a microcontroller from t he Z8 fa mily in the Project Target popup list.
6. Select Z86C3500ZEM or Z86C3600ZEM in the Emulator pop-up
list.
The Z86C3600ZEM becomes the Z86C3500ZEM when you use a
Z86C50 ICE chip.
7. Click on the browse button (...) in the Project Name field. The New
Project Browser dialog box appears.
8. Enter the project file name and select a path in the New Project
Browse dialog box.
UM002201-0301Overview
Z86C36
Note:
Note:
ICEBOX
All build output files, such as linker and assembly files are saved
in the same direc tory as the project.
9. Click Save. The project name appears in the P roject Na me field in the
New Project dialog box.
10. Click on Chip Data to view the microcontroller specifications.
Fields in the Chip Data page are read-only and can not be
modified.
11. Click OK. The new project is saved as the name specified in the New
Project Browse dialog box.
12. Select Emulator Configuration from the Project menu. The Emulator
Configuration dialog box appears, as shown in Figure 7.
25
Figure 7.Emulator Configuration Dialog Box
OverviewUM002201-0301
26
Note:
Z86C36
ICEBOX
13. Ensure that Emulator is selected in the Module 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 Configurat ion options.
17. Select Save Project from the File menu to save the emulator
configuration setting.
Open a Project and Add Files
A previously created project has the following attributes saved with it:
•
T arget settings
•
Assemb ler an d Link er se ttin gs for the specified target
•
Source files (including header files)
Use the Proj ect Viewer window to vie w and acc ess the va rio u s
files in any given project.
Perform the following steps to open a previously created project:
1. Select Open Project from the File menu. The Open Project dia lo g box
appears.
2. In the Open Project dialog box, select the previously created project.
The project appears in the Project Viewer window, as shown in
Figure 8.
UM002201-0301Overview
Z86C36
ICEBOX
Figure 8.Project Viewer Window
Add an Existing File
Perform the following steps to add an existing file to a project:
1. Select Add to Project>Files from the Project menu. The Insert Files
into Project dialog box appears, as shown in Figure 9.
27
Figure 9.Insert Files into Project Dialog Box
2. Select the file to add to the project.
OverviewUM002201-0301
28
Note:
Note:
Z86C36
ICEBOX
3. Click Open. The file appears in the Proje ct Viewe r window, a s shown
in Figure 10.
Figure 10.Project Viewer Win dow with Fil e
4. Double-click on the file in the Project Viewer window. The file
appears in the ZDS main Edit window.
In some cases, non-editable files, such as .obj files need to be
included in a project. These files are displayed in the source file
list, but cannot be opened. When the projec t is built, th ese file s are
automatically linked.
5. Select Update All Dependencies from the Build menu. The
Dependencies folder list in the Project Viewer window is updated.
Add a New File
1. Select Add to Project>New from the Project menu. The Insert New
Files Into Project dialog box appear s.
2. Type a file name in the File Name field.
3. Click Open. The new file name appear s in the Pro ject V i ewer window
with a .asm suffix, and a blank Edit window also appears.
Header and Included files do not have to be added. The progra m
detects thos e ca lled b y th e source code.
UM002201-0301Overview
#8#+.#$.'&'$7)9+0&195
Table 5 lists the debug windows that are available using ZDS.
Table 5. Debug Windows
Z86C36
ICEBOX
29
Window
Watch
Z8 Standard Registers
Code Memory
Disassembly
Function Updated values display in red
•
Shows the symbols and the contents of the registers(see the
ZDS user manual for more information)
•
Shows the contents of the Z8 standard registers
•
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 specific address ente red in the Code Address ed it
box
•
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 Disassembly wind ow is automatically displayed w hen
debugging hex code or whenever there is no corresponding
source fi le avai la ble at t he add ress spec i fie d by t he pro gram
counter
OverviewUM002201-0301
30
Z86C36
ICEBOX
Table 5. Debug Windows (Continued)
Window
Z8 Register File
Z8 Expanded Register
Working Registers
Timer Count er Registers •Modify and view the timer/counter registers in this window
Ports Register
Function
•
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
•
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
•
Modify and view working registers in this window
•
Monitor and edit port registers in this window
Updated values display in red
UM002201-0301Overview
Z86C36
Note:
ICEBOX
Appendix A: Troubleshooting Guide
INTRODUCTION
Before contacting a ZiLOG represen tat i ve or submitting a Problem
Report, please follow these simple steps. Also, check the Precautions and
Limitations sections in the Product Information document included with
the emulator 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 appearing after selecting the COM port
and the screen message displays Time-out while reading:
31
1. Check the RS-232C cable connection and communication port
selection in ZDS. See Select the ICEBOX on page 23 for more
information on how to configure the host PC’s port.
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 ports, 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 i s
available.
6. Ensure that the power supply is set at the correct voltage.
UM002202-1001Appendix A: Troubleshooting Guide
Z86C36
ICEBOX
32
7. Ensure that the J1 power jumper has been properly 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
typical) to the emu lat o r.
9. Check selected 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 instruction is used to disable interrupts.
Possible causes include:
•
The stack overflows into the general register locations.
•
Extra POP, PUSH, IRET, or RET is encountered (stack unbalanced).
•
Program resets repeatedly.
–Program counter rolls over from value FFFF to 0000 and
proceeds back to the beginning of progra m.
–Wa tch-Dog Timer (WDT) is not initializ ed or ref reshed.
•
Unintialized interr upt vector is activated. The interrupt vector is not
set to the interrupt handler.
ZDS ERROR MESSAGES
Can Not Open Windows
If this message appears while attem pting to open a window ZDS, there
may not be enough memory within the Microsoft Windows environment
UM002202-1001Appendix A: Troubleshooting Guide
to properly run ZDS. Try closing the other active applications or exit and
re-enter the Microsoft Windows environment.
Out of Synchronization with the Emulator
This mess age ap p ear s wh enev e r co mm u nic at ion be t ween the em u lat or
and the PC is interrupted.
1. Ensure that the power cable is connected.
2. Ensure that the RS-232C cable is connected.
3. Change the baud rate setting (default is 19200). A lower setting
usually improves communications reliability.
4. Reestablish communication between ZDS and the emulator. See the
ZDS on-line help for more information on establishing
communication with an emulator.
Z86C36
ICEBOX
33
Appendix A: Troubleshooting GuideUM002202-1001
34
Z86C36
ICEBOX
This page intentionally left blank.
UM002202-1001Appendix A: Troubleshooting Guide
Appendix B: ASCII Character Set
Table 6. ASCII Character Set
GraphicDecimalHexadecimalComments
00Null
11Start Of Heading
22Start Of Text
33End Of Text
44End Or Transmission
55Enquiry
Z86C36
ICEBOX
35
66Acknowledge
77Bell
88Backspace
99Horizontal Ta bulation
10ALine Feed
11BVe rtical Tabulation
12CForm Feed
13DCarriage Return
14EShift Out
15FShift In
1610Data Link Escape
1711Device Control 1
1812Devic e Control 2
UM002202-1001Appendix B: ASCII Character Set
Z86C36
ICEBOX
36
Table 6. ASCII Character Set (Continued)
GraphicDecimalHexadecimalComments
1913Devic e Control 3
2014Devic e Control 4
2115Negat ive Acknowledge
2216Synchronous Idle
2317End Of Bloc k
2418Cancel
2519End Of Medium
261ASubstitute
271BEscape
281CFile Separator
291DGroup Separator
301ERecord Separator
311FUnit Separator
3220Space
!3321Exclamati on P o in t
"3422Quotation Mark
a9761Lowercase A
b9862Lowercase B
c9963Lowercase C
d10064Lowercase D
e10165Lowercase E
f10266Lowercase F
g10367Lowercase G
h10468Lowercase H
i10569Lowercase I
j1066ALowercase J
k1076BLowercase K
11086CLowercase L
m1096DLowercase M
n1106ELowercase N
Appendix B: ASCII Character SetUM002202-1001
Z86C36
ICEBOX
40
Table 6. ASCII Character Set (Continued)
GraphicDecimalHexadecimalComments
o1116FLowercase O
p11270Lowercase P
q11371Lowercase Q
r11472Lowercase R
s11573Lowercase S
t11674Lowercase T
u11775Lowercase U
v11876Lowercase V
w11977Lowercase W
x12078Lowercase X
y12179Lowercase Y
z1227ALowercase Z
{1237BOpening (Left) Brace
|1247CVertical Line
}1257DClosing (Right) Brace
~1267ETilde
1277FDelete
UM002202-1001Appendix B: ASCII Character Set
Appendix C: Problem/Suggestion
Report Form
If you experience any problems while operating this product, or if you note any in accuracies while reading the user manua l, please copy this fo rm, fill it out, the n mail or
fax it to
Customer Information
NameCountry
CompanyTelephone
AddressFax Number
City/State/ZIPE-Mail Address
ZiLOG. We also welcome your suggestions!
Z86C36
ICEBOX
41
Product InformationReturn Information
Serial # or Board Fab #/Rev. # ZiLOG, Inc.
Software VersionSystem Test/Customer Support
Manual Number910 E. Hamilton Ave., Suite 110, MS 4-3
Host Computer Description/TypeCampbell, CA 95008
Fax Number: (408) 558-8536
Email: tools@zilog.com
Problem Description or Suggestion
Provide a complete desc ription 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.
_______________________________________________________________________________
BinaryNumber system based on 2. A binary digit is a bit.
BISYNCBidirectional Synchronous Communication
Protocol.
BitA digit of a binary system. It has only two possible
values: 0 or 1.
43
BPSBits Per Second. Number of binary digits transmitted
every second during a data-tran sf er procedure.
BusIn Electr onics, a parallel interconnection of the
internal units of a system that enables data transfer
and contro l Information.
ByteA collection of four sequential bits of memory. Two
sequential bytes (8 bits) comprise one word.
COMDevice name used to designate a communication
port.
DIPDual In-line Package. The plastic housing designed
to be attached directly to a circuit board or equipment
case.
UM002202-1001Glossary
Z86C36
ICEBOX
44
EmulationProcess of duplicating the behavior of one product or
part using another medium.
Emulat orAn emulatio n devi ce . Fo r example, an In-Circui t
Emulator (ICE) module duplicates the behavior of
the chip it emulates in the circuit being tested.
GUIGraphical User Interface. The windows and text that
a user sees on their computer screen when they are
using a program.
ICEIn-Circuit Emulator. A ZiLOG product which
supports the application de sign process.
IconA small screen imag e rep resen t in g a spe cifi c
element like a document, embedded and linked
objects, or a collection of progra ms gathered
together in a group.
InitializeTo establish start-up parameters, typically involving
clearing all of some part of the device’s memory
space.
InstructionCommand.
I/OInput/Output. In computers, the part of the system
that deals wi th inter facing to external dev ic es for
input or output, such as keyboards or printers.
MCUMicrocontroller or Microcomputer Unit.
OTPOn e -T ime Programmabl e.
PCPersonal computer, program counter.
UM002202-1001Glossary
Z86C36
ICEBOX
POPRetri eve a V alu e fro m the Sta ck.
PortThe point at which a communications circui t term i-
nates at a Network, Serial, or Parallel Interface card.
PUSHStore a Value In the Stack.
RARelative Address.
RAMRandom-Access Memory. A memory that can be
written to or read at random. The device is usuall y
volatile, which means the data is lost without power.
RS-232CElectronic Industries Association Standard for
Asynchronous Transmissions Betwe en a Computer
and a Peripheral Device.
45
SOICSmall Outline IC.
SVGAS uper Video Graphics Adapter.
TMRTimer Mode Register.
UARTUniversal Asynchronous Receiver Transmitter.
Component or functional block that han dles
asynchronous communicatio ns. Co nverts the data
from the parallel format in which it is stored, to the
serial format for transmission.
VVolt, Overflow Flag.
V
CC
GlossaryUM002202-1001
Supply Voltage.
Z86C36
ICEBOX
46
WDTWat ch-D o g Tim er. A tim er tha t, when en abl ed under
normal operating conditions, must be reset within the
time period set within the application (WDTMR
(1,0)). If the timer is not reset, a Power-on Reset
occurs. Some earlier manuals refer to this timer as the
WDTMR.
WordAmount of data a processor can hold in its registers
and process at one time. A DSP word is often 16 bits.
Given the same clock rate, a 16-bit controlle r
processes four bytes in the same time it takes an 8-bit
controller to process two.
XTALCrystal.
Z8ZiLOG Chip.
ZDSZiLOG Developer Studio. ZiLOG’s program
development environment for Windows 95/98/NT.
Zlocatable object modules for the ZiLOG family of
microcontrollers.
ZMASMZiLOG Macro Cross Assembler. ZiLOG’s program
development environment for Windows 3.1.
UM002202-1001Glossary
Index
Z86C36
ICEBOX
47
A
Adjust the voltage 14
Appendix A 31, 35, 41
ASCII 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