Download Z8 encore! 64K Series MCU Development Kit User Manual, UM0151
Transcript
Z8F64200100KIT Z8 Encore!® 64K Series MCU Development Kit User Manual Preliminary UM015103-1203 ZiLOG Worldwide Headquarters • 532 Race Street • San Jose, CA 95126-3432 Telephone: 408.558.8500 • Fax: 408.558.8300 • www.ZiLOG.com Z8 Encore!® 64K Series MCU Development Kit User Manual ii 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-3432 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. ©2003 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. 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. Disclaimer Preliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual iii Safeguards The following precautions 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). Disclaimer Preliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual iv Table of Contents Safeguards. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v List of Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 Kit Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 Software (on CD-ROM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 System/Software Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Supported Host System Configuration . . . . . . . . . . . . . . . . . . . . . . . .3 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5 Z8 Encore! 64K Series MCU Development Board . . . . . . . . . . . . . . . . . . .6 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 IrDA Transceiver with Endec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 Power and Communication Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . .9 External Interface Connectors JP1 and JP2 . . . . . . . . . . . . . . . . . . . . . . .9 Schematics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 Disclaimer Preliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual v List of Figures Figure 1. Figure 2. Z8 Encore! 64K Series MCU Development Kit Contents . .2 Z8 Encore!® 64K Series MCU Development Board . . . . . .6 List of Tables Table 1. Disclaimer Jumpers JP3 and JP4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 Preliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual 1 Introduction The Z8 Encore!® 64K Series MCU is part of the line of ZiLOG microcontroller products. The Z8 Encore! MCU Development Kit (Z8F64200100KIT) allows users to become familiar with the hardware and software tools available with this product. This kit consists of the 64KB version of the Z8 Encore! Development board that supports and presents the features of the Z8 Encore! 64K Series of microcontrollers. The software development tool kit allows users to begin writing application software and contains all supporting documents. This manual acquaints users with the Z8 Encore! 64K Series MCU Development Kit, and gives instructions on setting up and using the tools to start building designs and applications. Kit Contents The Z8 Encore!® 64K Series MCU Development Kit contains the following: Hardware Introduction • • Z8 Encore!® Z8F642 Development board • 5VDC power supply Smart cable for PC to Z8 Encore! Z8F642 Development board (DB9 to six-pin male) Preliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual 2 Packaging CD-ROM Containing Documentation Power Supply Smart Cable Development Board Figure 1. Z8 Encore! 64K Series MCU Development Kit Contents Software (on CD-ROM) • • • • ZDS II- Z8 Encore! IDE with ANSI C-Compiler Sample code Document browser Acrobat Reader install program Documentation • • Introduction Quick Start Guide Registration card Preliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual 3 • Z8 Encore!TM 64K Series MCU technical documentation (on CDROM) – Development Kit User Manual – ZDS II - IDE User Manual – eZ8 CPU User Manual – Product Specification – Product briefs – Application notes – Programmer’s Reference Sheet The sample code is installed with ZDS II and resides in the <installation directory>\samples in the user's disk drive. The documentation can be installed by the user 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 CDROM and can be installed from the DemoShield install screen. After installing the documentation on the user’s system Windows Explorer can be used to select any document to be viewed with your favorite PDF file viewer. System/Software Requirements IBM PC (or compatible computer) with the following minimum configurations: Supported Host System Configuration Introduction • Win98 Second Edition, WinNT 4.0 Service Pack 6, Win2000 Service Pack 3, WinXP Service Pack 1 • • • PentiumII/233MHz processor or higher up to Pentium IV, 2.8 GHz 96MB RAM or more 25MB hard disk space or more Preliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual 4 • • • Introduction Super VGA video adapter CD-ROM One or more RS-232 communication ports Preliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual 5 Installation Follow the directions in the Z8 Encore!® Development Kits Quick Start Guide (QS0028) to for software installation and setup of the Z8 Encore! 64K Series MCU Development kit. Installation Preliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual 6 Z8 Encore! 64K Series MCU Development Board Introduction The Z8 Encore! 64K Series MCU development board is a development and prototyping board for the Z8 Encore! 64K series microcontrollers. The board provides customers with a tool to evaluate features of Z8 Encore! 64K series MCUs, and to start developing an application before building the hardware. TEST U4 RESET Y1 LEDs JP1 P2 J2 P1 Console J1 JP2 Figure 14. Z8 Encore!® 64K Series MCU Development Board Z8 Encore! 64K Series MCU Development BoardPreliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual 7 Features • • • • • • • • • • • Z8 Encore!® MCU 3 LEDs RS-232 interface (P1) IrDA transceiver (U4) Two pushbuttons, RESET and TEST 5VDC power connector (J1) On-Chip Debugger interface (P2) Crystal Oscillator (Y1) Header for ADC input (J2) Prototyping area External interface connectors JP1 and JP2 (not populated) MCU The Z8 Encore!® Z8F642 MCU is member of a family of ZiLOG microcontroller products based upon the 8-bit eZ8 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! Z8F642 makes it suitable for a variety of applications including motor control, security systems, home appliances, personal electronic devices, and sensors. The evaluation board contains circuitry to support and present all the features of the Z8 Encore! Z8F642. The main features of the Z8 Encore! Z8F642 are: • eZ8 core CPU Z8 Encore! 64K Series MCU Development BoardPreliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual 8 • • • 64K of Flash memory with in-circuit programming capability • • • • • Two Full-duplex UART • • • • • • • • Watch-Dog Timer (WDT) with internal RC oscillator 4K of register RAM Either eight or twelve channels, 10-bit analog-to-digital converter (ADC) I2C interface (Master Mode only) Serial Peripheral Interface (SPI) Infrared Data Association (IrDA)-compliant infrared encoder/decoder Three or four 16-bit timers with capture, compare, and PWM capability Thirty one, forty six or sixty I/O pins Programmable priority interrupts On-Chip Debugger Voltage Brown-out Protection (VBO) Power-On Reset (POR) 2.7–3.6V operating voltage with 5V-tolerant inputs Operating temperature: 20° ± 10°C For further information on the Z8 Encore!TM family of devices, consult the product specification, PS0199 (Flash) or PS0204 (ROM), available for download from www.zilog.com. IrDA Transceiver with Endec The Z8 Encore! Z8F642 contains a fully-functional, high-performance UART with Infrared Encoder/Decoder (Endec). The Infrared Endec is integrated with an on-chip UART to allow easy communication between Z8 Encore! 64K Series MCU Development BoardPreliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual 9 the Z8 Encore! Z8F642 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 and devices affected of selected jumpers. Table 1. Jumpers JP3 and JP4 Jumper Status Device Affected JP3 OUT* IrDA interface Enable JP3 IN IrDA interface Disable X JP4** OUT* RS-232 Enable X JP4 IN RS-232 Disable Status Default Note: * These jumpers must not be OUT at the same time Note: ** If the module is plugged onto an eZ80 Development platform or eZ80 demonstration board the local RS-232 can be disabled by connecting header JP2 pin 50 to the corresponding GND on the mating connector External Interface Connectors JP1 and JP2 The external interface connectors are not populated when the board is shipped. The user can populate them with 0.1" space headers of choice. Note: Only Power and GND nets on connector JP1 are used on this module. Z8 Encore! 64K Series MCU Development BoardPreliminary UM015103-1203 Z8 Encore!® 64K Series MCU Development Kit User Manual 10 Schematics This section includes schematics for the the Z8 Encore! 64K Series MCU Development Board. Schematics Preliminary UM015103-1203 Z8 Encore! ® 64K Series MCU Development Kit User Manual 11 VCC_33V J1 2 3 1 F1 VCC_5V U1 + C2 C4 0.1uF C3 0.1uF 100/10 U2 D 3 1 VIN VOUT GND VCC_33V 2 C7 0.1uF VCC_33V R1 LT1086-3.3/TO220 PA5_TXD0 + C8 C9 PA5_TXD0 GND 680 C1 0.1uF 19 VCC_5V RXE110 2 C1+ 4 C1- 5 C2+ 6 C2- 13 T1IN T1OUT 17 12 T2IN T2OUT 8 15 R1OUT R1IN 16 10 R2OUT R2IN 9 VCC 5V PWR JACK V+ GND 3 CONSOLE P1 C5 0.1uF V- C6 0.1uF 1 6 2 7 3 8 4 9 5 TXD0 CTS0 RXD0 7 100/10 3.3 OK PA4_RXD0 1 1 20 GND EN SHDN MAX3222 NC NC DB9 Female USER 14 11 VCC_33V GND R2 10K VCC_33V R16 10K 2 R17 10K 7 JP4 1 2 74LVC04/SO_1 R18 10K U3C 14 1 5 6 R19 10K U3D 9 8 11 U3E 14 -DIS_232 U3A 14 14 C 14 10 13 U3F 12 GND 7 7 74LVC04/SO_1 7 74LVC04/SO_1 74LVC04/SO_1 7 LED PA4_RXD0 GND D1 PA3_CTS0 18 PA3_CTS0 2 0.1uF 74LVC04/SO_1 DIS RS232 R3 D2 2 R4 R5 D3 1 PA1_T0OUT R6 VCC_33V 2 68 GND U4 TEST R8 10K R9 D4 1 330nF R7 2R7 100K PA2 SW1 100 YELL 100 GREEN 3 -DIS_IRDA R10 4 VCC 1 LEDA PA5_TXD0 2 TXD IRDA_SD 4 SD PA4_RXD0 3 RXD 6 GND U3B 2 5 7 JP3 1 2 PC0_T1IN 74LVC04/SO_1 ZHX1810 0 GND 100 T B C10 VCC_33V 100 RED 14 1 PA0_T0IN DIS IRDA GND R11 10K 1 2 3 4 5 A 1 2 3 4 5 VCC_33V P2 VCC_33V TP1 GND TP2 GND 1 3 5 DBG INTERFACE 2 4 6 DBG DBG Title Encore! F642. Evaluation Module. Schematic. Header 3x2 Size B Document Number Rev 96C0918-001 A Schematic, Z8 Encore!® 64K Series MCU Development Board, Page 1 of 2 Appendix Preliminary UM015103-1203 Z8 Encore! ® 64K Series MCU Development Kit User Manual 12 connector 2 PA1_T0OUT IO AVDD 3 JP2 C12 C13 0.1uF AGND PA0_T0IN PA0_T0IN PD2 PC2_SS PF6 -RESET SW2 1 C15 0.001uF 0.1uF PF7 PF6 C19 0.001uF Header 1 JP6 C16 C20 0.1uF PF5 1 Header 1 JP7 1 VCC_33V PF5 PF4 PF3 PE4 PE3 GND PE2 PE1 PE0 GND PF2 PF1 PF0 VCC_33V PD1_T3OUT PD0_T3IN XOUT XIN 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 PA0/T0IN PD2 PC2/SS PF6 RESET VDD PF5 PF4 PF3 PE4 PE3 GND PE2 PE1 PE0 GND PF2 PF1 PF0 VDD PD1/T3OUT PD0/T3IN XOUT XIN R12 220 PF4 PF3 18.432MHz 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 Header 1 JP10 1 DBG PA5_TXD0 PA3_CTS0 PA4_RXD0 R13 100K C23 18pF PF2 PG1 PG2 C17 0.1uF C18 0.001uF PG3 PG4 C21 0.1uF C22 0.001uF PG5 18pF C24 PG6 PG7 PF1 PH1_ANA9 PB0_ANA0 PB1_ANA1 PB4_ANA4 C27 0.001uF C28 0.001uF C29 0.001uF PA6_SCL PA7_SDA Header 1 JP16 1 -RESET VCC_33V Header 1 JP17 VCC_33V 1 PB5_ANA5 PB6_ANA6 PB7_ANA7 PB3_ANA3 PB2_ANA2 PH2_ANA10 PH3_ANA11 C30 0.001uF C31 0.001uF C32 0.001uF C33 0.001uF C34 0.001uF C35 0.001uF C36 0.001uF C37 0.001uF C25 22uF 26 24 22 20 18 16 14 12 10 8 6 4 2 NC NC NC PE6 PE4 PE2 PE0 GND PC5_MISO PC6_T2IN PC2_SS PA0_T0IN PA1_T0OUT PA2 PD6_CTS1 PD4_RXD1 PD0_T3IN GND PD2 PG0 PA5_TXD0 NC NC NC NC GND -DIS_232 -DIS_IRDA -DIS_IrDA NC GND NC NC If Module is plugged onto the Dev Platform the local RS232 interface is disabled by pin 50 of JP2 Header 1 JP19 1 Header 1 JP20 JP1 1 Header 1 JP21 1 C38 0.01uF J2 25 23 21 19 17 15 13 11 9 7 5 3 1 NC NC 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 HEADER 30x2/SM 1 AGND PH0_ANA8 PH1_ANA9 PB0_ANA0 PB1_ANA1 PB4_ANA4 PB5_ANA5 PB6_ANA6 PB7_ANA7 PB3_ANA3 PB2_ANA2 PH2_ANA10 PH3_ANA11 VREF NC 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 1 JP18 connector 1 for reference only + C26 0.001uF GND 1 Header 1 Header 1 PH0_ANA8 JP15 Z8F642 VREF 1 PA7_SDA PD6_CTS1 PC3_SCK PD7_RCOUT PG0 GND PG1 PG2 PE5 PE6 PE7 VCC_33V PG3 PG4 PG5 PG6 VCC_33V PG7 PC7_T2OUT PC6_T2IN DBG PC1_T1OUT PC0_T1IN GND GND AVDD PH0_ANA8 PH1_ANA9 PB0_ANA0 PB1_ANA1 PB4_ANA4 PB5_ANA5 PB6_ANA6 PB7_ANA7 PB3_ANA3 PB2_ANA2 PH2_ANA10 PH3_ANA11 VREF AGND Header 1 JP9 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 PC0_T1IN Y1 Header 1 JP8 PA7/SDA PD6/CTS1 PC3/SCK PD7/RCOUT PG0 GND PG1 PG2 PE5 PE6 PE7 VDD PG3 PG4 PG5 PG6 VDD PG7 PC7/T2OUT PC6/T2IN DBG PC1/T1OUT PC0/T1IN GND GND AVDD PH0/ALG8 PH1/ALG9 PB0/ALG0 PB1/ALG1 PB4/ALG4 PB5/ALG5 PB6/ALG6 PB7/ALG7 PB3/ALG3 PB2/ALG2 PH2/ALG10 PH3/ALG11 VREF AGND 1 Header 1 JP14 DBG PA5_TXD0 PA3_CTS0 PA4_RXD0 PA1/T0OUT PA2 PA3/CTS0 GND VDD PF7 PC5/MISO PD3 PD4/RXD1 PD5/TXD1 PC4/MOSI VDD GND PA4/RXD0 PA5/TXD0 PA6/SCL GND RESET JP13 0.1uF EMI Filter U6 GND PE7 PE5 PE3 PE1 VCC_33V PC4_MOSI PC7_T2OUT PC3_SCK PC0_T1IN GND PC1_T1OUT PD1_T3OUT PD3 PD5_TXD1 PD7_RCOUT PF0 PA3_CTS0 PA4_RXD0 C14 0.001uF 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 IO 2 VCC_33V GND VCC_33V 1 C11 0.001uF PA1_T0OUT PA2 PA3_CTS0 GND VCC_33V PF7 PC5_MISO PD3 PD4_RXD1 PD5_TXD1 PC4_MOSI VCC_33V GND PA4_RXD0 PA5_TXD0 PA6_SCL L1 1 3 -TRSTN 5 -F91_WE 7 GND 9 A6 11 A10 13 GND 15 A8 17 A13 19 A15 21 A18 23 A19 25 A2 27 A11 29 A4 31 A5 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 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 VCC_33V 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 HEADER 30x2/SM Title Encore! F642. Evaluation Module. Schematic. Size B Date: Document Number Rev 96C0918-001 Friday, June 06, 2003 A Sheet 2 of 2 Schematic, Z8 Encore!® 64K Series MCU Development Board Page 2 of 2 Appendix Preliminary UM015103-1203