Download Z8 Encore! XP F042A Series Development Kit User Manual

Transcript
Z8F04A28100KITG
®
Z8 Encore! XP F042A Series
Development Kit
User Manual
UM016608-0608
Copyright ©2008 by Zilog®, Inc. All rights reserved.
www.zilog.com
Z8 Encore! XP® F042A Series Development Kit
User Manual
ii
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.
Revision
Level
Description
Page No
June
2008
08
Updated Hardware section.
1
May
2008
07
Removed Registration Card from
Documentation.
2
Added Z8F042ASJ020 to the Introduction
section.
1
Changed document title to Z8 Encore! XP®
F042A Series Development Kit.
All
Date
March
2008
06
Modified Table 2 in Schematics to incorporate
10, 11
changes to R15 from 220 Ohm to 0 Ohm. Added
Note 3 to the Schematics.
February
2008
05
Updated document with new Zilog logo and text. All
Updated document disclaimer. Implemented
Style Guide.
December
2006
04
Changed Figure 14 to Figure 2. Updated
schematics.
5, 10
August
2006
03
Removed Serial from Serial Smart Cable.
1
October
2005
02
Updated schematic to reflect board revision C.
Added 20 MHz clock information, and updated
power supply circuit.
6, 10, 11
UM016608-0608
Z8 Encore! XP® F042A Series Development Kit
User Manual
iii
FCC Statement
This device complies with part 15 of the FCC Rules. Operation is subject
to the following two conditions:
1. This device may not cause harmful interference.
2. This device must accept any interference received, including
interference that may cause undesired operation.
Safeguards
The following precaution must be observed when working with the
devices described in this document:
Caution: Always use a grounding strap to prevent damage resulting from
electrostatic discharge (ESD).
UM016608-0608
®
Z8 Encore! XP F042A Series Development Kit
User Manual
iv
Table of Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Kit Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Software (on CD-ROM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
System/Software Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Supported Host System Configuration . . . . . . . . . . . . . . . . . . 3
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Z8 Encore! XP® F042A Series
Development Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Z8 Encore! XP F042A Series MCU . . . . . . . . . . . . . . . . . . . . . . . 6
UART with IrDA Endec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Power and Communication Interfaces . . . . . . . . . . . . . . . . . . . . . 8
External Interface Headers JP1 and JP2 . . . . . . . . . . . . . . . . . . . 8
Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table of Contents
UM016608-0608
Z8 Encore! XP® F042A Series Development Kit
User Manual
1
Introduction
Zilog’s Z8 Encore! XP® F042A Series MCU is the part of the line of
Zilog® microcontroller products. The Z8 Encore! XP MCU Development
Kit (Z8F04A28100KITG) allows you to get familiar with the hardware
and software tools available with this product. This kit consists of the
4 KB version of the Z8 Encore!® Development Board that supports and
presents the features of the Z8 Encore! XP F042A Series. This kit allows
you to write application software and contains all supporting documents.
Z8F042ASJ020 is the silicon used in the board. For more details, refer to
Z8 Encore! XP® F0823 Series Product Specification (PS0243) available
for download at www.zilog.com.
This manual acquaints you with the Z8 Encore! XP F042A Series MCU
Development Kit and provides instructions on setting up and using the
tools to start building designs and applications.
Kit Contents
The Z8 Encore! XP F042A Series MCU Development Kit contains the
following:
Hardware
The hardware in Z8 Encore! XP F042A Series Development Kit includes:
•
•
•
UM016608-0608
Z8 Encore! XP F042A Series Development Board
USB Smart Cable for PC to Z8 Encore! XP® F042A series
development board (previous versions of the development kit used a
Serial Smart Cable. Refer your original documentation for information on using the Serial Smart Cable).
5 V DC power supply
Introduction
Z8 Encore! XP® F042A Series Development Kit
User Manual
2
Software (on CD-ROM)
The software on CD-ROM provided with Z8 Encore! XP F042A Series
Development Kit includes:
•
•
•
•
ZDS II-Z8 Encore!® IDE with ANSI C-Compiler
Sample code
Document browser
Acrobat Reader®
Packaging
CD-ROM Containing
Documentation
Power
Supply
Serial Smart Cable
Development
Board
Figure 1. Z8 Encore! XP F042A Series Development Kit Contents
UM016608-0608
Introduction
Z8 Encore! XP® F042A Series Development Kit
User Manual
3
Documentation
•
•
Quick Start Guide
Z8 Encore! XP F042A Series technical documentation (on CDROM):
– Development Kit User Manual
– ZDS II - IDE User Manual
–
eZ8TM CPU User Manual
The sample code is installed with ZDS II and resides in the <installation directory>\samples in the disk drive.
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, Windows Explorer can be used to select any document to
be viewed with the PDF file viewer.
System/Software Requirements
An IBM PC (or compatible computer) with the following minimum
configuration:
Supported Host System Configuration
UM016608-0608
•
Win98 Second Edition/ WinNT 4.0 Service Pack 6/ Win2000 Service
Pack 3/ WinXP Professional Service Pack 1
•
•
•
•
PentiumII/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
Introduction
Z8 Encore! XP® F042A Series Development Kit
User Manual
4
•
•
CD-ROM
One or more RS-232 communication ports
Installation
Follow the instructions in the Quick Start Guide for software installation
and setup of the Z8 Encore! XP® F042A Series Development Kit.
UM016608-0608
Introduction
Z8 Encore! XP® F042A Series Development Kit
User Manual
5
®
Z8 Encore! XP F042A Series
Development Board
The Z8 Encore! XP F042A Series Development Board is a development
and prototyping board for the Z8 Encore! XP F042A Series MCU. The
board provides a tool to evaluate features of Z8 Encore! XP F042A Series
MCU and to start developing an application before building the hardware.
Figure 2. Z8 Encore! XP F042A Series Development Board
UM016608-0608
Z8 Encore! XP® F042A Series Development
Z8 Encore! XP® F042A Series Development Kit
User Manual
6
Features
The features of Z8 Encore! XP F042A Series Development Board
include:
•
•
•
•
•
•
•
•
•
•
•
•
Z8 Encore!® MCU (28-pin SOIC)
3 LEDs
RS-232 interface
IrDA transceiver
Two pushbuttons, RESET and TEST
5 V DC power connector
On-Chip Debugger interface
20 MHz Crystal (Y1)
Header for ADC input
Prototyping area
External interface connectors JP1 and JP2
2.7 V to 3.6 V operating voltage with 5 V-tolerant inputs
Z8 Encore! XP F042A Series MCU
The Z8 Encore! XP F042A Series MCU is member of a family of Zilog®
microcontroller products based on the 8-bit eZ8TM core CPU. The Flash
in-circuit programming capability allows for faster development time 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 suitable for various applications including
motor control, security systems, home appliances, personal electronic
devices, and sensors.
UM016608-0608
Z8 Encore! XP® F042A Series Development
Z8 Encore! XP® F042A Series Development Kit
User Manual
7
The Development Board contains circuitry to support and present all the
features of the Z8 Encore! XP F042A Series. The main features of the
Z8 Encore! XP F042A Series include:
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
eZ8 core CPU
4 KB Flash memory with in-circuit programming capability
1 KB register RAM
5-channel, 10-bit Analog-to-Digital Converter (ADC)
Full-duplex UART
I2C interface (Master Mode only)
Serial Peripheral Interface (SPI)
Infrared Data Association (IrDA)-compliant infrared encoder/decoder
Two 16-bit timers with capture, compare, and PWM capability
Watchdog Timer (WDT) with internal RC oscillator
Eleven (20-pin package) or nineteen (28-pin package) I/O pins
Programmable priority interrupts
On-Chip Debugger (OCD)
Voltage Brownout Protection (VBO)
Power-On Reset (POR)
2.7 V to 3.6 V operating voltage with 5 V-tolerant inputs
Operating temperatures: 20 °C ±10 °C
For more information on the Z8 Encore! XP family of devices, refer to
Z8 Encore! XP® F0823 Series Product Specification (PS0243) available
for download at www.zilog.com.
UM016608-0608
Z8 Encore! XP® F042A Series Development
Z8 Encore! XP® F042A Series Development Kit
User Manual
8
UART with IrDA Endec
The Z8 Encore! XP F042A Series (component U5) contains a fully-functional, high-performance UART with Infrared Encoder/Decoder
(ENDEC). The Infrared Endec is integrated with an on-chip UART allowing easy communication between the Z8 Encore! XP F042A Series and
IrDA transceivers. Infrared communication provides secure, reliable,
low-cost, point-to-point communication between PCs, PDAs, cell phones,
printers and other infrared enabled devices.
Power and Communication Interfaces
Table 1 provides jumper information concerning the shunt status,
functions, devices and defaults affected of jumpers JP3 and JP4.
Table 1. Jumpers JP3 and JP4
Jumper
Status
Device Affected
Status
Default
JP3*
OUT
RS-232 interface
Enabled
JP3
IN
RS-232 interface
Disabled
JP4*
OUT
IrDA interface
Enabled
JP4
IN
IrDA interface
Disabled
X
JP5
OUT
U5 RESET/PD0
PD0 (GPIO)
X
JP5
IN
U5 RESET/PD0
RESET when
SW1 pressed
X
* These jumpers must not be OUT at the same time.
External Interface Headers JP1 and JP2
External interface headers JP1 and JP2 are displayed in the schematic in
Figure 3 and Figure 4 on page 10.
UM016608-0608
Z8 Encore! XP® F042A Series Development
Z8 Encore! XP® F042A Series Development Kit
User Manual
9
Schematics
This section provides schematics for the Z8 Encore! XP® F042A Series
Development Board.
UM016608-0608
Schematics
Z8 Encore! XP ® F042A Series Development Kit
User Manual
10
5
4
PA6_nT1OUT
1
2
100
GREEN
R8
D3
PA7_T1OUT
1
R9
SW2
VCC_33V
2
GND
100
YELL
TEST
100K
D
1
R12
10
RED
GPIO
PA2
Analog
Supply
GND
GND
1
If Module is plugged onto the Dev Platform the local
RS232 interface is disabled by pin 50 of JP2
JP2
R13 R16
R17
R22
IN
OUT
IN
OUT
IN
IN
OUT
IN
OUT
U8
C21...C23
OUT
OUT
OUT
optional
IN
PA3_CTS0
PA4_RXD0
GND
NOTE 1:
R12
SW1
0
U8
1
IO
2
PA0_T0IN_JP
PA1_T0OUT_JP
0
R21
0
1
2
3
4
5
6
7
8
9
10
JP5
PB6
3
R22
PB1/ANA1
PB2/ANA2
PB3/CLKIN/ANA3
VDD
PA0/T0IN/T0OUT/XIN/
PA1/T0OUT/XOUT
GND
PA2/DE
PA3/CTS0
PA4/RXD0
PB0_ANA0
PC3_COUT
PC2_ANA6
PC1_ANA5
PC0_ANA4
DBG
PD0
PA7_T1OUT
PA6_nT1OUT
PA5_TXD0
20
19
18
17
16
15
14
13
12
11
PB5_JP
C22
VCC_33V
PA0_T0IN
PA1_T0OUT
GND
0.033uF C21 C10
30uF
0.033uF 0.001uF
PA2
PA3_CTS0
PA4_RXD0
PA5_TXD0
PA3_CTS0
PA4_RXD0
PA5_TXD0
Z8F04xA
R14
0
PB2_ANA2
PB4_ANA7
PB5
PB3_ANA3
SENSE
C23
+
1
2
0
0
U5
PB0/ANA0
PC3/COUT/LED
PC2/ANA6/LED
PC1ANA5/CINN/LED
PC0/ANA4/CINP/LED
DBG
RESET/PD0
PA7/T1OUT
PA6/T1IN/T1OUT
PA5/TXD0
-RESET
VCC_33V
VCC_33V
HEADER 2
EMI Filter
20 pin footprint
U6
PB1_ANA1
PB2_ANA2
PB3_ANA3
VCC_33V
PA0_T0IN
PA1_T0OUT
GND
PA2
PA3_CTS0
PA4_RXD0
IO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
R16 0
PB2/ANA2
PB4/ANA7
PB5/Vref
PB3/ANA3/CLKIN
PB6(AVDD)
VDD
PA0/T0IN/T0OUTXIN
PA1/T0OUT/XOUT
GND
PB7(AGND)
PA2/DE
PA3/CTS0
PA4/RXD0
PA5/TXD0
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
A21
37
A22
39
-CS0
41
-CS2
43
D1
45
D3
47
D5
49
D7
51
-MREQ 53
GND
55
-WR
57
-BUSACK 59
3
PB7
PB0_ANA0
2
2
C19
3
PB1_ANA1
PB2_ANA2
PB3_ANA3
PC0_ANA4
PC1_ANA5
PC2_ANA6
PB4_ANA7
C20
C11
0.001uF
20 MHz
C12
0.001uF
C13
0.001uF
C14
0.001uF
C15
0.001uF
C16
0.001uF
C17
0.001uF
C18
0.001uF
NOTE 2
GND
J2
TABLE 2
Clock Mode
Internal Only
A
R14
R15
none
Crystal
0 Ohm
Ceramic Res
0 Ohm
External CMOS
none
none
0 Ohm
0 Ohm
none
R18
none
C19
none
none
Yes
none
none
none
none
C20
none
none
Yes
Yes
none
Yes
none
Note 2: The XP supports internal, external crystal, external
ceramic resonator, external R/C and external CMOS drive
clock modes. R14, R15, R18, C19, C20 and Y1 are used to
support the clock mode selected. The development board is
shipped configured for external 20MHz ceramic resonator or
internal clock operation. When using Internal oscilator,
pins 7 and 8 could be used as GPIO ports PA0 and PA1. To do
so install R20 and R21.
Table 2 shows the recommended clock mode configurations.
Y1
none
PD0
GND
PA5_TXD0
GND
-DIS_232
-DIS_IRDA
-DIS_IrDA
GND
PB0_ANA0
PB1_ANA1
PB2_ANA2
PB3_ANA3
PC0_ANA4
PC1_ANA5
PC2_ANA6
PB4_ANA7
1
3
5
7
9
11
13
15
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
-TRSTN
-F91_WE
GND
A6
A10
GND
A8
A13
A15
A18
A19
A2
A11
A4
A5
NOTE 1:
1
D
connector 1
for
reference
onlyJP1
DBG
1M
Y1
1
PC0_ANA4
PB2_ANA2
PB0_ANA0
GND
PC5
PC6
PB5_JP
PA0_T0IN_JP
PA1_T0OUT_JP
PA2
HEADER 30x2/SM
R18
B
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
C
PB1_ANA1
PB0_ANA0
PC3_COUT
PC2_ANA6
PC1_ANA5
PC0_ANA4
DBG
PD0
PC7
PC6
PA7_T1OUT
PC5
PC4
PA6_nT1OUT
28
27
26
25
24
23
22
21
20
19
18
17
16
15
PB1/ANA1
PB0/ANA0
PC3/COUT/LED
PC2/ANA6/LED
PC1/ANA5/CINN/LED
PC0/ANA4/CINP/LED
DBG
RESET/PD0
PC7/LED
PC6/LED
PA7/T1OUT
PC5/LED
PC4/LED
PA6/T1IN/T1OUT
R17 0
GND
connector
2
PC2_ANA6
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
28 pin footprint
Z8F04xA_28
R15
0
PB6
PB7
RESET/TEST2
R13
GND
VCC_33V
R20
R19 10K
GND
NOTE 3:
Resistors R20 and R21 are not populated. See Note 2.
C
PB4_ANA7
PC1_ANA5
PB3_ANA3
PB1_ANA1
VCC_33V
PC4
PC7
PC3_COUT
PA6_nT1OUT
GND
PA7_T1OUT
TABLE 1
100
2
VCC_33V
VCC_33V
2
R11
R10
D4
PC3_COUT
3
Note 1:
PB6 and PB7 are dual function pins (GPIO or Analog supply)
R12, R13, R16, and R17 are zero-ohm resistors used in
conjunction with GPIO Control Registers to select function
desired. C21, C22, and C23 are bypass capacitors that are used
for better noise rejection. U8 is an optional filter that can
be used to improve the quality of the Analog Supply. The
development board is shipped configured for Analog Supply.
Table 1 shows the configurations recommended
R7
D2
2
4
6
8
10
12
14
16
VCC_33V
A0
A3
VCC_33V
A7
A9
A14
A16
GND
A1
A12
A20
A17
-DIS_FLASH
VCC_33V
A23
-CS1
D0
D2
D4
GND
D6
-IOREQ
-RD
-INSTRD
-BUSREQ
B
HEADER 30x2/SM
A
HEADER 8X2
Title
(Use PA0_T0IN
pin on JP2)
XP 4K MDS Processor Module. Schematic.
Size
B
Date:
5
4
3
Document Number
Rev
96C0941-001
Tuesday, March 18, 2008
2
D
Sheet
2
of
3
1
Figure 3. Schematic, Z8 Encore! XP F042A Series MCU Development Board, Page 1 of 2
Schematics
UM016608-0608
Z8 Encore! XP ® F042A Series Development Kit
User Manual
11
5
4
3
2
1
VCC_33V
J1
VCC
C4
0.1uF
R23
10K
4
100/10
C6
0.1uF
SENSE
-Z_RST
5
VIN
OUT
2
4
SENSE
SHDN
GND
U7
LT1129-3.3/DD
3
D
2
+ C3
VCC_33V
1
VCC_33V
PA5_TXD0
PA5_TXD0
C1+
C1
0.1uF
19
VCC
5V
U1
C2
0.1uF
F1
RXE050
V+
3
5
C2+
6
C2-
P1
C5
0.1uF
V-
7
13
T1IN
T1OUT
17
GND
12
T2IN
T2OUT
8
PA3_CTS0
15
R1OUT
R1IN
16
PA4_RXD0
10
R2OUT
R2IN
9
R1
CONSOLE
GND
C1TXD0
CTS0
RXD0
1
6
2
7
3
8
4
9
5
D
+ C7
680
C8
PA3_CTS0
100/10
PA4_RXD0
2
0.1uF
R24
15K
DB9 Female
USER
D1
LED
1
3.3 OK
EN
SHDN
NC
NC
14
11
MAX3222
GND
18
1
20
GND
2
3
1
PWR JACK
VCC_33V
GND
R2
10K
C
U3A
14
C
14
74LVC04/SO
U3B
1
-DIS_232
2
7
74LVC04/SO
3
JP3
4
1
2
7
GND
U3C
74LVC04/SO
GND
5
R3
C9
VCC_33V
6
68
330nF
R4
7
B
14
U3D
PA5_TXD0
74LVC04/SO
9
-DIS_IRDA
10
IRDA_SD
8
PA4_RXD0
7
VCC
1
LEDA
2
TXD
4
SD
3
RXD
6
GND
7
JP4
5
1
2
0
14
R5
10K
U3E
74LVC04/SO
11
B
U4
2R7
T
14
DIS RS232
GND
ZHX1810
14
DIS IRDA
GND
U3F
VCC_33V
1
2
3
4
5
R6
10K
7
A
12
1
2
3
4
5
74LVC04/SO
13
TP1
GND
TP2
P2
VCC_33V
GND
1
3
5
DBG
INTERFACE
2
4
6
A
-Z_RST
DBG
DBG
Title
XP 4K MDS Processor Module. Schematic.
Header 3x2
Size
B
Date:
5
4
3
Document Number
Rev
96C0941-001
Wednesday, March 12, 2008
2
D
Sheet
3
of
3
1
Figure 4. Schematic, Z8 Encore! XP F042A Series MCU Development Board, Page 2 of 2
Schematics
UM016608-0608
Z8 Encore! XP® F042A Series Development Kit
User Manual
12
Customer Support
For answers to technical questions 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.
UM016608-0608
Customer Support
Z8 Encore! XP® F042A Series Development Kit
User Manual
13
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. eZ8 is a
trademark of Zilog, Inc. All other product or service names are the property of their
respective owners.
UM016608-0608