Zilog Z8F1621 User Manual

Z8 Encore! XP® F64xx Series Flash Microcontrollers

In-Circuit Emulator

UM016804-0208
Copyright ©2008 by Zilog®, Inc. All rights reserved.
www.zilog.com

Revision History

Each instance in the Revision History table reflects a change to this docu­ment from its previous revision. For more details, refer to the correspond­ing pages and appropriate links in the table below.
In-Circuit Emulator
User Manual
ii
Date
February 2008
Revision Level Description
04 Changed product name and
used latest template.
Page Number
All
UM016804-0208 Revision History

Table of Contents

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Kit Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Install the Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Install the Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Configure the Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
Setting Jumpers on the Z8 Encore! XP
Setting Up Ethernet Communications . . . . . . . . . . . . . . . . . . . . . . . . . .6
Running a Sample Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
Running a Simple Trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
Using Events to Start and Stop a Trace . . . . . . . . . . . . . . . . . . . . . . . .17
Single-Stepping Through a Program . . . . . . . . . . . . . . . . . . . . . . . . . .18
Peek/Poke Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Peek/Poke Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
LED Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
External Interface Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
How to Set Connector J11 Pin 1, External Trigger Out . . . . . . . . . . . .20
How to Set Connector J11 Pin 3, External Trigger In . . . . . . . . . . . . .21
Adapter Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
In-Circuit Emulator
User Manual
®
F64xx Series ICE . . . . . . . . . .6
iii
Customer Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
UM016804-0208 Table of Contents

Introduction

In-Circuit Emulator
User Manual
1
The Zilog Z8 Encore! XP® F64xx Series In-Circuit Emulator (ICE) pro­vides Z8 Encore! XP event system for program debugging using ZDS II development tools.
This user manual tells you how to do the following:
1. Install ZDS II software.
2. Configure the Z8 Encore! XP
3. Connect the Z8 Encore! XP
4. Run a demonstration program to verify proper operation and illustrate

Kit Contents

®
F64xx Series MCU emulation with a trace and
®
F64xx Series ICE for connection to
your PC.
®
F64xx Series ICE to a target board
®
using a Z8 Encore! XP
basic operation of the trace and event system.
One (1) Z8 Encore! XP® F64xx Series In-Circuit Emulator.
One (1) DB9-to-DB9 serial I/O cable.
One (1) CAT-5 crossover cable.
One (1) 40-pin PDIP, 44-pin LQFP, 44-pin PLCC, 64-pin LQFP, 68­pin PLCC, or 80-pin QFP package adapter (depending on the emula­tor model you ordered).
F64xx Series MCU package adapter.
UM016804-0208
One (1) target POD with ribbon cables to connect the Z8 Encore!
®
XP
F64xx Series ICE to the package adapter that came with your kit. (To obtain adapters for other Z8 Encore! XP packages, refer to “Adapter Ordering Information” on page 21.)
Two (2) 5V AC power supply and adapters
One (1) ZDS II Installation CD-ROM
®
F64xx Series MCU

Requirements

Table 1 lists the PC requirements for running ZDS II.
Table 1. ZDS II System Requirements
Recommended Configuration Minimum Configuration
• PC running MS Windows XP, SP1
• Pentium III/500 MHz processor
• 128 MB RAM
• 40 MB hard disk space
• Super VGA video adapter
• CD-ROM drive
• Ethernet port
• One or more RS-232 communications ports
• Internet browser (Internet Explorer or Netscape)
• PC running MS Windows 98SE/WinNT 4.0– SP6/Win2000–SP3/WinXP–SP1
• Pentium II/233 MHz processor
• 96 MB RAM
• 25 MB hard disk space
• Super VGA video adapter
• CD-ROM drive
• Ethernet port
• One or more RS-232 communications ports
• Internet browser (Internet Explorer or Netscape)
In-Circuit Emulator
User Manual
2

Install the Software

Follow these steps to install ZDS II with the ANSI C-Compiler.
1. Insert the ZDS II CD into your computer’s CD-ROM drive. DemoShield launches automatically. If it does not automatically launch, go to the root of the CD-ROM and double-click the file launch.exe.
2. DemoShield provides several installation choices. Select “Install ZDS II” to install now. You can install other software and accompanying documentation later.
3. Follow the instructions on the screen to complete the installation.

