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 componen t in a li fe supp ort device o r syste m whose failure to p erform ca n be re asonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness.
This manual describes how to set up Zilog’s Z51F3220 Development Kit (Zilog part number Z51F3220000ZCOG) and use it to evaluate your Z8051-based designs and applications.
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 features 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-0312Introduction
Page 8
Z51F3220 Development Kit
User Manual
2
Kit Contents
Table 1 lists the contents of the Z51F3220 Development Kit.
ItemDescriptionQuantity
1Z51F3220 Development Board1
2Z8051 USB On-Chip Debugger (OCD)1
3Z8051 OCD Target Cable (10ckt)1
4USB Cable: A (male) to Mini-B2
5Z8051 OCD Software and Documentation CDROM1
6Z51F3220 Development Kit Insert (FL0139)1
Figure 1. The Z51F3220 Development Kit
Table 1. Z51F3220000ZCOGG Contents
UM024303-0312Introduction
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 lowing 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-0312Introduction
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-0312Introduction
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-0312Introduction
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
HeadersPinsFunctionalityNotes
J161–2, 5–6UART0 to USBDefault
J163–4, 7–8UART1 to USB
6
J21–2V
J23–4External V
is being measured by AN1Default
CC
, 2.5 V is used for ADCDefault
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-0312Introduction
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 proceed 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 32and 64-bit operating systems, ensure that the target side of the OCD will remain unconnected while you install these drivers.
If you are running Windows Vi sta, see Appendix A on page 31 to install your device drivers. If you are running Windows XP, see Appendix B on page 34.
UM024303-0312Install 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
UM024303-0312Install the Z8051 OCD Software and Documentation
Page 15
Z51F3220 Development Kit
User Manual
9
Figure 6. Browse For Driver Dialog, Windows Vista
UM024303-0312Install 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-0312Install 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 display the text string,
and can be disregarded.
UM024303-0312Install 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-0312Install the Z8051 OCD Software and Documentation
Page 19
Z51F3220 Development Kit
User Manual
13
Figure 10. Unsuccessful Installation, Scenario 2
UM024303-0312Install 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-0312Install 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
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-0312Install 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-0312Install 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
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:
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-0312Build 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-0312Build 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-0312Build 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 proceed to Step 9.
UM024303-0312Build 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-0312Build 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 windows 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-0312Build 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 communication software, such as Tera Term. Please refer to the documentation for the particular 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-0312Build 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 Manual (UM0240).
Turn off the power by removing the USB cable from the P1 connector on the Development
Board.
UM024303-0312Build 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 Development Kit, and their locations, listed in Table 3, will be accessible upon installation.
Table 3. Z51F3220 Development Kit Sample Projects
DescriptionLocation
Demosamples\Z51F3220\Demo
Led Blinksamples\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
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-0312OCD 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-0312OCD 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-0312OCD 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-0312OCD 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
On some installations, the Found New Hardware screen shown in Figure 29 may also display 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-0312OCD 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-0312OCD 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 facets 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-0312Customer Support
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.