This publication is subject to replacement by a later edition. To determine whether a later edition exists, or to
request copies of publications, contact
ZiLOG Worldwide Headquarters
910 E. Hamilton Avenue
Campbell, CA 95008
Telephone: 408.558.8500
Fax: 408.558.8300
www.ZiLOG.com
Windows is a registered trademark of Microsoft Corporation.
Follow the precautions listed below to avoid permanent damage to the emulator.
I.Always use a grounding strap to prevent damage resulting from electrostatic discharge (ESD).
II.Power-Up Precautions.
1.Ensure that all power to the emulator and the target application (if any) is turned OFF.
2.Connect the target pod to the target application (if any).
ii UM005100-IRR0400
Page 3
ElectricalSafeguards
Follow the precautions listed below to avoid permanent damage to the emulator.
I.Always use a grounding strap to prevent damage resulting from electrostatic discharge (ESD).
II. Power-Up Precautions.
3.Ensure that all power to the emulator and the target application (if any) is turned OFF.
4.Connect the target pod to the target application (if any).
5.Power up the emulator, then press the RESET button.
6.Power up the target application (if any).
III Power-Down Precautions.
When powering down, follow this procedure in the precise order shown below:
1.Power down the target application board (if any).
2.Remove the target pod.
3.Power down the emulator.
NOTES:
1.Refer to the ÒPrecaution ListÓ section of the Product Information sheet for additional operating
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.
UM005100-IRR0400iii
Page 4
Page 5
Z86L99 ICEBOX U
P
REFACE
SER’S MANUAL
ABOUT THIS MANUAL
W e recommend that you read and understand e v erything in this manual before setting up and
using the product. However, we recognize that users have different styles of learning. Therefore, we have designed this manual to be used either as a how-to procedural manual or a reference guide to important data.
The following conventions have been adopted to provide clarity and ease of use:
•
Universe Medium 10-point
– 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
all-caps is used to highlight to the following items:
•
Courier Regular 10-point
– bit
– software code
– file names and paths
– hexadecimal value
•
Grouping of Actions Within A Procedure Step
Actions in a procedure step are all performed on the same window or dialog box.
Actions performed on different windows or dialog boxes appear in separate steps.
Congratulations for selecting a fine development tool! The Z86L9900100ZEM ICEBOX is
ZiLOG’s in-circuit emulator providing emulation for the Z8 family of IR controllers. The
emulator is also capable of OTP programming for the family being emulated. The emulator
consists of an emulation daughter board that is plugged into a 64K motherboard via P1 and
P2 headers. The Z86D99 ICE chip is used as the emulation processor on the daughter board.
The motherboard provides host communication interface, control processor, I/O space
decoding and LED indicators. The emulator is designed to be used with ZiLOG Developers
Studio, giving the user a total package to write, edit and debug their applications.
UM005100-IRR04001–1
Page 14
Emulator FeaturesIntroduction
EMULATOR FEATURES
Key features of the Z86L9900100ZEM ICEBOX include:
•Supports up to 32K of ROM
•Vary the operating voltage from 3.0-4.0V
•Supports in-circuit emulation on target systems that operate from 3.0-4.0V
•The user can choose to power the ICE chip from either the emulator or target board
•Supports IR devices that operate up to 8MHz
•Emulates 28 and 40-pin DIP and 28-pin SOIC
•OTP programming for 28 pin DIP and 28 pin SOIC, 40 pin DIP packages
•Emulates and supports all the features and functions for a specified Z8 IR
microcontroller
•Multitasking allows the user to use other Windows applications while ZiLOG
Developer Studio (ZDS) is running
EMULATOR LIMITATIONS
The Z86D99 ICE chip’s ROM/ROMLESS pin is used to configure the ICE CHIP for 32K of
internal ROM. This configuration affects the Z86L9900100ZEM ICEBOX in the following
ways:
•Will not support emulation of a ROMLESS operation mode
•If the host software specifies that a device has between 4K to 32K of ROM the emulator
operates as if it is emulating a device with 32K of ROM
To emulate pull-up transistors for their target board, you must manually set the emulator’s
pull-up resistor dip switches. See page 2-12 for the proper settings of the emulator’s dip
switches.
NOTE: Mask option pull-up resistance at 3V is about 200k Ohm +/-50% at room temperature. Lower
voltage may cause an increase in resistance.
1–2UM005100-IRR0400
Page 15
IntroductionSupported ZiLOG Devices
SUPPORTED ZILOG DEVICES
Table 1-1 shows the products supported by the Z86L9900100ZEM ICEBOX:
TABLE 1-1. SUPPORTEDPRODUCTS
Packages EmulationOTP Required accessories
28 PDIPZ86L991PZ008SCZ86D991
PZ008SC
28 SOICZ86L991SZ008SCZ86D991
SZ008SC
40 PDIP Z86L990PZ008SCZ86D990
PZ008SC
48 SSOPN/AZ86D990
HZ008SC
28 PDIP emulation pod
28 PDIP program platform
(PC ASSY#99C0667-001)
28 PDIP emulation pod and a DIP to SOIC
conversion adapter from Emulation
Technology (AS-DIP 6-028-S003-1 or AS-DIP-6028-S003-2)
28 SOIC program platform
(PC ASSY#99C0668-001)
40 PDIP emulation pod
40 PDIP program platform
(PC ASSY#990716-001) Rev. B
Accessories for the 48 pin SSOP will be
available the 4th quarter of 2000
HARDWARE SPECIFICATIONS
O
PERATING CONDITIONS
Operating Humidity:10%-90% RH (Non condensing)
Operating T emperature: 20°C ±10°C
Clocks:The control processor operates at 7.3728 Mhz, the
emulation processor operates at 8Mhz
Serial Baud Rate:57,600 bps
POWER REQUIREMENTS
This emulator requires an external 5VDC power supply.
Operating Voltage (Input):+4.75 VDC to +5.25 VDC Max (+5.0 VDC typical)
Operating Voltage (Target):+3.0 VDC to +4.0 VDC Max
Operating Current:0.8A typical 1.5A MAX
ZiLOG Developer Studio communicates with theZ86L9900100ZEM ICEBOX using a
DB25, RS-232 and DCE cable (TxD, RxD only).
GUI-SUPPORTED COMPILER, ASSEMBLER FORMATS
The Emulator supports object (binary or Intel hex) code files produced by ZiLOG Developer
Studio (ZDS), ZiLOG Macro Cross Assembler (ZMASM).
KIT CONTENTS
The emulator kit contains one each of the following items:
•Z86L9900100ZEM ICEBOX
• Z86D991 40 PDIP program platform ZiLOG PC: 99C0716-001
•Z86D991 28 PDIP program platform ZiLOG PC: 99C0667-001
•Z86D991 28 SOIC program platform ZiLOG PC: 99C0668-001
•40 PDIP emulation pod with cable ZiLOG PC: 99C0206-001
•28 PDIP emulation pod with cable ZiLOG PC: 99C0217-001
•5V Power Cable with banana plugs
•RS-232 Serial Cable, 9-pin M-F
•ZiLOG Developer Studio Installation CD
•Z86L99 ICEBOX User’s Manual
ADDITIONALITEMSNOTSUPPLIED
The following items are required but are not currently supplied in the emulator kit:
•A source of power (+5VDC typical) for the emulator. This can be a laboratory power
supply with current rating of at least 1.5 ampere.
1–4UM005100-IRR0400
Page 17
IntroductionComputer Requirements
OPTIONAL RECOMMENDED ITEM
The following items are recommended:
•Your target design. Typically this is a wire-wrapped or printed circuit prototype that
includes a socket for the target device which the emulator cable/pod plugs into.
•Z8 C-Compiler
•Oscilloscope
•Logic Analyzer
COMPUTER REQUIREMENTS
M
INIMUM REQUIREMENTS
IBM PC (or 100-percent compatible) Pentium-Based Machine
75 MHz
16 MB RAM
VGA V ideo 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 Windo ws 95/98/NT
The following enhancements to the minimum requirements are recommended:
166MHz IBM PC
SVGA video adapter
UM005100-IRR04001–5
Page 18
Contacting ZiLOG Customer supportIntroduction
CONTACTING ZILOG CUSTOMER SUPPORT
ZILOG has a worldwide customer support center located in Austin, Texas. The customer
support center is open from 7 a.m. to 7 p.m. Central Time.
The customer support toll-free number for the United States and Canada is 1-877-ZiLOGCS
(1-877-945-6427). For calls outside of the United States and Canada dial 512-306-4169. The
FAX number to the customer support center is 512-306-4072. Customers can also access
customer support via the website at:
•For customer service - http://register.zilog.com/login.asp?login=servicelogin
For valuable information about hardware and software de v elopment tools go to ZiLOG home
page at http://www.zilog.com. The latest released version of the ZDS can be downloaded
from this site.
1–6UM005100-IRR0400
Page 19
Z86L99 ICEBOX U
SER’S MANUAL
CHAPTER 2
S
ET-UPAND INSTALLATION
HARDWARE INSTALLATION
Before installing the hardware, refer to Figure 2-1 for a diagram on connecting the emulator
to a PC and power supply; Figure 2-3 provides option jumper locations.
QUICKINSTALLATIONINSTRUCTIONS
To install the hardware utilizing a 5VDC wall-adaptor power supply, perform the following.
1. Set the correct jumper setting for powering the ICE chip and target board. See Emulator
connection on page 2-2.
2. Plug a 5.0 VDC 1.5 Amp Wall Power Adaptor to the power connector on the
Z86L9900100ZEM ICEBOX.
3. Turn on the power supply and ensure that it is set to + 5.0V and current limited at 2.5A.
4. Connect the serial cable to the PC.
5. Connect the emulator to the target board (if performing in-circuit emulation).
6. Set up the oscillator and option jumpers.
7. Power up the Z86L9900100ZEM.
UM005100-IRR04002–1
Page 20
Hardware InstallationSet-Up and Installation
COMPLETEINSTALLATIONINSTRUCTIONS
The following procedures illustrate a complete step-by-step guide on installing the emulator.
+
FIGURE 2-1. EMULATORCONNECTION
Set Power Jumper
The Z86L9900100ZEM ICEBOX allows the user to power the emulator and target from a
variety of different sources. Before powering the emulator the user should select their power
configuration.
CAUTION!
The user must choose their power source before powering the emulator. Before selecting a
power source study Figure 2-2, which shows a schematic of the J6 power jumper. Failure to
properly configure the power source will result in damage to the emulator or target.
2–2UM005100-IRR0400
Page 21
Set-Up and InstallationHardware Installation
The user should choose from one of the below options when selecting their power source
•Jumper pin 1 to pin 3 and pin 2 to pin 4 to power both the ICE chip and target from the
emulator’s adjustable voltage regulator (default setting)
•Jumper pin 1 to pin 3 to power the ICE chip with the emulator’s adjustable regulator
•Jumper pin 2 to pin 4 to power target with the emulator’s adjustable regulator
•Jumper pin 3 to pin 4 to power the ICE chip from the target
CAUTION!
When powering the target from the emulator ensure that the target’s power supply is disconnected .
Emulator Adjustable
Voltage Regulator
12
3
ICE chip
5
7
FIGURE 2-2. J6 JUMPERSCHEMATIC
4
Target
6
8
Voltage Digital to Analog Converter
UM005100-IRR04002–3
Page 22
Hardware InstallationSet-Up and Installation
RS-232C
J4
J3
Target Pod P6
J6
J1
OTP programing
interface
Ice Chip
J5
Oscillator
JP2
J2
JP1
Power
Logic analyzer
connector
On
S5
1 2 3 4 5 6 7 8
On
S4
1 2 3 4 5 6 7 8
On
S2
1 2 3 4 5 6 7 8
JP4
JP3
P3
On
S1
1 2 3 4 5 6 7 8
On
S6
1 2 3 4 5 6 7 8
Debug
pins
J8
J7
Reset
Voltage
adjuster
Target Pod P5
LEDS
FIGURE 2-3. Z86L9900100ZEM ICEBOX EXTERNALTOPVIEW
2–4UM005100-IRR0400
Page 23
Set-Up and InstallationHardware Installation
Connect the Power Supply
1. If the power supply provides voltage adjustment:
•Turn the power supply on and adjust it to +5V
•Adjust the setting adjustment for at least 2.5A, if there is a current-limiting adjustment.
2. Turn the power supply off.
3. Locate the power cable (red wire, black wire, and banana plugs on the 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 (labeled +, +V
or +5V).
4. Plug the white connector on the other end of the cable into the matching 4-pin connector
on the back side of the emulator. (This connection is keyed to ensure against an improper
connection.)
NOTE: The ZiLOG Power Supply Accessory Kit (ZPS05V00ZAC), which is sold separately, provides
a fixed-5V Universal Output Power Supply, accepts 110V to 220V AC input, and includes a power
cable and an in-line jack cable.
CAUTION!
Always check the supply voltage before plugging in the power cord.
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.
NOTE: 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. (Available at any electronics store for a nominal fee.)
UM005100-IRR04002–5
Page 24
Hardware InstallationSet-Up and Installation
Connect to the Design
Connect to the target design by performing the following steps:
1. Locate the emulation cable for the device.
CAUTION!
Wear a properly grounded wrist strap or similar ESD protection before continuing.
2. Plug the cable into the target device. Ensure that the pin 1 marking (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 emulator. See Figure 2-3 for
the location of the target pod.
4. Select the power source for the Z86D99 ICE chip by configuring the J6 jumper. See
T able 2-2 for more information on jumper settings and Figure 2-3 for the location of the J6
jumper.
5. Select either the supplied 8MHz oscillator or the target’s oscillator to clock the ICE chip.
See Jumper settings on page 2-10 for more information on how to configure the emulator
to use the target boards oscillator.
CAUTION!
The user can not run the emulator’s oscillator if the target oscillator or XTAL is connected. At
this time use one of the following methods to set the ICE-chip’s clock:
•To use the emulators oscillator remove the target’s oscillator and connect pin 2 to
pin 3 on the J5 jumper
•To Use the target’s oscillator and connect pin 1 to pin 2 on the J5 jumper and remove
the ICEBOX’s 8 MHz oscillator located at Y1.
2–6UM005100-IRR0400
Page 25
Set-Up and InstallationHardware Installation
Adjust the voltage
If the emulator is powered by its adjustable regulator then the voltage must be manually set.
Set the emulator voltage by performing the following steps:
CAUTION!
If the target and emulator are using separate power supplies then the ICE chip voltage must be
adjusted to match the target’s device voltage. Failure to match the target devices voltage with
the ICE chip’s voltage could result in damage to the emulator, target device or ICE chip.
1. Locate the voltage adjuster on top of the emulator. See Figure 2-3 for the location of the
voltage adjuster.
2. Attach the voltmeter lead to either pin 1 or pin 2 on the J6 jumper and ground.
3. Apply power to the emulator with the target device disconnected.
4. Turn the voltage adjuster’s screw until the voltmeter read-out matches the target device
output voltage.
Connect Logic Analyzer (Optional)
The logic analyzer can either be connected as part of the initial setup, or later as the user continues working with their design.
Connect to a logic analyzer by performing the following steps:
1. Locate the cable for the logic analyzer.
NOTE: Wear a properly grounded wrist strap or similar ESD protection before continuing.
2. Plug the logic analyzer into the ZiLOG logic analyzer adapter (sold separately from the
Z86L9900100ZEM ICEBOX kit).
NOTE: The logic analyzer adapter can be ordered from customer support by requesting part number
98C0289-001.
3. Plug the cable from the ZiLOG logic analyzer adapter into the emulator. Ensure that the pin
1 marking (as indicated by the red mark on the ribbon cable) matches the pin 1 on the target
board. See Figure 2-3 for the location of the logic analyzer connector.
UM005100-IRR04002–7
Page 26
Software InstallationSet-Up and Installation
Power the Emulator
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 J6 jumper. See Emulator connection on page 2-2. If the power supply allows voltage adjustment, adjust it again to
+5V. (It may be somewhat lower than +5V because of the emulator load.
After power-up, press the RESET button to reset the ICE chip. (Pressing the RESET button
avoids bus contention on the I/O lines.) If the emulator is not powering your design through
the V
pin, turn on the power supply of the design.
CC
CAUTION!
If your design already has a power supply, do not power your design from the emulator VCC pin.
When powering down, follow the procedure described below:
1. Power down the target application board (if using the target power supply).
2. Power down the emulator.
NOTE: Refer to the complete Electrical Safeguards information shown on the inside cover of this man-
ual.
SOFTWARE INSTALLATION
For more information on installing ZDS refer to the user manual PDF that is included on the
installation CD-ROM or download ZDS literature from the ZiLOG web page at zilog.com.
EMULATOR OPERATION
The following topics guide the user on how to operate the emulator and configure jumper settings.
RESETTING
Press the RESET button on the emulator to reset the state of the target device and the status
that was established using ZDS.
For example, the emulator sets the program counter to %000C.
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 more details.
NOTE: Always press the RESET button on the emulator before starting ZDS.
2–8UM005100-IRR0400
Page 27
Set-Up and InstallationEmulator Operation
LED OPERATION
ZiLOG emulators use LEDs to communicate the different hardware states. The following
table gives a description of the LEDs. The Z86L9900100ZEM LED’s are located on the right
front of the emulator.
FIGURE 2-4. FRONT LED ASSIGNMENTS
LEDIndicationDescription
READYOn
Off
RUNOn
Off
OTPOn
Off
PWROn
Off
Blink
Communicating in Bisync Mode and waiting for command
Communicating in ASCII Mode or executing Bisync command
Running user code
Not running user code
The Emulator is performing OTP programing
The Emulator is not performing OTP programming
Emulator is powered up and Self Test is completed
Power is off
Emulator is self-testing
UM005100-IRR04002–9
Page 28
Emulator OperationSet-Up and Installation
JUMPERSETTINGS
The following table lists jumper setting that the are easily configured by the user. See
Figure 2-3 for the jumper locations.
TABLE 2-1. JUMPERSETTINGS
Jumper PinPositionDescription
J1N/AOut (Default)OTP programming adapter pins
J2 N/AOut (Default)OTP programming adapter pins
J3 1-2 Out (Default)Reserved for data memory (do not use)
J4 1-2Out (Default)Reserved for external memory (do not use)
J61-3In (Default)ICE chip is powered by the emulator’s adjustable
regulator
J62-4In (Default)Target is powered by emulator’s adjustable
regulator
J65-7In ICE chip is powered by a programmable regulator
(The programmable regulator is currently not
supported . Contact ZiLOG customer support to see if
the programmable regulator has been released .)
J64-6In
J7 N/AOpen (Default)Do not Jumper, jumping these pins will short port
J8 1-2In (Default)Connects Ports 4 pin 3 to target
J81-2OutDisconnects ports 4 pin 3 from target
JP1 1-2In Disable Vbo
JP11-2Out (Default)Enable Vbo
JP21-2In (Default)AVDD to VDD core
JP21-2OutTarget board will supply power to AVDD (a 40 pin
JP31-2InA 28 pin part is being emulated
JP3 1-2Out (Default)VCC_I isolates from AVDD (use internal filter)
JP4 1-2In (Default)Cap’s to AVDD
JP4 1-2Out N/A
Target is not powered by emulator (See Emulator
connection on page 2-2 for more information)
4 pin 3 VCC! These two pins are used as a
connector for the port 4 pin 3 IR LED.
ICE chip uses target oscillator/clock (see Note at the
bottom of the table)
JP52-3 In * (Default)
ICE chip uses emulator oscillator/clock (see Note at
the bottom of the table)
NOTE: The user can not run the emulator’s oscillator if the target oscillator or XTAL is connected. At
this time use one of the following methods to set the ICE-chip’s clock:
•To use the emulators oscillator remove the target’s oscillator and connect pin 2 to pin 3 on
the J5 jumper
•To use the target’s oscillator and connect pin 1 to pin 2 on the J5 jumper
Setting Jumpers for Targets
For all targets ensure that JP2 and JP4 are always connected. For 40 pin targets also connect
JP3.
UM005100-IRR04002–11
Page 30
Emulator OperationSet-Up and Installation
DIP SETTINGS
DIP switch banks S1 and S3 are used to disable digital functions for ports 1 and 3. DIP
switch banks S2, S4, S5 and S6 are used to emulate port pin pull-up transistors for the Ice
Chip. See Figure 2-3 for the location of the DIP switches. The following tables list DIP settings that are easily configured by the user.
TABLE 2-2. DIP SETTINGSTODISABLEDIGITALFUNCTIONS
DIP bankSwitch Description
S11Turn off to disable digital functions for Port 5 Pin 0
S12Turn off to disable digital functions for Port 5 Pin 1
S13Turn off to disable digital functions for Port 5 Pin 2
S14Turn off to disable digital functions for Port 5 Pin 3
S15Turn off to disable digital functions for Port 4 Pin 4
S16Turn off to disable digital functions for Port 4 Pin 5
S17Turn off to disable digital functions for Port 4 Pin 6
S18Turn off to disable digital functions for Port 4 Pin 7
ABLE 2-3. DIP SETTINGSTOSETPULL-UP RESISTORS
T
DIP bankSwitch Description
S21Turn on to set a pull-up resistor for Port 2 Pin 0
S22Turn on to set a pull-up resistor for Port 2 Pin 1
S23Turn on to set a pull-up resistor for Port 2 Pin 2
S24Turn on to set a pull-up resistor for Port 2 Pin 3
S25Turn on to set a pull-up resistor for Port 2 Pin 4
S26Turn on to set a pull-up resistor for Port 2 Pin 5
S27Turn on to set a pull-up resistor for Port 2 Pin 6
S28Turn on to set a pull-up resistor for Port 2 Pin 7
S41Turn on to set a pull-up resistor for Port 5 Pin 0
S42Turn on to set a pull-up resistor for Port 5 Pin 1
S43Turn on to set a pull-up resistor for Port 5 Pin 2
S44Turn on to set a pull-up resistor for Port 5 Pin 3
S45Turn on to set a pull-up resistor for Port 5 Pin 4
2–12UM005100-IRR0400
Page 31
Set-Up and InstallationEmulator Operation
ABLE 2-3. DIP SETTINGSTOSETPULL-UP RESISTORS (CONTINUED)
T
DIP bankSwitch Description
S46Turn on to set a pull-up resistor for Port 5 Pin 5
S47Turn on to set a pull-up resistor for Port 5 Pin 6
S48Turn on to set a pull-up resistor for Port 5 Pin 7
S51Turn on to set a pull-up resistor for Port 6 Pin 0
S52Turn on to set a pull-up resistor for Port 6 Pin 1
S53Turn on to set a pull-up resistor for Port 6 Pin 2
S54Turn on to set a pull-up resistor for Port 6 Pin 3
S55Turn on to set a pull-up resistor for Port 6 Pin 4
S56Turn on to set a pull-up resistor for Port 6 Pin 5
S57Turn on to set a pull-up resistor for Port 6 Pin 6
S58Turn on to set a pull-up resistor for Port 6 Pin 7
S61Turn on to set a pull-up resistor for Port 4 Pin 0
S62Turn on to set a pull-up resistor for Port 4 Pin 1
S63Turn on to set a pull-up resistor for Port 4 Pin 2
S64Turn on to set a pull-up resistor for Port 4 Pin 3
S65Turn on to set a pull-up resistor for Port 4 Pin 4
S66Turn on to set a pull-up resistor for Port 4 Pin 5
S67Turn on to set a pull-up resistor for Port 4 Pin 6
S68Turn on to set a pull-up resistor for Port 4 Pin 7
NOTE: Mask option pull-up resistance at 3V is about 200k Ohm +/-50% at room temperature. Lower
voltage may cause an increase in resistance.
UM005100-IRR04002–13
Page 32
PERFORMING OTP PROGRAMMING
The Z86L9900100ZEM ICEBOX is designed for OTP programming. To perform OTP programming perform the following steps:
1. Locate the supplied OTP adapter for the micro controller you wish to program. Consult
Table 1-1for the proper OTP adapter.
2. Insert the OTP adapter into the emulator’s OTP Programming socket (J1 and J2), see
Figure 2-3.
3. Place the micro controller into the OTP programing adapter.
4. If the adapter is equipped with a ziff socket, ensure that the ZIF socket locking lever is in
the down (closed) position.
5. Perform OTP programing. Consult the ZDS user manual for more information on OTP
programing.
6. Pull straight up on the micro controller to remove it from the OTP programing adapter.
NOTE: Be careful not to bend the micro controller’s pins when removing it from the OTP adapter.
Page 33
Z86L99 ICEBOX U
SER’S MANUAL
CHAPTER 3
O
VERVIEW
EMULATION
The Z86L9900100ZEM ICEBOX uses the Z86D99 ICE chip to provide emulation for the Z8
family of IR controllers. The emulator is capable of OTP programming for the family being
emulated. The user can manually set pull-up resistors and adjust the voltage of the ICE chip
to match the target’s voltage.
UM005100-IRR04003–1
Page 34
Using ZDSOverview
USING ZDS
This emulator is fully compatible with ZiLOG Developer Studio (ZDS) software. The following steps briefly describe the procedures necessary to setup and create projects with the
Z86L9900100ZEM emulator. A summary of the emulator’s available debug windows is also
included 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 installation CD-ROM, or do wnload the latest information from our web site at
www .zilog.com.
SELECTTHE EMULATOR
To select the emulator and create a new project, perform the following steps:
1. Open ZDS by selecting Start>Programs>Zilog Developer Studio> ZDS.
2. Choose New Project from the File menu. The New Project dialog box appears.
NOTE: If the project has already been created, select Target from the Project menu and perform the
following steps for the ZiLOG MCU Database dialog box. See Figure 3-1.
FIGURE 3-1. NEW PROJECTDIALOGBOX
3. Select Application in the Selection by field.
4. Select IR Remote from the Master pop-up list.
5. Select a microcontroller from the IR Remote family in the Project Target pop-up list.
6. Select Z86L9900100ZEM in the Emulator pop-up list.
3–2UM005100-IRR0400
Page 35
OverviewUsing ZDS
7. Click on the browse button (...) in the Project Name field. The New Project Browse
dialog box appears.
8. Enter the project file name and select a path in the New Project Browse dialog box.
NOTE: All build output files, such as linker and assembly files are saved in the same directory as the
project.
9. Click Save. The project name appears in the Project Name field in the New Project dialog
box.
10. Click on Chip Data to view the micro controller specifications.
NOTE: Fields in the Chip Data page are read-only and can’t 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. See Figure 3-2.
FIGURE 3-2. EMULATOR CONFIGURATIONDIALOGBOX
13. Ensure that Emulator is selected in the Module field.
14. Select the port the emulator 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 Project from the File menu to save the emulator configuration setting.
UM005100-IRR04003–3
Page 36
Using ZDSOverview
OPENAPROJECTANDADDFILES
A previously created project has the following attributes saved with it:
•Target settings
•Assembler and Linker settings for the specified target
•Source files (including header files)
NOTE: Use the Project Viewer window to view and access the various 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 dialog box appears.
2. In the Open Project dialog box, select the previously created project. The project appears
in the Project Viewer window. See Figure 3-3.
FIGURE 3-3. PROJECT VIEWERWINDOW
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. See Figure 3-4.
3–4UM005100-IRR0400
Page 37
OverviewUsing ZDS
FIGURE 3-4. INSERT FILES INTO PROJECTDIALOGBOX
2. Select the file to add to the project.
3. Click Open. The file appears in the Project Viewer window. See Figure 3-5.
FIGURE 3-5. PROJECT VIEWERWINDOWWITHFILE
4. Double-click on the file in the Project Viewer window. The file appears in the ZDS main
Edit window.
NOTE: In some cases, non-editable files, such as .obj files need to be included in a project.
These files will be displayed in the source file list, but cannot be opened. When the project is built,
these files are automatically linked.
5. Select Update All Dependencies from the Build menu. The Dependencies folder list
in the Project Viewer window is updated.
UM005100-IRR04003–5
Page 38
Using ZDSOverview
Add a new file
1. Select Add to Project>New from the Project menu. The Insert New Files Into
Project dialog box appears.
2. Type a file name in the File Name field.
3. Click Open. The new file name appears in the Project Viewer window with a .asm
suffix, and a blank Edit window also appears.
NOTE: Header and Included files do not have to be added. The program detects those called by the
source code.
3–6UM005100-IRR0400
Page 39
OverviewAvailable Debug Windows
AVAILABLE DEBUG WINDOWS
The following table lists the debug windows that are available using ZDS.
TABLE 3-1. DEBUGWINDOWS
WindowFunction (Updated values will display in red)
Watch
Z8 Standard
Registers
Code Memory
Disassembly
Z8 Register File
Z8 Expanded
Register
Working Registers
• 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 monitor, edit, and download a file.ld or
file.hex into the Code Memory from generated assembly
source code
• Tracks a specific address entered in the Code Address edit 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 window is automatically displayed when
debugging hex code or whenever there is no corresponding
source file available at the address specified by the program
counter
• 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
UM005100-IRR04003–7
Page 40
Available Debug WindowsOverview
TABLE 3-1. DEBUGWINDOWS (CONTINUED)
WindowFunction (Updated values will display in red)
Timer Counter
Registers
Ports Register
Internal Data
Memory
• Modify the timer/counter registers in this window
• Monitor and edit port registers in this window
• Display address from FF00 to FFFF
3–8UM005100-IRR0400
Page 41
Z86L99 ICEBOX U
SER’S MANUAL
APPENDIX A
TROUBLESHOOTING GUIDE
INTRODUCTION
Before contacting a ZiLOG representative 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.
If the initial ZiLOG screen is not appearing after selecting the COM port and the screen message displays Time-out while reading:
1. Check the RS-232C cable connection and communication port selection in ZDS. See Select
the Emulator on page 3-2 for more information on how to configure the host PC’s port.
2. Reset the emulator and ZDS.
3. If you are using the emulator’s oscillator, ensure that you removed the target’s oscillator
and connected pin 2 to pin 3 on the J5 jumper.
4. If ICEBOX stops working after connecting to the target, check whether the target crystal is
removed while using the ICEBOX’s oscillator.
5. Try connecting another cable.
6. Check if transmit/receive signals need to be swapped.
NOTE: On some DB9 connectors for the COM ports, the transmit/receive signal may be swapped and
a Null Modem adapter may be required.
7. Ensure that the power supply is connected, is turned on, and power is available.
8. Ensure that the power supply is set at +4.75 VDC to +5.25 VDC Max (+5.0 VDC typical).
9. Ensure that the J6 power jumper has been properly configured. See Emulator connection
on page 2-2 for more information on setting the J6 jumper.
10. Check if power supply is supplying the required current (0.8A typical) to the emulator.
UM005100-IRR0400A–1
Page 42
Counter Jumps to Unexpected AddressTroubleshooting Guide
11. Check P42 pin. If P42 stays low check the target pod and ensure that it is not shorting to
ground. If it is shorted, ensure that you are using the proper emulation pod, see Table 1-1.
12. After resetting the emulator, wait a minimum of 5 seconds before running ZDS.
13. If P42 always shows low, check the 40-pin target pod’s pin 31.
NOTE: The previous Z86L71 and Z86L98 ICEBOX 40 pin target pod have pin 31 connecting to
ground for emulating the L73/87/89. That target pod can not be used for Z86L990 emulation. Only use
the target cable which is shipped with the Z86L99 ICEBOX.
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 program.
– Watch-Dog Timer (WDT) is not initialized or refreshed.
•Unintialized interrupt vector is activated. The interrupt vector is not set to the interrupt
handler.
A–2UM005100-IRR0400
Page 43
Troubleshooting Guide ZDS Error Messages
ZDS ERROR MESSAGES
C
AN NOT OPEN WINDOWS
If this message appears while attempting to open a window in ZDS, there may be too many
applications running. Try closing the other active applications or exit and restart your PC.
OUTOF SYNCHRONIZATIONWITHTHE EMULATOR
This message appears whenever communication between the emulator and the PC is interrupted.
1. Ensure that the power cable is connected.
2. Ensure that the RS-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 user manual for
more information establishing communication with an emulator.
UM005100-IRR0400A–3
Page 44
Page 45
Z86L99 ICEBOXU
SER’S MANUAL
APPENDIX B
PROBLEM/SUGGESTION REPORT FORM
If you experience any problems while operating this product, or if you note any inaccuracies
while reading the User's Manual, please copy this form, fill it out, then mail or fax it to
ZiLOG. We also welcome your suggestions!
Customer Information
NameCountry
CompanyTelephone
AddressFax Number
City/State/ZIPE-Mail Address
Product Information and Return 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 description of the problem or your suggestion. If you are reporting a
specific problem, include all steps leading up to the occurrence of the problem. Attach
additional pages as necessary.
Address SpacePhysical or logical area of the target systemÕs
Memory Map. The memory map could be physically
partitioned into ROM to store code, and RAM for data.
The memory can also be divided logically to form separate areas for code and data storage.
ANSIAmerican National Standards Institute.
ASCIIAmerican Standard Code of Information Interchange.
ASMAssembler File.
ASYNCAsynchronous Communication Protocol.
ATMAsynchronous Transfer Mode.
BBinary.
BaudUnit of measure of transmission capacity.
BinaryNumber system based on 2. A binary digit is a bit.
BISYNCBidirectional Synchronous Communication Protocol.
Bisynchronous
CommunicationsA protocol for communications data transfer used
extensive in mainframe computer networks. The
UM005100-IRR0400Glossary–1
Page 48
Glossary
sending and receiving computers synchronize their
clocks before data transfer may begin.
BitA digit of a binary system. It has only two possible
values: 0 or 1.
BPSBits Per Second. Number of binary digits transmitted
every second during a data-transfer procedure.
BufferStorage Area in Memory.
BugA defect or unexpected characteristic or event.
BusIn Electronics, a parallel interconnection of the internal
units of a system that enables data transfer and
control Information.
ByteA collection of four sequential bits of memory. Two
sequential bytes (8 bits) comprise one word.
CALLThis command invokes a subroutine
ChecksumA field of one or more bytes appended to a block of n
words which contains a truncated binary sum formed
from the contents of that block. The sum is used to
verify the integrity of data in a ROM or on a tape.
COMDevice name used to designate a communication
port.
Glossary–2UM005100-IRR0400
Page 49
Glossary
Control SectionA continuous logical area containing code or user
data. Each control section has a name. The linker puts
all those control sections with the same name in one
entity. The linker provides address spaces to the
control sections. There are either absolute control
sections or relocatable ones.
CPUCentral Processing Unit.
Cross-Linkage EditorA linkage editor that executes on a processor that is not
the same as the target processor.
DSPDigital Signal Processing. A specialized micropro-
cessor that is tailored to perform high repetition math
processing and improve signal quality.
EmulatorAn emulation device. For example, an In-Circuit
Emulator (ICE) module duplicates the behavior of the
chip it emulates in the circuit being tested.
External SymbolA symbol that is referenced in the current program file
but is defined in another program file.
GUIGraphical User Interface. The windows and text that a
user sees on their computer screen when they are
using a program.
HHexadecimal, Half-Carry Flag.
HexHexadecimal.
HexadecimalA Base-16 Number System. Hex values are often
substituted for harder to read binary numbers.
ICEIn-Circuit Emulator. A ZiLOG product which supports
the application design process.
IEInterrupt Enable.
UM005100-IRR0400Glossary–3
Page 50
Glossary
IMImmediate Data Addressing Mode.
IMASKInterrupt Mask Register.
IMRInterrupt Mask Register.
INCIncrement.
INCWIncrement Word.
InitializeTo establish start-up parameters, typically involving
clearing all of some part of the deviceÕs memory space.
InstructionCommand.
INTInterrupt.
Internal SymbolA symbol that is defined in a program file. This symbol
could be visible to multiple functions within the same
program file.
I/OInput/Output. In computers, the part of the system that
deals with interfacing to external devices for input or
output, such as keyboards or printers.
IPRInterrupt Priority Register.
IrIndirect Working-Register Pair Only.
IRInfrared. A light frequency range just below that of
visible light.
IRQInterrupt Request.
ISDNIntegrated Services Digital Network.
ISOInternational Standards Organization.
Glossary–4UM005100-IRR0400
Page 51
Glossary
JPJump.
JRJump Relative.
LibraryA File Created by a Librarian. This file contains a
collection of object modules that were created by an
assembler or directly by a C compiler.
Local SymbolSymbol visible only to a particular function within a
program file.
LSBLeast Significant Bit.
MCUMicrocontroller or Microcomputer Unit.
MIMinus.
MLDMultiply and Load.
MPYAMultiply and ADD.
MPYSMultiply and Subtract.
MSBMost Significant Bit.
NibbleA Group of 4 Bits.
NMINon-Maskable Interrupt.
NOPNo Operation.
Object ModuleProgramming code created by assembling a file with
an assembler or compiling a file with a compiler.
These are relocatable object modules and are input to
the linker in order to produce an executable file.
OMFObject Module Format.
UM005100-IRR0400Glossary–5
Page 52
Glossary
OPCOperation Code.
Op CodeOperation Code.
OTPOne-Time Programmable.
PCONPort configuration register.
PERPeripheral. A device which supports the import or
output of information.
POPRetrieve a Value from the Stack.
PORPower-On Reset.
PortThe point at which a communications circuit termi-
nates at a Network, Serial, or Parallel Interface card.
PREPrescaler.
PROMProgrammable Read-Only Memory.
ProtocolFormal set of communications procedures governing
the format and control between two communications
devices. A protocol determines the type of error
checking to be used, the data compression method, if
any, how the sending device will indicate that it has
finished sending a message, and how the receiving
device will indicate that it has received a message.
PRTProgrammable Reload Timer or Print.
PTRPointer.
PTTPost, Telephone, and Telegraph. Agency in many
countries that is responsible for providing telecommunication approvals.
Glossary–6UM005100-IRR0400
Page 53
Glossary
Public/Global SymbolA programming variable that is available to more than
one program file.
PUSHStore a Value In the Stack.
rWorking Register Address.
RRegister or Working-Register Address, Rising Edge.
RARelative Address.
RAMRandom-Access Memory. A memory that can be
written to or read at random. The device is usually
volatile, which means the data is lost without power.
RCResistance/Capacitance.
RDRead.
RESReset.
ResolutionIn a digital image, the total number of pixels in the
horizontal and vertical directions.
RFSHRefresh.
ROMRead-Only Memory. Nonvolatile memory that stores
permanent programs. ROM usually consists of
solid-state chips.
ROMCSROM Chip Select.
RPRegister Pointer.
RRRead Register or Rotate Right.
SCFSet C Flag.
UM005100-IRR0400Glossary–7
Page 54
SIOSerial Input/Output.
SLShift Left or Special Lot.
SLLShift Left Logical.
SMRStop Mode Recovery.
SNSerial Number.
SOICSmall Outline IC.
SPStack Pointer.
SPHStack Pointer High.
SPISerial Peripheral Interface.
SPLStack Pointer Low.
Glossary
SRAMStatic Random Access Memory.
SRShift Right.
SRAShift Right Arithmetic.
SRCSource.
SSISmall Scale Integration. Chip that contains 5 to 50
gates or transistors.
StaticCharacteristic of Random Access Memory that
enables It to operate without clocking signals.
STStatus.
STKPTRStack Pointer.
Glossary–8UM005100-IRR0400
Page 55
Glossary
SUBSubtract.
SVGASuper Video Graphics Adapter.
S/WSoftware.
SWISoftware Interrupt.
Symbol DefinitionSymbol defined when the symbol name is associ-
ated with a certain amount of memory space,
depending on the type of the symbol and the size of
Its dimension.
Symbol ReferenceSymbol referenced within a program flow, when-
ever It is accessed for a read, write, or execute
operation.
SYNCSynchronous Communication Protocol. An event or
device is synchronized with the CPU or other process
timing.
TCTime Constant.
TCMTrellis Coded Modulation.
TCRTimer Control Register.
TMRTimer Mode Register.
UARTUniversal Asynchronous Receiver Transmitter.
Component or functional block that handles asynchronous communications. Converts the data from the
parallel format in which it is stored, to the serial format
for transmission.
UGEUnsigned Greater Than or Equal.
UGTUnsigned Greater Than.
UM005100-IRR0400Glossary–9
Page 56
Glossary
ULEUnsigned Less Than or Equal.
ULTUnsigned Less Than.
UMUserÕs Manual.
USARTUniversal Synchronous/Asynchronous
Receiver/Transmitter. Can handle synchronous as well
as asynchronous transmissions.
USBUniversal Serial Bus.
USCUniversal Serial Controller.
UTBUse Test Box. A board or system to test a particular
chip in an end-use application.
VVolt, Overflow Flag.
V
V
V
CC
DD
PP
Supply Voltage.
Voltage from the Digital Power Supply.
Programmed Voltage.
VRAMVideo Random-Access Memory. A special form of
RAM chip that has a separate serial-output port for
display refresh operations. This architecture speeds up
video adaptor performance.
V
REF
Analog Reference Voltage.
WDTWatch-Dog Timer. A timer that, when enabled 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.
Glossary–10UM005100-IRR0400
Page 57
Glossary
WDTOUTWatch-Dog Timer Output.
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 controller
processes four bytes in the same time it takes an 8-bit
controller to process two.
WRWrite.
WSWafer Sort.
XIndexed Address, Undefined.
XORBitwise Exclusive OR.
XTALCrystal.
ZZero, Zero Flag.
ZASMZiLOG Assembler. ZiLOGÕs program development
environment for DOS.
ZDSZiLOG Developer Studio. ZiLOGÕs program develop-
ment environment for Windows 95/98/NT.
ZEMZiLOG Emulator.
ZiLOG Symbol FormatThree fields per symbol including a string containing
the Symbol Name, a Symbol Attribute, and an Absolute
Value in Hexadecimal.
ZLDZiLOG Linkage Editor. Cross linkage editor for ZiLOGÕs
microcontrollers.
ZLIBZiLOG Librarian. Librarian for creating library files from
locatable object modules for the ZiLOG family of
microcontrollers.
UM005100-IRR0400Glossary–11
Page 58
Glossary
ZMASMZiLOG Macro Cross Assembler.
ZDSZiLOGÕs program development environment for
Windows 3.1 and up.
ZOMFZiLOGÕs Object Module Format. The object module
- WHEN DS_I IS ASSERTED:
IF (FG/BG && OUTSIDE_ROM)
TR-STATE T1.
ELSE IF (FG/BG && !OUTSIDE_ROM)
ENABLE T1.
ELSE IF (!FG/BG)
IF (C_JAM_P1)
TRI-STATE T1.
ELSE
ENABLE T1.
NOTE: ZDS MUST NOT SET D_MEMFLAG REGISTER
DMF_DATA BIT WHEN ACCESSING EXECUTABLE
RAM.