Zilog Z8F0113 User Manual

Z8 Encore! XP® Microcontroller
Z8 Encore ! XP® F042A Series 8-Pin Develop ment Kit
User Manual
Copyright ©2008 by Zilog®, Inc. All rights reserv ed.
www.zilog.com
Z8 Encore! XP® F042A Series 8-Pin Development Kit

Revision History

Each instance in R evision Hist ory refle cts a c hange to this doc ument from its previous revision. For more deta ils, refer to the corresponding pages and appropriate links in the table below.
Revision
Date
May 2008 05 Updated Introduction and Table 1. 1 and 8 March
2008
February 2008
May 2005 02 Updated Figure 1 and Figure 2. 2 and 5 January
2005
Level Description Page No
04 Changed title to Z8 Encore! XP
03 Updated new Zilog logo, implemented
01 Original Issue. All
User Manual
ii
All F042A Series 8-Pin Development Kit. Updated System Requirements,
Installation, Documentation, and Use of Ceramic Resonator Y1 sections.
Added Zilog Help Options section.
All Style guide, and changed ZiLOG to Zilog.
UM018705-0508 Revision History
Z8 Encore! XP® F042A Series 8-Pin Development Kit

Table of Contents

Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Kit Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Software (on CD-ROM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Designing with the USB Smart Cable . . . . . . . . . . . . . . . . . . . . . 4
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Development Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
UART with IrDA ENDEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Jumpers and Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
DEMO Mode Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . 10
USER DEBUG Mode Jumper Settings . . . . . . . . . . . . . . . . . . . 10
Switches S1, S2, and SW1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
External Interface Headers JP1 and JP2 . . . . . . . . . . . . . . . . . . . . 11
Use of Ceramic Resonator Y1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Zilog Help Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
User Manual
iii
Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Customer Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
UM018705-0508 Table of Contents

Introduction

Z8 Encore! XP® F042A Series 8-Pin Development Kit
User Manual
1
Zilog’s Z8 Encore! XP® F042A Series 8-pin microc ontroller unit (MCU) is part of the Zilog MCU products. The Z8 Encore! XP Pin development kit (Z8F04A08100KITG) enable s you to become famil­iar with the hardware and software tools available with this produc t. This kit consists of 4 KB version of the Z8 Encore! development board that supports and presents the features of the Z8 Encore! XP F042A Series 8­pin package. This kit allows you to write application software and con­tains all supporting documents. Z8F042ASB020 is the silicon used in the board. For more information, refe r to Z8 Encore! XP Product Specification (PS0228).
This user manual acquaints you with the Z8 Encore! XP F042A Series 8­pin MCU development kit, and gives instructions on setting up and using the tools to start building desi gns and applications.

Kit Contents

The Z8 Encore! XP F042A Series 8-Pin MCU development kit contains the following:

Hardware

The hardware components include:
F042A Series 8-
®
F082A Series
Z8 Encore! XP F042A Series 8-pin development board
USB Smart Cable for PC to Z8 Encore! XP F042A Series 8-pin development board
5 V DC power supply
UM018705-0508 Introduction
Packaging
Z8 Encore! XP® F042A Series 8-Pin Development Kit
User Manual
CD-ROM Containing
Documentation
Power
Supply
USB Smart Cable
2
Development Board
Figure 1. Z8 Encore! XP F042A Series 8-Pin Development Kit Contents
(Printed Quick Start Guide Not Shown)

Software (on CD-ROM)

The software components include:
ZDS II—Z8 Encore!® IDE with ANSI C-Compiler
Sample code
Document browser
Acrobat Reader
UM018705-0508 Introduction

Documentation

The documentation includes:
Quick Start Guide (QS0055)
Z8 Encore! XP F042A Series 8-pin technical documentation (on CD­ROM)
Development Kit User Manual – ZDS II—IDE User Manual (UM0130) –eZ8 – Application Notes
Z8 Encore! XP® F042A Series 8-Pin Development Kit
User Manual
TM
CPU User Manual (UM0128)
3
The sample code is installed with ZDS II and is located at
tion directory>\samples
The documentation can be insta lled 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 provide d on the CD-ROM and can be installe d from the DemoShield install screen. After installing the documenta tion on the system Windows Explore r can be used to select any document to be viewed with the PDF file viewer.

System Requirements

IBM PC (or compatible computer) with the followi ng minimum configurations is requi red:
Microsoft Wi ndows XP Professional SP1/Windows 2000 SP3/ Windows 98 SE
Pentium II/233 MHz processor or higher up to Pentium IV, 2.8 GHz
96 MB RAM or more
35 MB hard disk space or more
Super VGA video adapter
<installa-
in the disk drive.
UM018705-0508 Introduction
Z8 Encore! XP® F042A Series 8-Pin Development Kit
CD-ROM
One USB high-speed or full-speed port on the host chassis or a powered Hu b

Designing with the USB Smart Cable

Z8 Encore! XP® F042A Series 8-pin development kit uses the USB Smart Cable provided in the kit. The Z8 Encore! Serial Smart Cable and associated TIM will not work with the Z8F04A08100KITG kit. Include the following when designing the targe t board a nd application:
The target design’s debug interface must include a RESET pin.
The target application must allow the RESET pin to be pulled LOW.
For more details, refer to Z8 Encore! XP cation (PS0228).
®
User Manual
4
F082A Series Produ ct Specifi-

Installation

For details on software installation and setup of the Z8 Encore! XP F042A Series 8-pin development kit refer to Z8 Encore! XP® F042A 8­Pin Development Kit Quick Start Guide (QS0055).
UM018705-0508 Introduction
Z8 Encore! XP® F042A Series 8-Pin Development Kit

Development Board

Introduction

Z8 Encore! XP® F042A Ser ies 8-pin de velopment boar d is a development and prototyping board for the Z8 Encore! XP F042A Series 8-pin MCU. The board provides a tool to evaluate features of Z8 Encore! XP F042A Series 8-pin MCU, and to start developing an application be fore building the hardware.
User Manual
5
Resonator not installed on production units
DBG Pin 1
Figure 2. Z8 Encore! XP F042A Series 8-Pin Developmen t Board
UM018705-0508 Development Board

Features

Z8 Encore! XP® F042A Series 8-Pin Development Kit
User Manual
The features of Z8 Encore! XP® F042A Series 8-pin development board include:
Z8 Encore!® MCU (8-pin SOIC)
3 LEDs
RS-232 interface
IrDA transceiver
T wo pushbuttons: RESET and TEST
5 V DC power connector
On-Chip Debugger interface
6
Prototyping area
External interface connectors JP1 and JP2
2.7 V–3.6 V operating voltage with 5 V-tolerant inputs
MCU
Z8 Encore! XP F042A Series 8-pin MCU is member of a family of Zilog® MCU products based upon the 8-bit eZ8™ core CPU. The Flash in-circuit programming capa bility a llows for faste r development ti me and program changes in the field. The eZ8 core CPU is upward compatible with existing Z8® instructions. The rich peripheral set of the Z8 Encore! XP F042A Series makes it suitabl e for a variety of applicati ons including motor control, security systems, home appliances, personal electronic devices, and sensors.
The development board contains circuitry to support and present all the features of the Z8 Encore! XP F042A Series.
UM018705-0508 Development Board
Z8 Encore! XP® F042A Series 8-Pin Development Kit
User Manual
The key features of the Z8 Encore! XP® F042A Series 8-pin MCU include:
eZ8™ core CPU
4 KB Flash memory with in-circuit programming capability
1 KB register RAM
5-channel, 10-bit analog-to-digital convert er (ADC)
Full-duplex UART
Infrared Data Associati on (IrDA)-compl iant infrar ed encoder/ decoder
T wo 16-bit timers with capture, compare, a nd PWM capability
W atchdog Timer (WDT) with internal RC oscillator
Six I/O pins
7
Programmable priority int errupts
On-Chip Debugger
Voltage Brownout (VBO) Protection
Power-On Reset (POR)
2.7 V–3.6 V operating voltage with 5 V-tolerant inputs
Operating temperatures: 20 °C ±10 °C
®
For more information on the Z8 Encore! Encore! XP® F082A Series P roduct Specification (PS0228), ava il ab l e fo r download at www.zilog.com.
family of devices, refer to Z8

UART with IrDA ENDEC

Z8 Encore! XP F042A Series 8-pin MCU (component U5) contains a fully-functional, high-perf ormance UAR T with Infrared Encoder/Decoder (endec). The Infrared endec is integr ated with an on-chip UART allowing easy communication between the Z8 Encore! XP F042A Series
UM018705-0508 Development Board
Z8 Encore! XP® F042A Series 8-Pin Development Kit
User Manual
8-pin MCU and IrDA transceivers. Infrar ed communication provides secure, reliable, low-cost, point-to-point communication between PCs, PDAs, cell phones, printers, and other infrared enabled devices.

Jumpers and Settings

T able 1 lists information on jumper funct ions.
Table 1. Z8F04A08100KITG Jumper Functions
Jumper State Description Default
J1* OUT Enables RS-232 interface X
IN Disables RS-232 interface
J2* OUT Enables IrDA interface
IN Disables IrDA interface X
J3 1-2 Connects U5 pin PA0 to Green LED D2 X
2-3 Connects U5 pin PA0 to JP2 pin 18
J4 OUT Disconnects PA0 from debug (DBG) pin X
IN Connects PA0 to DBG pin 4 on ZDI port P3
J5 1-2 Connects U5 pin PA1 to yellow LED D3 X
2-3 Connects U5 pin PA1 to JP2 pin 20
J6 1-2 Connects U5 pin PA2 to red LED D4 X
2-3 Connects U5 pin PA2 to JP2 pin 22
8
UM018705-0508 Development Board
Z8 Encore! XP® F042A Series 8-Pin Development Kit
User Manual
Table 1. Z8F04A08100KITG Jumper Functions (Continued)
Jumper State Description Default
J7 OUT DEMO mode setting X
IN Chip U5 resets when SW1 pressed
J8 1-2 Connects U5 pin PA3 to J11 pin 1 (CTS0
EN)
2-3 Connects U5 pin PA3 to JP2 pin 35
J9 1-2 Connects U5 pin PA4 to RXD RS232 signal X
2-3 Connects U5 pin PA4 to JP2 pin 35
J10 1-2 Connects U5 pin PA5 to TXD RS232 signal X
2-3 Connects U5 pin PA5 to JP2 pin 36
J11 OUT Disconnects PA3 from CTS0 RS232 signal X
IN Connects PA3 to CTS0 RS232 signal
*These jumpers must not be OUT at the same time
X
9
The board has two modes of operation: DEMO and USER DEBUG. Use DEMO mode to run the sample program included with the kit. Run the board in USER DEBUG mode:
When using the ZDI port to debug your code.
When configuring the board to run your own prototyp e code.
UM018705-0508 Development Board
Z8 Encore! XP® F042A Series 8-Pin Development Kit

DEMO Mode Jumper Settings

When running the board in DEMO mode, the following jumpers must be set:
J3 1-2
J4 OUT
J5 1-2
J6 1-2
J7 OUT
J8 1-2
J9 1-2
J10 1-2
User Manual
10
J11 OUT

USER DEBUG Mode Jumper Settings

When running the board in USER DEBUG mode, the following jumpers must be set:
J3 OUT
J4 IN
J6 OUT
J7 IN

Switches S1 , S2 , and SW 1

Switches S1, S2, and SW1 on the Z8 Encore! XP® F042A Series 8-pin development board perform the following functions:
S1–Test switch
UM018705-0508 Development Board
Z8 Encore! XP® F042A Series 8-Pin Development Kit
S2–Power ON/OFF switch
SW1–RESET

External Interface Headers JP1 and JP2

External interf ace header s JP1 and JP2 are displ ayed in the Schematics on page 12.

Use of Ceramic Resonator Y1

User Manual
11
When using ceramic resonator Y1, pins PA0, PA1, and DBG are unavailable. For m ore information , re fer t o Z8 Enc or e ! XP Product Specification (PS0228).

Zilog Help Options

Refer to the readme.txt and FAQ.html included in the ZDS II installa­tion directory; ZDS II On-Li ne Help and Developmen t Kit User Manuals. For Silicon issues, refer to the related Silicon Product Specific ation. To locate all documentatio n included in the kit, refer to the documentation browser located at:
<Installation Directory>\ZDSII_Z8Encore!_ <Version_Number>\Documentation
For latest updates on FAQs and to find answers, please contact Customer Support.
®
F082A Series
UM018705-0508 Development Board

Schematics

Figure 3 and Figure 4 on page 13 display the schematic s for Z8 Encore! XP F042A Series 8-pin development board.
Z8 Encore! XP
®
F042A Series 8-Pin Development Kit
User Manual
12
GND
P1
PWR JACK
GND
2 3 1
R3
0
R4
0
R8
0
R9
0
S2
ON
F
OF
SW KEY-SPDT
VCC_33V
147
3 4
GND
VCC_33V
147
5 6
GND
VCC_33V
147
11 10
VCC_33V
147
13 12
U3B
74LVC04/SO
U3C
74LVC04/SO
U3E
74LVC04/SO
GND
U3F
74LVC04/SO
GND
U2
3 2
VIN
VOUT
1
GND
SPX2815AU-3
.3
C2
PA5_TX
D0
0
147
1 2
R7 10K
E
-RESET DBG
0.1uF
C6
0.1uF D0
GND
PA4_RXD
U3A
74LVC04/SO
VCC_33V
GND
R10 10K
2 4 5 6
13 12
15
0
10
1
20
147
9 8
-RESE DBG
5V
C4
0.1uF
0.1uF
C8
TP1
+
C3
10/6
12345
GND
10/6
VCC
+
J11 HEADER 2
VCC_33V
VCC_33V
R1
C7
68
LED
21
GND
0
D1
3.3 OK
TP
2
PA3_CTS
VCC_33V
12345
0
PA3_CTS
VCC_33V
GND
0
CTS0
VCC_33V
-DIS_232
1
2
EN
R2 10K
J1
1 2
DIS RS
-DIS_IRDA
J2
DIS IR
P3 12
34 56
Header 3x2
PA5_TX
PA4_RXD
GND
232
1 2
DA
DBG INTERFAC
U1 C1+
C1­C2+ C2-
T1IN T2IN
R1OUT R2OUT
EN SHDN
U3D
74LVC04/SO
T
VCC_33V
1918
VCCGND
T1OUT T2OUT
3
V+
7
V-
17 8
16
R1IN
9
R2IN
14
NC
11
NC
SP3222EBCA GND
Title
C5
0.1uF
R5
68
R6 2R7
PA5_TX
D0
IRDA_SD
PA4_RXD
XP 4K 8 pin MD
C1
0.1uF
0
U4
P2 1 6 2 7 3 8 4 9 5
DB9 Female
USER
T
ZHX181
0
CONSO
0
GND
TXD0 CTS0 RXD
C9
330nF
5
VCC
1
LEDA
2
TXD
4
SD
0
3
RXD
6
GND
S Processor Module. Schematic.
LE
Figure 3. Schematic for Z8 Encore! XP F042A Series 8-Pin MCU Development Board
UM018705-0508 Schematics
Z8 Encore! XP
PA0_JP
®
F042A Series 8-Pin Development Kit
User Manual
13
PA0_JP
PA1_JP R17
0
R19 0
VCC_33VVCC_33VVCC_33VVCC_33VVCC_33VVCC_33V
R12 10K
S1
1 2
TES
VCC_33V
PA0 PA1 PA2_JP
R21
220K
Y1
1
1
2
2
20 MHz
TABLE
3
3
1
T
PA3_CTS
0
C13
8 pin foot
print
U5
VSS
VDD
2 7
PA0 PA5
3
PA1
PA4
4
PA2
PA3
Z8F04xA_8pin
R20 0
C11
NOTE
2
81
PA5_JP PA4_JP
6
PA3_JP
5
VCC_33V
GND
R16
0
C10
Clock Mode R16 R17 R19 R20
Internal Note 2 Note 2 none none no
Ceramic Res none none 0 Ohm 0 Ohm 22
Crystal none none 0 Ohm 0 Ohm 22
GND
R11
10
0
R13
10
0
R15
10
0
D2
2 1
LED
D3
2 1
LED
D4
2 1
LED
PA3_CTS
0
PA4_RXD
0
PA5_TX
D0
R21 C10 C11 Y1
ne none none none
0K 10-20pF 10-20pF user
select
0K 10-20 pF 10-20 pF user
select
LED_G
DEMO USER
GREEN
LED_Y
YEL
DEMO USER
LED_R
RED
DEMO USER
PA3_CTS
0
DEMO USER
PA4_RXD
0
DEMO USER
PA5_T
XD0
PA1_JP
PA2_JP
PA3_JP
PA4_JP
PA5_JP
123
Header 3
PA0
123
Header 3
123
Header 3
123
Header 3
123
Header 3
123
Header 3
PA0_MDS
J3
J4
PA1
PA2
J5
J6
J8
PA3
J9
PA4
1 2
HEADER 2
PA1_MDS
PA2_MDS
J7
HEADER 2
PA3_MDS
PA4_MDS
PA5_MDS
DBG
DBG
1 2
RESET
USERDEMO
J10
PA5
Note 2: The XP supports internal oscillator, extern resonator, external R/C and external CMOS dr R17, R19, R20, R21, C10, C11 and Y1 are used to selected. The development board is shipped c oscillator. When using internal oscilator, p as GPIO ports PA0 and PA1. Table 1 shows th configurati
ons.
Note
1: If Module is plugged onto the De RS232 interface is disabled
VCC_33V
SW1
GND
RESET
-RESET
al crystal, or ceramic
ive clock modes. R16,
support the clock mode
onfigured for internal
ins 2 and 3 could be used
e recommended clock mode
R14
10K
v Platform the local
by pin 50 of JP2
VCC_33V
GND
PA3_MDS PA4_MDS PA5_MDS
GND
-RESET-RESE VCC_33V
T
VCC_33V
1 3 5 7
9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59
Connector for referen only
-TRS
TN
-F91_WE
GND
A6 A0 A10
GND
A8 A13 A15
A19 A11
A4 A5
A21 A22
-CS0
-CS2 D1 D3 D5 D7
-MREQ
GND
-WR
-BUSACK
Title
XP 4K 8pin
SizeDocument Number
B
Date:
MDS Processor Module. Schematic.
Tuesday, December 14, 2004
96C
JP2
connecto
HEADER 30x2/SM
JP1
1 3 5 7
9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59
HEADER 30x2/SM
0964-001
2 4 6 8
GND
10 12 14 16
PA0_MDS
18
PA1_MDS
20
PA2_MDS
22 24 26 28
GND
30 32 34 36 38 40 42 44 46 48 50
-DIS_IrDA
52 54 56 58 60
JP1
ce
2 4 6 8
VCC_33V
10 12
A3
14
VCC_33V
16
A7
18
A9
20
A14
22
A16A18
24
GND
26
A1A2
28
A12
30
A20
32
A17
34
-DIS_FLASH
36
VCC_33V
38
A23
40
-CS1
42
D0
44
D2
46
D4
48
GND
50
D6
52
-IOREQ
54
-RD
56
-INSTRD
58
-BUSREQ
60
Sheet
22
GND
GND
of
r 2
-DIS_232
-DIS_IRDA
Rev
B
Figure 4. Schematic for Z8 Encore! XP F042A Series 8-Pin MCU Development Board
UM018705-0508 Schematics
Z8 Encore ! XP® F042A Series 8-Pin Development Kit

Customer Support

For answers to technical questi ons about the product, documentation, or any other issues with Zilog’s offerings, please visit Zilog’s Knowledge Base at http://www.zilog.com/kb
For any comments, detail technical questions, or reporting problems, please visit Zilog’s Technical Support at http://support.zilog.com
User Manual
14
.
.
UM018705-0508 Customer Support
Z8 Encore ! XP® F042A Series 8-Pin Development Kit
User Manual
15
Warning:
DO NOT USE IN LIFE SUPPORT
LIFE SUPPORT POLICY
ZILOG’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL COUNSEL OF ZILOG CORPORATION.
As used herein
Life support devices or systems are devices which (a) are intended for surgical implant into the body, or (b) support or sustain life and whose failure to perform when properly used in accordance with instructions for use provided in the labeling can be reasonably expected to result in a significant injury to the user. A critical component is any component in a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness.
Document Disclaimer
©2008 by Zilog, Inc. All rights reserved. Information in this publication concerning the devices, applications, or technology described is intended to suggest possible uses and may be superseded. ZILOG, INC. DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF THE INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT. ZILOG ALSO DOES NOT ASSUME LIABILITY FOR INTELLECTUAL PROPERTY INFRINGEMENT RELATED IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED HEREIN OR OTHERWISE.The information contained within this document has been verified according to the general principles of electrical and mechanical engineering.
Z8, Z8 Encore!, and Z8 Encore! XP are registered trademarks of Zilog, Inc. All other product or service names are the property of their respective owners.
UM018705-0508
Loading...