High-Performance 8-Bit Microcontrollers
Z8 Encore! XP
®
8K and 4K
Series
Product Specification
PS022816-0806
ZiLOG Worldwide Headquarters • 532 Race Street • San Jose, CA 95126
Telephone: 408.558.8500 • Fax: 408.558.8300
• www.zilog.com
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
532 Race Street
San Jose, CA 95126
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 service names mentioned herein may be trademarks of the companies with which
they are associated.
©2006 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. Devices sold by ZiLOG, Inc. are covered
by warranty and limitation of liability provisions appearing in the ZiLOG, Inc. Terms and Conditions of
Sale. ZiLOG, Inc. makes no warranty of merchantability or fitness for any purpose Except with the
express written approval of ZiLOG, use of information, devices, or technology as critical components
of life support systems is not authorized. No licenses are conveyed, implicitly or otherwise, by this
document under any intellectual property rights.
PS022816-0806
Z8 Encore! XP
®
8K and 4K Series
Product Specification
iii
Revision History
Each instance in the following table reflects a change to this document from its
previous revision. To see more detail, click the appropriate link in the table below.
Date
August
2006
Revision
Level
16
Description
Changes for improved readability. Added data to
Electrical
Characteristics
chapter.
Updated ADC chapter, electrical characteristics chapter and Port
Alternate Function Mapping table.
Page No
All
115, 226,
and 39
February
2006
15
Updated for 8-pin QFN/MLF-S in Table 2, Figure 2, and
Packaging section. Updated UART features.
Restored version 12 changes and rectified elements to incorporate
version 11 updates.
7, 8, 89
8, 84, 87,
88, 113,
124, 126,
148-161,
216, 218,
220, 221
142-154
1-6, 8-12,
14-15, 17.
19, 21-22,
24-27, 29-
31, 32-40,
44, 46, 48,
57-59, 62,
67-69, 72-
73, 75-76,
78, 81-89,
99-100,
102, 104-
105, 112-
125, 129-
140, 142-
144, 146-
151, 172-
177, 182,
204-223,
231, 237-
244
December 14
2005
November 13
2005
October
2005
12
Reverted back to version 11, removing changes in version 12.
Updated Flash Option Bits chapter.
Added references to optional low-power operational amplifier and
removed references to transimpedance amplifier. Numerous other
small corrections throughout the book.
PS022816-0806
Z8 Encore! XP
®
8K and 4K Series
Product Specification
iv
Date
Revision
Level
Description
Inserted missing temperature sensor chapter. Updated Figure1 to
include Transimpedance Amplifier. Added Transimpedance Amplifier
to Feature Description. Removed reference to VBO enable. Updated
Table 124 format. Changed Temperature Sensor column in ordering
information pages.
Added clarifying information for using the UART Baud Rate Generator
as a simplified timer. Removed 2.2 V
REF
in Table 129. Changed VBO
to LVD in Interrupt Controller. Changed PA5 T1OUT to T1OUT and
added clarification of Ports A-C for 8-pin and 20/28 pin devices in
Tables 21, 26 and 27 in the GPIO. Changed T
POR
and T
SMR
typical
values in Table 125, and Endurance minimum value in Table 126 in
Electrical Characteristics. Removed 2.2 V reference in Electrical
Characteristics and Analog-to-Digital Converter chapters. Added
clarifying text when writing to the Flash Control Register in Flash
Memory chapter. Added Lead-Free Packaging order information
Added 8-Pin Development Kit and USB Smart Cable Accessory Kit
ordering information.
Page No
3, 5, 152,
223, 227
June 2005 11
May 2005 10
99,
129,39,50,
51,56,58,
59,61,43,
46,203,
204,206,
121,123,
126-140,
222-228
227
January
2005
09
December 08
2004
Minor corrections to Low-Power Modes, General Purpose I/O, Analog 31,39,
to Digital Converter, Comparator, Flash Option Bits, Internal Precision 118,119,1
Oscillator, and Electrical Characteristics Chapters.
20,143,14
5,146,177,
202,203
Minor corrections made throughout document. Major changes include adding
Timer caution note in the Timer chapter and Flash controller caution note in the
Flash Memory chapter. In the Ordering chapter, corrected NVDS size typo. Added
three new CPU instructions. Added 20-pin SOIC package drawing in Packaging
chapter. Changed WDT oscillator frequency to 10 kHz in the Oscillator Control
chapter. Clarified NVDS read/write operations in the NVDS Code Interface section.
November 07
2004
PS022816-0806
Z8 Encore! XP
®
8K and 4K Series
Product Specification
v
Table of Contents
List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
List of Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Part Selection Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CPU and Peripheral Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
eZ8 CPU Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10-Bit Analog-to-Digital Converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Low-Power Operational Amplifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Internal Precision Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Temperature Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Analog Comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
External Crystal Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Low Voltage Detector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
On-Chip Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Universal Asynchronous Receiver/Transmitter . . . . . . . . . . . . . . . . . . . . . . .
Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
General Purpose I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Direct LED Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Flash Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Non-Volatile Data Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Interrupt Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Reset Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1
2
4
5
5
5
6
6
6
6
6
6
6
7
7
7
7
7
7
8
8
Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Available Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Pin Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Pin Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Address Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Register File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Program Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Data Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Flash Information Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
16
16
16
18
18
PS022816-0806
Table of Contents