Encore electronic UM014605-0208, Z8ENCORE000ZCO User Manual

Z8ENCORE000ZCO

Z8 Encore!® Flash Microcontroller Development Kit

User Manual
UM014605-0208
Copyright ©2008 by Zilog®, Inc. All rights reserved.
www.zilog.com
Z8 Encore!® Flash Microcontroller Development Kit

Revision History

Each instance in Revision History reflects a change to this document from its previous revision. For more details, refer to the corresponding pages and appropriate links in the table below.
Revision
Date
February 2008
July 2003 04 Updates. All
July 2003 03 Corrected Schematics. 30
March 2003
March 2003
Level Description Page No
05 Updated Zilog logo, changed
02 Corrected Timer 3 errors. All
01 Original Issue. All
User Manual
ii
All ZiLOG to Zilog, implemented style guide and template. Deleted ’Figure 7-Figure to be added at a later revision’ in Smart Cable section.
UM014605-0208 Revision History
Z8 Encore!® Flash Microcontroller Development Kit

Table of Contents

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Kit Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Software (on CD-ROM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
System/Software Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Supported Host System Configuration . . . . . . . . . . . . . . . . . . 4
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Setting up the Evaluation Board . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Changing the Universal 9 V DC Power Supply Plug
Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Installing the ZDS II—Z8 Encore!® Software . . . . . . . . . . . . . . . . 8
Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Using ZDS II . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Z8 Encore!
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
LED Array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Serial Communications Devices . . . . . . . . . . . . . . . . . . . . . . . . . 15
IrDA Transceiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Power and Communication Interfaces . . . . . . . . . . . . . . . . . . . . 17
Smart Cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Expansion Module Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Embedded Modem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
®
Evaluation Board. . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
I2C Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
SPI Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Configuration Headers/Jumpers . . . . . . . . . . . . . . . . . . . . . . 23
User Manual
iii
UM014605-0208 Table of Contents
Z8 Encore!® Flash Microcontroller Development Kit
User Manual
Pushbuttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Customer Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
iv
UM014605-0208 Table of Contents
Z8 Encore!® Flash Microcontroller Development Kit

Introduction

Zilog’s Z8 Encore!® Flash Microcontroller (MCU) is the first in the new line of Zilog microcontroller products. This board supports the Z8 Encore! and introduces Flash to the Z8
The Z8 Encore! Development Kit (Z8ENCORE000ZCO) allows you to become familiar with the hardware and software tools available with this product. This kit consists of the 64 KB version of the Z8 Encore! Evaluation board that supports and presents the features of the Z8 Encore!. The software development tool kit allows you to begin writing application software and contains all supporting documents.
This manual acquaints you with the Z8 Encore! Development Kit, and gives instructions on setting up and using the tools to start building designs and applications.
User Manual
®
line of microcontrollers.
1

Kit Contents

The Z8 Encore! Flash MCU development kit contains the following:

Hardware

The hardware component of the Z8 Encore! Flash MCU development kit include:
Z8 Encore! Evaluation board
Smart cable for PC to Z8 Encore! evaluation board (DB9 to six-pin male)
9 V DC universal power supply (for details, see Figure 3 on page 6)
UM014605-0208 Introduction
Smart Cable
Evaluation
Board
Z8 Encore!® Flash Microcontroller Development Kit
User Manual
Z
Registration
Card
Quick
Start Guide
9 V DC Universal
Power Supply
Software
Documentation
CD
2
Figure 1. Z8 Encore!® Development Kit Contents

Software (on CD-ROM)

The software components of Z8 Encore! development kit include:
Zilog Development Studio II (ZDS II)—Z8 Encore!® Integrated Development Environment (IDE) with ANSI C-Compiler
Sample code
Device driver software
Document browser
Acrobat Reader
UM014605-0208 Introduction
Z8 Encore!® Flash Microcontroller Development Kit

Documentation

The following documentation are included in the Z8 Encore! development kit:
Programmer’s Reference Sheet
Registration card
Z8 Encore!® technical documentation (on CD-ROM)
ZDS II—IDE User Manual
eZ8 CPU User Manual
Product Specification
Product briefs
Application notes
Programmer’s Reference Sheet
–Flyers
Product Line Card
User Manual
3
The sample code is installed with ZDS II and is located in the
lation directory>\sample
The device driver software is installed with ZDS II and resides in the
<installation directory>\applica­tions\Z8Encore!_F640X_DriversDemo
The documentation can be installed with the DemoShield interface or can be viewed on the CD-ROM using the DemoShield menus and a PDF reader. A copy of the Acrobat installer is provided on the CD-ROM and can be installed from the DemoShield install screen. After installing the documentation on your system, Windows Explorer can be used to select any document to be viewed with PDF file viewer.
UM014605-0208 Introduction
in the disk drive.
in the disk drive.
<instal-
Z8 Encore!® Flash Microcontroller Development Kit

System/Software Requirements

IBM PC (or compatible computer) with the following recommended configurations:

Supported Host System Configuration

The following system configurations are required on the host PC:
Microsoft Windows XP SP1/Windows 2000 SP3/Windows NT 4.0 SP6/Windows 98 SE
Pentium II/233 MHz processor or higher up to Pentium IV, 2.8 GHz
96 MB RAM or more
25 MB hard disk space or more
Super VGA video adapter
User Manual
4
CD-ROM
One or more RS-232 communication ports
UM014605-0208 Introduction
Z8 Encore!® Flash Microcontroller Development Kit

Installation

This chapter describes the installation of hardware and software tools for the Z8 Encore! Evaluation Kit. Also describes setting up the evaluation board, substituting plug configurations of the universal 9 V DC power supply, and installing the ZDS II—IDE Z8 Encore! software.

Setting up the Evaluation Board

The PC communicates with the Z8 Encore! Flash MCU Evaluation board using the serial port of the PC. A Z8 Encore! Smart Cable converts the RS-232 signals into the 3.3 V bidirectional open-drain signal needed to communicate with the on-chip debugger of the eZ8. This Z8 Encore! Smart Cable is a small circuit board with an attached cable and a six-pin right angle female connector that attaches to the evaluation board.
User Manual
5
Caution:
UM014605-0208 Installation
Always use a grounding strap to prevent damage resulting from electro­static discharge (ESD).
Follow the steps below to setup the Z8 Encore! evaluation board:
1. Connect the serial port of the PC to the Z8 Encore! Smart Cable
female DB9 connector.
2. Connect the Z8 Encore! Smart Cable to the Z8 Encore! Flash MCU
evaluation board pin header P4.
3. Connect the 9 V DC universal power supply to the evaluation board,
then to an electrical outlet.
For the Z8 Encore! development kit external connections, see Figure 2 on page 6.
Z8 Encore!® Flash Microcontroller Development Kit
User Manual
6
Serial Port
9 V Universal Power Supply
Smart Cable
PC
Evaluation Board
Figure 2. Evaluation Board External Connections

Changing the Universal 9 V DC Power Supply Plug Configurations

Figure 3 displays the contents of the Universal Power Supply kit.
9 V DC Universal
Power Supply
Z
Plug
Configurations
Removal Tool
Figure 3. 9 V DC Universal Power Supply Components
UM014605-0208 Installation
Z8 Encore!® Flash Microcontroller Development Kit
User Manual
The 9 V DC universal power supply features three different plug configu­rations, the power supply and a tool that aids in removing one plug con­figuration to insert another.
Follow the steps below to substitute one plug configuration for another:
1. Using the removal tool, place the power supply in the round hole at
the top of the current plug configuration.
2. Press down to disengage the keeper tab and push the plug configura-
tion out of its slot.
3. Select the plug configuration of choice for your location, and insert it
into the slot left by the previous plug configuration.
4. Push the new plug configuration down until it snaps into place (see
Figure 4).
7
Figure 4. Inserting a New Plug Configuration
UM014605-0208 Installation
Z8 Encore!® Flash Microcontroller Development Kit
Installing the ZDS II—Z8 Encore!
Follow the steps below to install the software tools:
1. Load the ZDS II—Z8 Encore!
drive of the host PC. The CD launches DemoShield automatically and provides a menu to install the product and documentation. Select INSTALL PRODUCTS followed by INSTALL ZDS II to display the Installation Wizard.
User Manual
®
Software
Flash MCU CD into the CD-ROM
8
Note:
Software versions used in the following illustrations are for reference only. You may have an updated version.
2. Click Next to continue with the installation. The License Agreement
appears.
3. Select Yes to accept the agreement and proceed with the installation.
4. After selecting Yes, the Choose Destination Location screen
appears. Follow the directions on the screen and choose whether to install ZDS II in the default location or in some other folder. Click
Next
.
5. The Select Program Folder screen appears. Follow the on-screen
instructions and click Next
.
6. After selecting Next, the Installation Wizard completes the
installation.
7. When the installation is complete, another screen appears asking you
to register the product online at www.zilog.com
. To register at a later time the registration link to the internet site is provided in the ZDS II Help menu.
8. The following directory is installed on the host PC, assuming all installation settings remain at their defaults:
C:/Program Files/ZiLOG/ZDSII_Z8Encore!_F640X_<Ver­sion>.
UM014605-0208 Installation

Getting Started

Using ZDS II

Follow the steps below to open an existing project:
1. Connect the Evaluation board to the host PC’s serial communications port using the Smart Cable.
2. Apply 9 V DC power to the Evaluation board.
Z8 Encore!® Flash Microcontroller Development Kit
User Manual
9
3. Run the ZDS II Software (
Encore! F640x_<Version>
F640x_<Version>ZDS II-28 Encore!
Start > Programs > ZDS II-Z8
).
4. Select Open Project from the File menu. The Open Project dialog box appears.
5. Select samples. The samples folder appears.
6. Select the access the
7. Select the
Z8F640x_ledBlink folder and then the src folder to ledBlink.pro project file.
ledblink.pro file. The initial ZDS II program screen
opens.
8. Click Rebuild All
and then the Reset icon to
connect and download the code to the Evaluation board.
9. Click Go icon to start the program.
For more information, refer to Zilog Developer Studio II—Z8 Encore® User Manual (UM0130), supplied with the documentation on the CD­ROM or available for download at www.zilog.com
.
UM014605-0208 Installation
Loading...
+ 30 hidden pages