Install the Hardware

The Z8 Encore! XP® F64xx Series In-Circuit Emulator features an Ether­net interface and an RS-232 serial port. Hardware installation consists of
UM016804-0208
In-Circuit Emulator
User Manual
3
Note:
installing the package adapter that came with your kit into the compatible socket on a target board such as the Z8 Encore! XP
®
F64xx Series Devel­opment Board; connecting the emulator to a PC; and connecting the emu­lator to the target.
You may have to reconfigure network settings on the PC or on the Z8 Encore! XP
1. Install the Z8 Encore! XP
®
F64xx Series ICE before using the emulator.
®
F64xx Series MCU package adapter into the socket on your target board, being sure to line up the guide pins with the guide pin holes on the socket.
2. Connect the CAT-5 crossover cable from the PC to the Ethernet port
®
on the Z8 Encore! XP
F64xx Series ICE. See Figure 1.
If you prefer, you can connect the emulator to an Ethernet hub using a standard CAT-5 patch cable.
3. Connect the serial COM port on the PC to the serial port on the Z8 Encore! XP
®
F64xx Series ICE using the DB9-to-DB9 serial cable.
See Figure 2.
PC
CAT-5 Crossover Cable
DB9-to-DB9 Cable
Z8 Encore! XP
F64xx Series
ICE
Figure 1. Connecting a PC to the Z8 Encore! XP® F64xx Series ICE
UM016804-0208
3.3 VDC OK
Link
DB9 connector
LAN
Ethernet
(RJ-45)
USB
(unused)
Reset
Switch
Figure 2. Z8 Encore! XP® F64xx Series ICE Rear Panel
In-Circuit Emulator
User Manual
1.8 VDC Ok
Ext
Pwr
In
4
4. Connect the ribbon cables from the target POD to connectors J2 and J10 on the Z8 Encore! XP
®
F64xx Series ICE. (See Figure 3 and
Figure 4.)
5. Plug the target POD into the package adapter installed on the target board.
6. Connect a 5 VDC power supply to the Z8 Encore! XP
®
F64xx Series ICE. The ICE Run LED should illuminate (see Figure 5). If either power LED fails to illuminate, or if the ICE Fail LED either blinks continuously or fails to extinguish after 15 seconds, there is a problem with the unit. Contact Zilog support at
http://www.zilog.com/
for a replacement unit.
7. Connect a 5 VDC power supply to the Z8 Encore! development board.
UM016804-0208
Targe t P OD
and Adapter
Assembly
In-Circuit Emulator
User Manual
5
Figure 3. Connecting the Z8 Encore! XP® F64xx Series ICE to the Target POD and
Adapter Assembly (Typical Connection Shown)
J2
Pin 1
Pin 1
Figure 4. Z8 Encore! XP
J14
J11
J10
Unit Front
®
F64xx Series ICE Top View
J12
D1
UM016804-0208
Figure 5. Z8 Encore! XP® F64xx Series ICE Front-Panel

Configure the Hardware

Configuring the Z8 Encore! XP® F64xx Series ICE consists of selecting emulator jumper options and setting up Ethernet communications between the emulator and your PC.
Setting Jumpers on the Z8 Encore! XP® F64xx Series ICE
In-Circuit Emulator
User Manual
6
ICE Run
J10 and J2J11 and J14
J12
ICE Fail
There is one jumper on the Z8 Encore! XP® F64xx Series ICE. Jumper J12 allows you to select whether the emulator Watch-Dog Timer uses the 32-kHz internal oscillator or is programmable using the settings in ZDS II.
Table 2. Jumper J12 Settings on the Z8 Encore! XP® F64xx Series ICE
Watch-Dog Timer... Jumper Position
uses the 32-kHz internal oscillator 1 - 2 (default)
not implemented 3 - 4
Setting Up Ethernet Communications
The default IP address and subnet mask of the Z8 Encore! XP® F64xx Series ICE are 192.168.1.50 and 255.255.255.0, respectively. To enable communication between the PC running ZDSII and the Z8 Encore! XP
UM016804-0208
®
Loading...
+ 18 hidden pages