Page 2
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.
Z51F3221 Development Kit User Manual Revision History Each instance in the Revision History table below reflects a change to this document from its previous version. Revision Date Level Description Page Original issue. 2012 UM025801-1112 Revision History...
Z51F3221 Development Kit User Manual Introduction This manual describes how to set up Zilog’s Z51F3221 Development Kit (Zilog part num- ber Z51F3221000ZCOG) 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, eight 14-segment LCD digits, port pin headers and a UART-to-USB port.
Z51F3221 Development Kit User Manual Figure 1. The Z51F3221 Development Kit Kit Contents Table 1 lists the contents of the Z51F3221 Development Kit. Table 1. Z51F3221000ZCOG Contents Item Description Quantity Z51F3221 Development Board Z8051 USB On-Chip Debugger (OCD) Z8051 OCD Target Cable (10ckt) USB Cable: A (male) to Mini-B Z51F3221 Development Kit Insert (FL0149) UM025801-1112...
Z51F3221 Development Kit User Manual Figure 2 shows an image of the Z51F3221 Development Board. Figure 2. Z51F3221 Development Board Supported Operating Systems The Z51F3221 Development Board and the Z8051 On-Chip Debugger support the follow- ing operating systems: • Microsoft Windows XP •...
Z51F3221 Development Kit User Manual Figure 3. Block Diagram of the Z51F3221 Development Board Z51F3221 Development Board Description The Z51F3221 Development Board consists of the following components: • Z51F3221: U1, 80-pin LQFP chip • 3 LEDs: Green (D2), Red (D3) and Yellow (D4) connected to the GPIO pins of the Z51F3221 MCU •...
Z51F3221 Development Kit User Manual • USB-to-UART interface: U7 • USB interface providing power and communication to the Board • Power supply level that can be adjusted with potentiometer R20 • Overcurrent protection circuit on the Board: U6 and D6 •...
Page 13
Z51F3221 Development Kit User Manual 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 Z51F3221 Development Board are presented on pages 38 and of this document.
(32-bit/64-bit), Windows Vista (32-bit/64-bit) and Windows XP. Note: If you have already downloaded the Z8051 software and documentation from the Zilog Store and installed it following the procedure on the paper insert in your kit (FL0149), skip this section and proceed to the Z8051 OCD Driver Installation section, below.
IMPORTANT NOTE: If you should encounter the scenarios presented in Figures 9 or 10, right-click your mouse on (highlighted in Figure 9) or (highlighted in Figure 10) ZILOG OCD I/F Unknown device and select Update Driver Software... 3. Select to display the dialog...
Z51F3221 Development Kit User Manual – On 64-bit machines, use the following path: <Z8051 Installation>\Z8051_<version_number>\device drivers\OCD USB\x64 Figure 6. Browse For Driver Dialog, Windows Vista 4. When Windows prompts you whether to install or not install, as shown in Figure 7, click and wait until the installation is completed Install this driver software anyway...
Z51F3221 Development Kit User Manual Figure 7. Can’t Verify Publisher Dialog, Windows Vista 5. When the installation is complete, the screen shown in Figure 8 will appear. Click to exit the OCD driver installation. Close UM025801-1112 Z8051 OCD Driver Installation...
On some installations, the Found New Hardware screen shown in Figure 8 may also dis- play the text string, . This occurrence is normal Zilog Z8051 USB OCD - No Firmware and can be disregarded. UM025801-1112 Z8051 OCD Driver Installation...
Z51F3221 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. Figure 11. Device Manager Dialog, Windows 7 UM025801-1112 Z8051 OCD Driver Installation...
Z51F3221 Development Kit User Manual FTDI USB-to-UART Driver Installation An FTDI USB-to-UART driver is required to allow your PC to communicate through its USB port to the on-chip UART of the Z51F3221 MCU. Observe the following procedure to perform these connections. 1.
Z51F3221 Development Kit User Manual Figure 12. A Successful USB-to-UART Driver Installation Note: To launch the Device Manager on Windows 7 systems, launch the Start menu, enter device manager in the field, and press the Enter key. Search programs and files To open the Device manager on earlier Windows systems, navigate via the following path:...
Z51F3221 Development Kit User Manual Configure the Z8051 OCD and Z51F3221 Development Board Observe the following procedure to set up and configure the Z8051 On-Chip Debugger and the Z51F3221 Board. Caution: Steps number 1 to 4 present the power-up sequence. Carefully follow these steps to avoid encountering an improper connection or disconnection.
Z51F3221 Development Kit 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 Z51F3221 Board’s P1 con- nector to apply power to the Board. Note that the green LED D5 is ON; see Figure 14. Figure 14.
, return to the Configure the Z8051 Disconnected OCD and Z51F3221 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 FTDI USB-to-UART Driver Installation sections.
Z51F3221 Development Kit User Manual Figure 16. Initial OCD Screen Note: For a free download of the latest version of the OCD software, visit the Zilog website navigate via the Tools and Software menu to Software Downloads 5. In the Debugger window, select...
Z51F3221 Development Kit User Manual 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 button to open the Configuration dialog box, shown in Figure 18. Download UM025801-1112 Build and Run the Z51F3221 Demo Project...
Z51F3221 Development Kit User Manual Figure 18. Configuration Dialog 8. Click the Write button. If you have modified any of the settings in the Configuration dialog, the Configuration Is Changed dialog shown in Figure 19 will appear. Figure 19. Configuration Is Changed Dialog UM025801-1112 Build and Run the Z51F3221 Demo Project...
Z51F3221 Development Kit User Manual Note: Please disregard the instructions stated in the Configuration Is Changed dialog, and pro- ceed to Step 9. Click 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.
Figure 22. As a result, LEDs D2, D3 and Reset & Go D4 on the Z51F3221 Board will blink in sequence, and the LCD panel will display Welcome to Zilog’s Z51F3221 Development Kit Figure 22. Reset & Go Toolbar Icon UM025801-1112...
Refer to the Z8051 Tools Product User Guide (PUG0033) for additional information about these project files and debugging with the Keil µVision IDE and Zilog On-Chip Debugger. Debugger Configuration Observe the following procedure to build and run a Z51F3221 demonstration project using the Keil µVision IDE.
Z51F3221 Development Kit User Manual Figure 23. Selecting the Demo Project File 4. Return to the Project menu and select Options for Target ‘Demo’ 5. In the Options for Target ‘Demo’ dialog that appears, click the Device tab and ensure that your target is properly selected for your project, as illustrated in Figure 24.
Z51F3221 Development Kit User Manual Figure 24. Selecting the Target 6. After selecting the target, click the tab and select the Debug Zilog Z8051 Target Driver from the Use: drop-down menu, as highlighted in Figure 25. UM025801-1112 Using the Keil µVision IDE on a Demo Project...
Z51F3221 Development Kit User Manual Figure 25. Selecting the Target Driver 7. Click the button, located to the right of this drop-down menu, to configure Settings your Debug and Flash options. The Settings dialog is displayed with the Debug Options tab appearing by default, as shown in Figure 26. UM025801-1112 Using the Keil µVision IDE on a Demo Project...
Z51F3221 Development Kit User Manual Figure 26. Configuring the Debug Options Notes: When configuring the appropriate Debug option, be aware of the following stipulations: • Checking the Peripheral continues running option means that the timers used in your project will run while the processor is stopped by the debugger. •...
Z51F3221 Development Kit User Manual Figure 27. Configuring the Flash Options 9. Click to exit the Settings dialog. 10. From the Options for Target ‘Demo’ dialog, select the Load Application at Startup checkbox, as shown in Figure 28, so that the IDE will download the code upon con- nection.
Z51F3221 Development Kit User Manual 13. Start your debugging session by clicking the Start/Stop Debug Session icon, as indi- cated in Figure 29. A default Windows configuration of the debug session is shown in Figure 30. Figure 29. Beginning a Debug Session Figure 30.
Z51F3221 Development Kit User Manual Note: The following buttons in the Keil µVision IDE are not supported by the Zilog OCD driver: To learn more about the full functionality of the Keil µVision IDE, please refer to the Keil µVision4 IDE documentation.
Z51F3221 Development Kit User Manual Note: 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 –...
Page 42
Z51F3221 Development Kit User Manual 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- (UM0240). Note: Turn off the power by removing the USB cable from the P1 connector on the Development Board.
A number of Z8051-related documents are included in the Z51F3221 Development Kit, and their locations, listed in Table 3, will be accessible upon installation. You can also find current versions of each of these documents on the Zilog website. Table 3. Z51F3221 Development Kit Documentation...
Page 44
Z51F3221 Development Kit User Manual Table 3. Z51F3221 Development Kit Documentation (Continued) Description Document Location Z51F6412 Development Kit User Manual UM0259 Documentation\Tools_Documentation Z8051 Tools Product User Guide PUG0033 Documentation\Tools_Documentation UM025801-1112 Sample Projects and Documentation...
Z51F3221 Development Kit User Manual Appendix B. 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.
Z51F3221 Development Kit User Manual 4. When the Insert the Disc dialog appears, as shown in Figure 35, select I don’t have Click the button to display the dialog that the disc. Show me other options. Next follows, which is shown in Figure 36. Figure 35.
Z51F3221 Development Kit User Manual Figure 36. Couldn’t Find Driver Dialog, Windows Vista 5. Return to page 8 and follow Steps 3 through UM025801-1112 OCD Driver Installation on Windows Vista Systems...
Z51F3221 Development Kit User Manual Appendix C. OCD Driver Installation on Windows XP Systems The driver programs for the Z8051 On-Chip Debugger are copied during 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.
On some installations, the Found New Hardware screen shown in Figure 37 may also dis- play the text string, . This occurrence is normal Zilog Z8051 USB OCD - No Firmware and can be disregarded. Figure 38. The Found New Hardware Wizard’s Browse Screen...
Page 52
Z51F3221 Development Kit User Manual 4. When Windows prompts you whether to continue the installation or stop, click the button and wait until the installation is completed (Windows may Continue Anyway prompt you more than once). When the installation is complete, click Finish UM025801-1112 OCD Driver Installation on Windows XP Systems...
Utilities Use Target Driver for Flash Programming within the Configure Flash Menu Command pane, ensure that Zilog Z8051 Target is selected, as indicated in Figure 39. Driver Figure 39. Selecting A Target Driver For Flash Programming 2. Click the button to change any additional Flash options.
Z51F3221 Development Kit User Manual Figure 40. Configuring Additional Flash Options 3. After you have selected your Flash options, click to exit the dia- Flash Options log. 4. Click to exit the Options For Target ‘Demo’ dialog. 5. From the menu of the Keil IDE (see Figure 41), select either of the following Flash options:...
User Manual 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-...
Need help?
Do you have a question about the Z8051 Series and is the answer not in the manual?
Questions and answers