ZiLOG Z51F3220 User Manual

Page 1
Z8051™ Family of 8-Bit Microcontrollers
Z51F3220 Development Kit
User Manual
UM024304-0412
Copyright ©2012 Zilog®, Inc. All rights reserved.
www.zilog.com
Page 2
Z51F3220 Development Kit
Warning:
User Manual
DO NOT USE THIS PRODUCT IN LIFE SUPPORT SYSTEMS.
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 criti­cal component is any componen t in a li fe supp ort device o r syste m whose failure to p erform ca n be re ason­ably expected to cause the failure of the life support device or system or to affect its safety or effectiveness.
ii
Document Disclaimer
©2012 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.
Z8051 is a trademark or registered trademark of Zilog, Inc. All other product or service names are the property of their respective owners.
UM024304-0412
Page 3
Revision History
Each instance in the Revision History table below reflects a change to this document from its previous version.
Revision
Date
Apr 2012
Mar 2012
Mar 2012
Feb 2012
Level Description Page
04 Updated for improved usability. All
03 Added a G to end of part number to indicate RoHS compliance; added
Figure 21.
02 Corrected filepaths in the Build and Run the Z51F3220 Demo Project section. 20
01 Original issue. All
Z51F3220 Development Kit
User Manual
iii
25
UM024304-0412 Revision History
Page 4
Table of Contents
Revision History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .iii
List of Figures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
List of Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vi
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Kit Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Supported Operating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Z51F3220 Development Board Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Z51F3220 Development Board Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Install the Z8051 OCD Software and Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Z8051 OCD Driver Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
FTDI USB-to-UART Driver Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Z51F3220 Development Kit
User Manual
iv
Configure the Z8051 OCD and Z51F3220 Development Board . . . . . . . . . . . . . . . . . . . 17
Build and Run the Z51F3220 Demo Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
HyperTerminal Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Sample Projects and Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Schematic Diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Appendix A. OCD Driver Installation on Windows Vista Systems . . . . . . . . . . . . . . . . 31
Appendix B. OCD Driver Installation on Windows XP Systems . . . . . . . . . . . . . . . . . . 34
Customer Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
UM024304-0412 Table of Contents
Page 5
List of Figures
Figure 1. The Z51F3220 Development Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Figure 2. Z51F3220 Development Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Figure 3. Block Diagram of the Z51F3220 Development Board . . . . . . . . . . . . . . . . . 4
Figure 4. Z51F3220 Development Board: Highlighted Components . . . . . . . . . . . . . . 5
Figure 5. Install Device Driver Dialog, Windows 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 6. Browse For Driver Dialog, Windows Vista . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 7. Can’t Verify Publisher Dialog, Windows Vista . . . . . . . . . . . . . . . . . . . . . 10
Figure 8. Successfully Installed Dialog, Windows Vista . . . . . . . . . . . . . . . . . . . . . . 11
Z51F3220 Development Kit
User Manual
v
Figure 9. Unsuccessful Installation, Scenario 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 10. Unsuccessful Installation, Scenario 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 11. Device Manager Dialog, Windows 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 12. A Successful USB-to-UART Driver Installation . . . . . . . . . . . . . . . . . . . . . 16
Figure 13. Connecting the 10-Circuit Cable to the Board . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 14. Connecting the USB Mini-B Cable to the Board . . . . . . . . . . . . . . . . . . . . 18
Figure 15. An Example Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 16. Initial OCD Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 17. Object File Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 18. Configuration Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 19. Configuration Is Changed Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 20. A Typical On-Chip Debugger Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 21. A Typical On-Chip Debugger Window with Child Windows Open . . . . . . 25
Figure 22. Reset & Go Toolbar Icon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 23. Demo Program Menu in HyperTerminal . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 24. Z51F3220 Development Board, #1 of 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 25. Z51F3220 Development Board, #2 of 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 26. Found New Hardware Dialog, Windows Vista . . . . . . . . . . . . . . . . . . . . . . 31
Figure 27. Install Device Driver Dialog, Windows Vista . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 28. Couldn’t Find Driver Dialog, Windows Vista . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 29. The Found New Hardware Wizard Welcome Screen . . . . . . . . . . . . . . . . . 34
Figure 30. The Found New Hardware Wizard’s Browse Screen . . . . . . . . . . . . . . . . . 35
UM024303-0312 List of Figures
Page 6
List of Tables
Table 1. Z51F3220000ZCOGG Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Table 2. Default Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Table 3. Z51F3220 Development Kit Sample Projects . . . . . . . . . . . . . . . . . . . . . . . 28
Table 4. Z51F3220 Development Kit Documentation . . . . . . . . . . . . . . . . . . . . . . . 28
Z51F3220 Development Kit
User Manual
vi
UM024303-0312 List of Tables
Page 7
Introduction
This manual describes how to set up Zilog’s Z51F3220 Development Kit (Zilog part num­ber Z51F3220000ZCOG) and use it to evaluate your Z8051-based designs and applica­tions.
The Kit features a development board consisting of five LEDs, five pushbuttons, a buzzer, four 7-segment LCD digits, port pin headers and a UART-to-USB port. The Board fea­tures the Z51F3220 MCU in a 44-pin MQFP package, plus a DBG connector to connect the Board to a host development PC using the Z8051 USB On-Chip Debugger (OCD) cable. For more details about the Z51F3220 MCU, please refer to the Z51F3220 Product
Specification (PS0299).
This document guides you through the following tasks:
Z51F3220 Development Kit
User Manual
1
Install the Z8051 OCD Software and Documentation – see page 7
Configure the Z8051 OCD and Z51F3220 Development Board – see page 17
Build and Run the Z51F3220 Demo Project – see page 20
Figure 1 displays an image of the Z51F3220 Development Kit.
UM024303-0312 Introduction
Page 8
Z51F3220 Development Kit
User Manual
2
Kit Contents
Table 1 lists the contents of the Z51F3220 Development Kit.
Item Description Quantity
1 Z51F3220 Development Board 1 2 Z8051 USB On-Chip Debugger (OCD) 1 3 Z8051 OCD Target Cable (10ckt) 1 4 USB Cable: A (male) to Mini-B 2 5 Z8051 OCD Software and Documentation CDROM 1 6 Z51F3220 Development Kit Insert (FL0139) 1
Figure 1. The Z51F3220 Development Kit
Table 1. Z51F3220000ZCOGG Contents
UM024303-0312 Introduction
Page 9
Z51F3220 Development Kit
User Manual
Appendix 2 on page 3 displays an image of the Z51F3220 Development Board.
3
Figure 2. Z51F3220 Development Board
Supported Operating Systems
The Z51F3220 Development Board and the Z8051 On-Chip Debugger support the fol low­ing operating systems:
Microsoft Windows XP
Microsoft Windows Vista (32-bit/64-bit)
Microsoft Windows 7 (32-bit/64-bit)
Z51F3220 Development Board Block Diagram
Figure 3 displays a block diagram of the Z51F3220 Development Board.
UM024303-0312 Introduction
Page 10
Z51F3220 Development Kit
User Manual
4
Figure 3. Block Diagram of the Z51F3220 Development Board
Z51F3220 Development Board Description
The Z51F3220 Development Board consists of the following components:
Z51F3220: U2, 44-pin MQFP chip
3 LEDs: Green (D2), Red (D3) and Yellow (D4) connected to the GPIO pins of the
Z51F3220 MCU
1 green LED to indicate USB power: D5
1 red LED to indicate an overcurrent condition: D6
5 pushbuttons:
SW1: RESET
SW2–SW5: connected to the GPIO pins of the Z51F3220 MCU
USB connector: P1
OCD connector: J1
USB-to-UART interface: U7
UM024303-0312 Introduction
Page 11
Z51F3220 Development Kit
OCD Connector J1
R3 and R6 Voltage Divider
VR1 On-Chip ADC
Z51F3220 MCU
USB-to-UART IC
USB Power LED D5
Overcurrent LED D6
User Manual
USB interface providing power and communication to the Board through adjustable
LD0: U5
Power supply level that can be adjusted with potentiometer R22
Overcurrent protection circuit on the Board: U6 and D6
External source of reference voltage (2.5 V) for the on-chip ADC: VR1
MCU current consumption measurement resistor R7 with test points J4 and J5
Buzzer: U1
4-digit, 7-segment LCD panel
Test points, headers and prototype area with two footprints
5
Figure 4. Z51F3220 Development Board: Highlighted Components
UM024303-0312 Introduction
Page 12
Z51F3220 Development Kit
User Manual
By default, the Z51F3220 Development Board is set up with preinstalled shunts on J16 jumper pins 1–2 and 5–6 to allow the interfacing of the Z51F3220 MCU’s UART0 to the USB port. When the Board is connected to the USB port of the host PC, LED D5 will be ON. The default settings and functionalities of these shunts are listed in Table 2.
Table 2. Default Jumper Settings
Headers Pins Functionality Notes
J16 1–2, 5–6 UART0 to USB Default J16 3–4, 7–8 UART1 to USB
6
J2 1–2 V J2 3–4 External V
is being measured by AN1 Default
CC
, 2.5 V is used for ADC Default
REF
As indicated in the table, should you decide to use the the Z51F3220 MCU’s UART1 block as the interface for your own project (currently not supported in this release), move the J16 shunts to positions 3–4 and 7–8.
By default, Input 1 of the ADC is used to measure the supply voltage. This measurement point is taken from a middle point in the voltage divider circuit that includes resistors R3 and R6; the scaling is performed by software so that the LCD always displays the actual voltage. For a visual representation, see the schematic diagram in Figure 24
on page 29.
If a short on the Board should occur, or if its attached component(s) require more than 500 mA, the overcurrent protection functionality will trigger the red LED D6 to illuminate. In this instance, power to the Board will be terminated, and the USB port of the PC will be protected from shorting.
Schematic diagrams of the Z51F3220 Development Board are presented on pages 29 and
30 of this document.
The physical dimensions of the Board are 4.01" x 2.50" (101.8 mm x 63.5 mm).
UM024303-0312 Introduction
Page 13
Z51F3220 Development Kit
Note:
Note:
Note:
Install the Z8051 OCD Software and Document ation
The Z8051 On-Chip Debugger (OCD) interface is the interface by which your PC will communicate with the Z51F3220 MCU to download and execute code. In addition to the OCD, software such as development tools and sample applications will be installed.
If you have already installed the Z8051 software and documentation from the CD-ROM following the procedure on the paper insert in your kit (FL0139), skip this section and pro­ceed to the Z8051 OCD Driver Installation section, below.
User Manual
7
Observe the following procedure to install the Z8051 On-Chip Debugger software and documentation on your computer.
1. Ensure that the OCD interface hardware is not connected to your PC.
2. Insert the Z8051 Software and Documentation CD into your comp uter’s CD-ROM
drive. The setup program launches automatically . If the setup program does not launch
automatically, open Windows Explorer, browse to your CD-ROM drive, and double-
click the file labeled
In this filename, <version_number> refers to the version number of the OCD Software and Documentation release. For example, this version number may be 1.0.
3. Follow the on-screen instructions to complete the OCD software installation.
Z8051_<version_number>.exe.
Z8051 OCD Driver Installation
The driver programs for the Z8051 On-Chip Debugger are copied du ring the software and documentation installation. In the following procedure for PCs running t he W indows 7 32­and 64-bit operating systems, ensure that the target side of the OCD will remain uncon­nected while you install these drivers.
If you are running Windows Vi sta, see Appendix A on page 31 to install your device driv­ers. If you are running Windows XP, see Appendix B on page 34.
UM024303-0312 Install the Z8051 OCD Software and Documentation
Page 14
Z51F3220 Development Kit
User Manual
1. Connect the OCD hardware to the USB port of your PC by connecting the A (male)
end of one of the two USB A (male)-to-Mini-B cables with the host PC’s USB port.
Connect the Mini-B end to the OCD device.
2. After the PC detects the new hardware, it will display the Installing device driver soft-
ware dialog shown in Figure 5.
Figure 5. Install Device Driver Dialog, Windows 7
8
IMPORTANT NOTE: If you should encounter the scenarios presented in Figures 9 or 10, right-click
your mouse on and select
ZILOG OCD I/F (highlighted in Figure 9) or Unknown device (highlighted in Figure 10)
Update Driver Software...
3. Select
Browse my computer for driver software (advanced) to display the dialog
shown in Figure 6, which prompts you to key in or browse for the location of the
file. Depending on the type of computer you use (32- bit or 64-bit), use the
button to navigate to one of the following paths, then click the
Next button.
.inf
Browse
On 32-bit machines, use the following path:
<Z8051 Installation>\Z8051_<version_number>\device drivers\OCD USB\x32
On 64-bit machines, use the following path:
<Z8051 Installation>\Z8051_<version_number>\device drivers\OCD USB\x64
UM024303-0312 Install the Z8051 OCD Software and Documentation
Page 15
Z51F3220 Development Kit
User Manual
9
Figure 6. Browse For Driver Dialog, Windows Vista
UM024303-0312 Install the Z8051 OCD Software and Documentation
Page 16
Z51F3220 Development Kit
User Manual
4. When Windows prompts you whether to install or not install, as shown in Figure 7,
Install this driver software anyway and wait until the installation is completed
click
(Windows may prompt you more than once).
10
Figure 7. Can’t Verify Publisher Dialog, Windows Vista
UM024303-0312 Install the Z8051 OCD Software and Documentation
Page 17
Z51F3220 Development Kit
Note:
User Manual
5. When the installation is complete, the screen shown in Figure 8 will appear. Click
Close to exit the OCD driver installation.
11
Figure 8. Successfully Installed Dialog, Windows Vista
On some installations, the Found New Hardware screen shown in Figure 8 may also dis­play the text string, and can be disregarded.
UM024303-0312 Install the Z8051 OCD Software and Documentation
Zilog Z8051 USB OCD - No Firmware. This occurrence is normal
Page 18
Z51F3220 Development Kit
User Manual
12
Figure 9. Unsuccessful Installation, Scenario 1
UM024303-0312 Install the Z8051 OCD Software and Documentation
Page 19
Z51F3220 Development Kit
User Manual
13
Figure 10. Unsuccessful Installation, Scenario 2
UM024303-0312 Install the Z8051 OCD Software and Documentation
Page 20
Z51F3220 Development Kit
User Manual
6. If Zilog Z8051 USB OCD appears in the Device Manager (as highlighted in
Figure 11), the OCD driver software has been successfully installed.
14
Figure 11. Device Manager Dialog, Windows 7
UM024303-0312 Install the Z8051 OCD Software and Documentation
Page 21
FTDI USB-to-UART Driver Installation
Note:
An FTDI USB-to-UART driver is required to allow your PC to communicate th ro ugh its USB port to the on-chip UART of the Z51F3220 MCU. Observe the following procedu re to perform these connections.
1. Ensure that the USB cable is not plugged in to the Z51F3220 Development Board’s P1
connector.
Z51F3220 Development Kit
User Manual
15
2. Navigate to the following filepath and double-click the
CDM20802_setup.exe file to
begin the driver installation.
<Z8051 Installation>\Z8051_<version_number>\device drivers\FTDI Uart
3. The installation process will begin and you should observe output similar to the fol-
lowing messages on the screen of your PC:
32-bit OS detected
<installation path>\dpinstx86.exe
Installation driver
FTDI CDM driver installation process completed.
The above message may appear for a short time, but will then disappear from your window. This occurrence is normal.
4. When the installation is complete, plug in the Mini-B connector of the second USB
cable into the Board, and the larger A connector into the USB port of your PC. Refer
to Figure 15
on page 19 for guidance.
5. If the driver installation was successful, the Ports (COM & LPT) section of the Device
Manager will display USB Serial Port (COMx) or similar message, as highlighted in
Figure 12.
UM024303-0312 Install the Z8051 OCD Software and Documentation
Page 22
Z51F3220 Development Kit
Note:
User Manual
16
Figure 12. A Successful USB-to-UART Driver Installation
To launch the Device Manager on W ind ows 7 systems, launch the Start menu, enter device manager in the
Search programs and files field, and press the Enter key.
To open the Device manager on earlier Windows systems, navigate via the following path:
Start Control Panel System Hardware Device Manager Ports (COM& LPT)
UM024303-0312 Install the Z8051 OCD Software and Documentation
Page 23
Z51F3220 Development Kit
Caution:
User Manual
Configure the Z8051 OCD and Z51F3220 Development Board
Observe the following procedure to set up and configure the Z8051 On-Chip Debugger and the Z51F3220 Board.
Steps number 1 to 4 present the power-up sequence. Carefully follow these steps to avoid encountering an improper connection or disconnection.
1. Connect the Z8051 On-Chip Debugger (OCD) to the host PC’s USB port.
17
2. Connect one end of the 10-circuit cable to the Z8051 OCD.
3. Connect the other end of the 10-circuit cable connector to the Z51F3220 Board’s J1
connector. Pin 1 of the cable connector is indicated by a red stripe, as shown in
Figure 13.
Figure 13. Connecting the 10-Circuit Cable to the Board
UM024303-0312 Configure the Z8051 OCD and Z51F3220 Development
Page 24
Z51F3220 Development Kit
Note:
User Manual
4. Using the second USB-to-Mini-B cable, connect the standard USB end to the host
PC’s USB port.
5. Connect the other end of this second Mini-B cable to the Z51F3220 Board’s P1 con-
nector to apply power to the Board. Note that the green LED D5 is ON; see Figure 14.
18
Figure 14. Connecting the USB Mini-B Cable to the Board
In the event that you later remove the LCD panel from the Board, observe its orientation in Figure 14. The panel’s small plastic notch should be located in the position indicated by the red square.
Figure 15 shows an example of a completed hardware and software setup.
UM024303-0312 Configure the Z8051 OCD and Z51F3220 Development
Page 25
Z51F3220 Development Kit
User Manual
19
Figure 15. An Example Setup
UM024303-0312 Configure the Z8051 OCD and Z51F3220 Development
Page 26
Z51F3220 Development Kit
Note:
Note:
Build and Run the Z51F3220 Demo Project
Observe the following procedure to build and run the Z51F3220 demo project.
User Manual
20
1. Browse to the following location and double-click the
build the project:
<Z8051 Installation>\Z8051_<version_number>\samples\Z51F3220\Demo\build_sdcc.bat
Refer to the Z8051 Tools Product User Guide (PUG0033) for additional information about these project files and Small Device C Compiler (SDCC) development tools.
2. When the build is complete, the command window will prompt the user to press any
key to continue. Proceed by pressing any key on your keyboard; as a result, a hex file
for the demo will be created in the following path:
<Z8051 Installation>\Z8051_<version_number>\samples\Z51F3220\Demo\demo.hex
3. Set up the OCD and Development Board. If you have not already configured these
items, please return to the C
Board section on page 17.
4. Run the Z8051 OCD software. From the
Zilog Z8051 Software and Documentation <version_number>
OCD <version_number>
shown in Figure 16.
onfigure the Z8051 OCD and Z51F3220 Development
Start menu, navigate to All Programs
. Once launched, the program will display Connected, as
build_sdcc.bat batch file to
Zilog Z8051
If you encounter a message that says Disconnected, return to the Configure the Z8051
OCD and Z51F3220 Development Board section on page 17 to configure the proper
power-up sequence. If the problem persists, Zilog recommends that you review the Z8051
OCD Driver Installation and FTDI USB-to-UART Driver Installation sections.
UM024303-0312 Build and Run the Z51F3220 Demo Project
Page 27
Z51F3220 Development Kit
Note:
User Manual
21
Figure 16. Initial OCD Screen
For a free download of the latest version of the OCD software, visit the Zilog website and navigate via the Tools and Software menu to Software Downloads.
5. In the Debugger window, select
Load Hex from the File menu to display the Object
File dialog, which is shown in Figure 17.
UM024303-0312 Build and Run the Z51F3220 Demo Project
Page 28
Z51F3220 Development Kit
User Manual
22
Figure 17. Object File Dialog
6. In the Object File dialog, browse to the hex file that you created in Step 2 and click
Open.
7. Click the
UM024303-0312 Build and Run the Z51F3220 Demo Project
Download button to open the Configuration dialog box, shown in Figure 18.
Page 29
Z51F3220 Development Kit
Note:
User Manual
23
8. Select Enable/Reset input and click the Write button to open the Configuration Is
Changed dialog. A typical OCD display, if child windows are open, is shown in
Figure 19.
Please disregard the instructions stated in the Configuration Is Changed dialog, and pro­ceed to Step 9.
UM024303-0312 Build and Run the Z51F3220 Demo Project
Figure 18. Configuration Dialog
Page 30
Figure 19. Configuration Is Changed Dialog
Z51F3220 Development Kit
User Manual
24
9. Click OK to open the On-Chip Debugger’s main window. A typical OCD display is
shown in Figure 20; Figure 21 shows an OCD window with child windows open.
Figure 20. A Typical On-Chip Debugger Window
UM024303-0312 Build and Run the Z51F3220 Demo Project
Page 31
Z51F3220 Development Kit
Note:
User Manual
25
Figure 21. A Typical On-Chip Debugger Window with Child Windows Open
Use the View menu to open the child windows. For this demonstration, the example win­dows shown in Figure 21 do not need to be opened.
10. Click the
Reset & Go toolbar icon, shown in Figure 22. As a result, LEDs D2, D3 and
D4 on the Z51F3220 Board will blink in sequence and the LCD panel will display the
current voltage applied to the Board.
Figure 22. Reset & Go Toolbar Icon
UM024303-0312 Build and Run the Z51F3220 Demo Project
Page 32
Similar projects that you can use as references are listed in Table 3 on page 28.
Note:
Note:
Note:
HyperTerminal Configuration
A communications program such as HyperTerminal can be used on Windows XP systems to view the messages from the Z51F3220 Development Board. The following procedure examines how to configure HyperTerminal for the Z51F3220 demo project.
The HyperT ermi nal application is not availabl e in Windows V ista and Windows 7 systems. If you are using either of these operating systems, consider using/installing different com­munication software, such as Tera Term. Please refer to the documentation for the particu­lar emulation software you use to configure it for communication with the Z51F3220 Development Board.
Z51F3220 Development Kit
User Manual
26
1. In HyperT erminal, select the COM port assigned to the USB-to-UART interface cable
that is connected to the P1 connector on the Development Board.
This COM port can be determined from the Device Manager, as described in the the FTDI
USB-to-UART Driver Installation section on page 15.
2. Configure this port to reflect the following settings:
9600 bps
8 data bits
No parity
1 stop bit
No flow control
3. Click the
Call button to connect to the Z51F3220 Board. Upon connection, you should
be able to see the Demo program menu shown in Figure 23.
UM024303-0312 Build and Run the Z51F3220 Demo Project
Page 33
Z51F3220 Development Kit
Note:
User Manual
27
Figure 23. Demo Program Menu in HyperTerminal
At this point, you have successfully run the Z51F3220 demo project, but you are welcome to continue evaluating the demo in HyperTerminal. For additional information about how to create, edit, run and debug this project, please see the Z8051 Tools Product User Guide
(PUG0033) and/or the Z8051 On-Chip Debugger and In-System Programmer User Man­ual (UM0240).
Turn off the power by removing the USB cable from the P1 connector on the Development Board.
UM024303-0312 Build and Run the Z51F3220 Demo Project
Page 34
Z51F3220 Development Kit
Sample Projects and Documentation
A number of sample projects are included on the CD that ships with the Z51F3220 Devel­opment Kit, and their locations, listed in Table 3, will be accessible upon installation.
Table 3. Z51F3220 Development Kit Sample Projects
Description Location
Demo samples\Z51F3220\Demo Led Blink samples\Z51F3220\Led_Blink
samples\Z51F3220\Led_Blink_Asm
User Manual
28
A number of Z8051-related documents are included in the Z51F3220 Development Kit, and their locations, listed in T able 4, will be accessible upon installation. You can also find current versions of each of these documents on the Zilog website
Table 4. Z51F3220 Development Kit Documentation
Description Document Location
Z51F0410 Product Specification PS0295 Documentation\Chip_Documentation Z51F0811 Product Specification PS0296 Documentation\Chip_Documentation Z51F3220 Product Specification PS0299 Documentation\Chip_Documentation Z51F3221 Product Specification PS0300 Documentation\Chip_Documentation Z51F6412 Product Specification PS0303 Documentation\Chip_Documentation Z51F0410 Product Brief PB0237 Documentation\Chip_Documentation Z51F3220 Product Brief PB0238 Documentation\Chip_Documentation Z51F3220 Product Brief PB0239 Documentation\Chip_Documentation Z51F3221 Product Brief PB0240 Documentation\Chip_Documentation Z51F6412 Product Brief PB0241 Documentation\Chip_Documentation Z8051 OCD and ISP User Manual UM0240 Documentation\Tools_Documentation Z51F0811 Evaluation Kit User Manual UM0242 Documentation\Tools_Documentation
.
Z51F3220 Development Kit User Manual UM0243 Documentation\Tools_Documentation Z8051 Tools Product User Guide PUG0033 Documentation\Tools_Documentation
UM024303-0312 Sample Projects and Documentation
Page 35
UM024303-0312 Schematic Diagrams
Z51F3220 Development Kit
User Manual
29
Schematic Diagrams
Figures 24 and 25 display schematic diagrams of the Z51F3220 Development Board.
Figure 24. Z51F3220 Development Board, #1 of 2
Current measure
PROTOTYPE AREA (.1X.1 GRID) DO NOT POPULATE HEADERS
LCD
Pin 28Pin 30
Pin 1
Pin 31
Pin 32
Pin 33
Pin 29
VCCVCCVCC_T
DSCL
TxD0Pin 3 RxD0Pin 2
TxD1Pin 21
RxD1Pin 22
COM0Pin 6
COM1Pin 7
COM2Pin 8
SEG1Pi n 9
SEG2Pin 10
SEG3Pin 11
RESET
COM2 J20_8
COM0J21_10
COM1J21_1
SEG5Pin 13 SEG4Pin 12
SEG9Pin 17 SEG8Pin 16 SEG7Pin 15 SEG6Pin 14
SEG3 J20_6 SEG4 J20_7
SEG11J21_8
SEG9J21_6 SEG10J21_7
SEG7J21_4 SEG8J21_5
SEG6J21_3
SEG5J21_2
SEG10Pin 18
VCC_M
Pin 25
SEG12 Pin 24
SEG11 Pin 23
SS2 Pi n 29
SCK2 Pin 28
MISO2 Pin 27
MOSI2 Pin 26
VCC_M Pin 34
Pin 35
Pin 42
Pin 4
Pin 5
Pin 20 Pin 19
Pin 30 Pin 31 Pin 32 Pin 33
Pin 12 Pin 13
Pin 15
Pin 14
Pin 18
Pin 17
Pin 16
Pin 1 Pin 2 Pin 3 Pin 4 Pin 5 Pin 6 Pin 7
Pin 9
Pin 8
Pin 11Pin 11
Pin 10
Pin 19 Pin 20 Pin 21 Pin 22
Pin 23 Pin 24 Pin 25 Pin 26 Pin 27 Pin 28 Pin 29 Pin 30 Pin 31 Pin 32 Pin 33
J20_1 J20_2 J20_3
J20_9 J20_10
SEG1 J20_4 SEG2 J20_5
SEG12J21_9
J21_1 J21_2 J21_3 J21_4 J21_5 J21_6 J21_7 J21_8 J21_9 J21_10
J20_1 J20_2 J20_3 J20_4 J20_5 J20_6 J20_7 J20_8 J20_9 J20_10
Pin 42
VCC_TVCC_T
VCC_T
VCC_T
VCC_TVCC_T
VCC_T
VCC_T
VCC_T
RxD0
TxD0
TxD1
RxD1
SW1
B3U-1000P
SW1
B3U-1000P
1 2
J5J5
1
U3
spareU3spare
1
1
2
2
3
3
4
4
5
5
6
6
7
7
889
9
10
10
11
11
12
12
13
13
14
14
15
15
16
16
D1 LL4148D1LL4148
2 1
U4
spareU4spare
1
1
2
2
3
3
4
4
5
5
6
6
7
7
889
9
10
10
11
11
12
12
13
13
14
14
15
15
16
16
R3
49.9KR349.9K
R8
49.9KR849.9K
J21
1x10
J21
1x10
1 2 3 4 5 6 7 8 9
10
R13
470
R13
470
C5
18pFC518pF
R12
470
R12
470
C4
18pFC418pF
R11
470
R11
470
J17J17
1
C1
0.1uFC10.1uF
R17
49.9K
R17
49.9K
J2J2
1 2 3 4
J20
1x10
J20
1x10
1 2 3 4 5 6 7 8 9
10
D4
YELLD4YELL
2 1
R16
49.9K
R16
49.9K
D3
REDD3RED
2 1
J9J9
1 2 3 4 5 6 7 8 9 10 11
R5 10KR510K
D2
GREEND2GREEN
2 1
Y2
32.768KHZY232.768KHZ
R15
49.9K
R15
49.9K
J8J8
1
J19J19
1
R2
49.9KR249.9K
SW2
B3U-1000P
SW2
B3U-1000P
1 2
R9
0 ohmR90 ohm
-
+
VR1
LM285 - 2.5V
-
+
VR1
LM285 - 2.5V
1 2 3 4 5
6
7
8
C3 27pFC3 27pF
R10
0 ohm
R10
0 ohm
R14
49.9K
R14
49.9K
SW5
B3U-1000P
SW5
B3U-1000P
1 2
C2 27pFC2 27pF
J1
HDR/PIN 2x5J1HDR/PIN 2x5
1 2 3 4 5 6 7 8 9 10
SW3
B3U-1000P
SW3
B3U-1000P
1 2
R1
200 R1200
LCD1
VIM-404
LCD1
VIM-404
NC0
1
NC1
2
NC2
3
1B/1C/1P
4
2B/2C/2P
5
3B/3C/3P
6
4B/4C
7
COM3
8
NC3
9
NC4
10
COM1
11
4D/4G/4A
12
4E/4F
13
3D/3G/3A
14
3E/3F
15
2D/2G/2A
16
2E/2F
17
1D/1G/1A
18
1E/1F
19
COM2
20
SW4
B3U-1000P
SW4
B3U-1000P
1 2
J7J7
1 2 3 4 5 6 7 8 9 10 11
U1
CEM1206SU1CEM1206S
+
1
-
2
R4 10KR410K
Y1
12MHZY112MHZ
124
3
U2
Z51LF32FNX
124
3
U2
Z51LF32FNX
P55/RESETB
1
P40/VLC3/RXD0/SCL0/MISO0
2
P41/VLC2/TXD0/SDA0/MOSI0
3
P42/VLC1/SCK0
4
P43/VLC0/SS0
5
P37/COM0
6
P36/COM1
7
P35/COM2/SEG0
8
P34/COM3/SEG1
9
P33/COM4/SEG2
10
P32/COM5/SEG3
11
P31/COM6/SEG4
12
P30/COM7/SEG5
13
P27/SEG6
14
P26/SEG7
15
P25/SEG8
16
P24/SEG9
17
P23/SEG10
18
P22/SEG11/SS1
19
P21/SEG12/AN15/SCK1
20
P20/SEG13/AN14/TXD1/SDA1/MOSI1
21
P10/SEG14/AN13/RXD1/SCL1/MISO1
22
PWM2O/T2O/EINT12/AN12/SEG15/P11
23
PWM1O/T1O/EINT11/AN11/SEG16/P12
24
BUZO/EC1/AN10/SEG17/P13
25
MOSI2/AN9/SEG18/P14
26
MISO2/AN8/SEG19/P15
27
SCK2/EINT7/AN7/SEG20/P16
28
SS2/EINT6/AN6/SEG21/P17
29
PWM4CB/EINT5/AN5/SEG22/P07
30
PWM4CA/EINT4/AN4/SEG23/P06
31
PWM4BB/EINT3/AN3/SEG24/P05
32
PWM4BA/EINT2/AN2/SEG25/P04
33
PWM4AB/EINT1/AN1/SEG26/P03
34
PWM4AA/T4O/EINT0/AVREF/AN0/P02
35
DSCL/T3O/P01
36
DSDA/EC3/P00
37
VDD
38
VSS
39
XOUT/P50
40
XIN/P51
41
BLNK/EC0/EINT8/P52
42
PWM0O/T0O/SXIN/P53
43
EINT10/SXOUT/P54
44
J6J6
1
J18J18
1
J3J3
1 2 3 4 5 6 7 8 9 10 11
PROTO1
proto13x22
PROTO1
proto13x22
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
10
10
11
11
12
12
13
13
14
14
15
15
16
16
17
17
18
18
R7
1 ohmR71 ohm
J4J4
1
R6
49.9KR649.9K
Page 36
UM024303-0312 Schematic Diagrams
Z51F3220 Development Kit
User Manual
30
Figure 25. Z51F3220 Development Board, #2 of 2
PWR_EN-
SERIAL USB
1-2, 3-4 UART0 5-6, 7-8 UART 1
VCC_T
RxD1 TxD1
RxD0 TxD0
VCC_T
VCC_5V
VCC_5V
VCC_T
RxD0 TxD0 RxD1 TxD1
R19 20K
R19 20K
J15J15
1
R18
470
R18
470
U7
FT232RLU7FT232RL
USBDM
16
RTS
3
GND1
7
RI
6
NC1
8
DTR
2
VCCIO
4
3v3 OUT
17
NC
24
RESET
19
TXD
1
USBDP
15
CBUS3
14
OSCI
27
OSCO
28
GND218TEST
26
CBUS1
22
GND3
21
DCD
10
CTS
11
DSR
9
RXD
5
CBUS4
12
CBUS2
13
AGND
25
CBUS0
23
VCC
20
C14
0.1uF
C14
0.1uF
U5
MIC5318U5MIC5318
GND
2
EN
1
IN
3
ADJ
5
OUT
4
BYP
6
Center Pad
7
R20
1.5K
R20
1.5K
J13J13
1
R23
4.75K
R23
4.75K
R21 20K
R21 20K
C13
0.01uF
C13
0.01uF
J14J14
1
L1 FERRITE BEAD
L1 FERRITE BEAD
C12
0.01uF
C12
0.01uF
J11J11
1
C10
4.7uF
C10
4.7uF
R25
4.7K
R25
4.7K
J16
HDR/PIN 2x4
J16
HDR/PIN 2x4
1 2 3 4 5 6 7 8
U6
TPS2051BU6TPS2051B
OUT
1
GND
2
OC3EN
4
IN
5
P1
USB, mini BP1USB, mini B
VBUS
1
DM
2
DP
3
ID
4
GND
5
SH1
6
SH2
7
SH3
8
SH4
9
h1
10
h2
11
D6
REDD6RED
2 1
C9
1uFC91uF
J12J12
1
C6
4.7uFC64.7uF
C11
0.1uF
C11
0.1uF
R24
470
R24
470
R22 20K
R22 20K
1 3
2
J10J10
1
R26
100K
R26
100K
D5
GREEND5GREEN
21
C8
1uFC81uF
C7
0.1uFC70.1uF
Page 37
Z51F3220 Development Kit
User Manual
Appendix A. OCD Driver Installation on Windows Vista Systems
The driver programs for the Z8051 On-Chip Debugger are copied to the development PC during the software and documentation installation. In the following procedure for PCs running Windows Vista 32- and 64-bit operating systems, ensure that the target side of the OCD will remain unconnected while you install these drivers.
1. Connect the OCD hardware to the USB port of your PC by connecting the A (male)
end of one of the two USB A (male)-to-Mini-B cables with the development PC’s
USB port. Connect the Mini-B end to the OCD device.
2. After the PC detects the new hardware, it will display the Found New Hardware Wiz-
ard dialog box, shown in Figure 26. Click
ommended)
.
Locate and install driver software (rec-
31
Figure 26. Found New Hardware Dialog, Windows Vista
3. Depending on your development PC’s User Account Control settings, Windows may
ask for permission to continue the installation. Click
UM024303-0312 OCD Driver Installation on Windows Vista Systems
Continue.
Page 38
Z51F3220 Development Kit
User Manual
4. When the Insert the Disc dialog appears, as shown in Figure 27, select I don’t have
the disc. Show me other options.
Click the Next button to display the dialog that
follows, which is shown in Figure 28.
32
Figure 27. Install Device Driver Dialog, Windows Vista
UM024303-0312 OCD Driver Installation on Windows Vista Systems
Page 39
Z51F3220 Development Kit
User Manual
33
Figure 28. Couldn’t Find Driver Dialog, Windows Vista
5. Return to page 8 and follow Steps 3 through 6.
UM024303-0312 OCD Driver Installation on Windows Vista Systems
Page 40
Z51F3220 Development Kit
User Manual
Appendix B. OCD Driver Installation on Windows XP Systems
The driver programs for the Z8051 On-Chip Debugger are copied du ring the software and documentation installation. In the following procedure for Windows XP systems, ensure that the target side of the OCD will remain unconnected while you install these drivers.
1. Connect the OCD hardware to the USB port of your PC by connecting the A-Male end
of one of the two USB A (male)-to-Mini-B cables with the host PC’s USB port, and
connect the Mini-B end to the OCD device.
34
2. After the PC detects the new hardware, it will display the
ard
dialog box, shown in Figure 29. Select Install from a list or specific location
(Advanced)
; then click Next.
Found New Hardware Wiz-
Figure 29. The Found New Hardware Wizard Welcome Screen
UM024303-0312 OCD Driver Installation on Windows XP Systems
Page 41
Z51F3220 Development Kit
Note:
User Manual
3. The next dialog box, shown in Figure 30, prompts you to enter a path or navigate to
the directory in which the
you use (32- bit or 64-bit), use the
paths and click the
Next button, leaving all other selections at their default settings.
.inf file was installed. Depending on the type of computer
Browse button to navigate to one of the following
On 32-bit machines, use the following path:
<Z8051 Installation>\Z8051_<version_number>\device drivers\OCD USB\x32
On 64-bit machines, use the following path:
<Z8051 Installation>\Z8051_<version_number>\device drivers\OCD USB\x64
On some installations, the Found New Hardware screen shown in Figure 29 may also dis­play the text string,
Zilog Z8051 USB OCD - No Firmware. This occurrence is normal
and can be disregarded.
35
Figure 30. The Found New Hardware Wizard’s Browse Screen
UM024303-0312 OCD Driver Installation on Windows XP Systems
Page 42
Z51F3220 Development Kit
User Manual
4. When Windows prompts you whether to continue the installation or stop, click the
Continue Anyway button and wait until the installation is completed (Windows may
prompt you more than once). When the installation is complete, click
Finish.
36
UM024303-0312 OCD Driver Installation on Windows XP Systems
Page 43
Customer Support
To share comments, get your technical questions answered, or report issues you may be experiencing with our products, please visit Zilog’s Technical Support page at http://sup-
port.zilog.com.
To learn more about this product, find additional documentation, or to discover other fac­ets about Zilog product offerings, please visit the Zilog Knowledge Base ticipating in the Zilog Forum
This publication is subject to replacement by a later edition. To determine whether a later edition exists, please visit the Zilog website at http://www.zilog.com
.
Z51F3220 Development Kit
User Manual
37
or consider par-
.
UM024303-0312 Customer Support
Loading...