ZiLOG Z8051 Series User Manual

8-bit microcontrollers
Hide thumbs Also See for Z8051 Series:
Table of Contents

Advertisement

Quick Links

Z8051
Family of 8-Bit Microcontrollers
Z51F3221 Development Kit
User Manual
UM025801-1112
Copyright ©2012 Zilog ® , Inc. All rights reserved.
www.zilog.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z8051 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ZiLOG Z8051 Series

  • Page 1 ™ Z8051 Family of 8-Bit Microcontrollers Z51F3221 Development Kit User Manual UM025801-1112 Copyright ©2012 Zilog ® , Inc. All rights reserved. www.zilog.com...
  • 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.
  • Page 3: Revision History

    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...
  • Page 4: Table Of Contents

    Z51F3221 Development Kit User Manual Table of Contents Revision History .............iii List of Figures .
  • Page 5: List Of Figures

    Z51F3221 Development Kit User Manual List of Figures Figure 1. The Z51F3221 Development Kit ........2 Figure 2.
  • Page 6 Z51F3221 Development Kit User Manual Figure 29. Beginning a Debug Session ........32 Figure 30.
  • Page 7: List Of Tables

    Z51F3221 Development Kit User Manual List of Tables Table 1. Z51F3221000ZCOG Contents ........2 Table 2.
  • Page 8: Introduction

    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.
  • Page 9: Kit Contents

    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...
  • Page 10: Supported Operating Systems

    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 •...
  • Page 11: Z51F3221 Development Board Description

    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 •...
  • Page 12: Figure 4. Z51F3221 Development Board: Highlighted Components

    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.
  • Page 14: Install The Z8051 Ocd Software And Documentation

    (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.
  • Page 15: Z8051 Ocd Driver Installation

    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...
  • Page 16: Figure 6. Browse For Driver Dialog, Windows Vista

    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...
  • Page 17: Figure 7. Can't Verify Publisher Dialog, Windows Vista

    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...
  • Page 18: 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, . This occurrence is normal Zilog Z8051 USB OCD - No Firmware and can be disregarded. UM025801-1112 Z8051 OCD Driver Installation...
  • Page 19: Figure 9. Unsuccessful Installation, Scenario 1

    Z51F3221 Development Kit User Manual Figure 9. Unsuccessful Installation, Scenario 1 UM025801-1112 Z8051 OCD Driver Installation...
  • Page 20: Figure 10. Unsuccessful Installation, Scenario 2

    Z51F3221 Development Kit User Manual Figure 10. Unsuccessful Installation, Scenario 2 UM025801-1112 Z8051 OCD Driver Installation...
  • Page 21: Figure 11. Device Manager Dialog, Windows 7

    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...
  • Page 22: Ftdi Usb-To-Uart 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.
  • Page 23: Figure 12. A Successful Usb-To-Uart Driver Installation

    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:...
  • Page 24: Configure The Z8051 Ocd And Z51F3221 Development Board

    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.
  • Page 25: Figure 14. Connecting The Usb Mini-B Cable To The Board

    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.
  • Page 26: Figure 15. An Example Setup

    Z51F3221 Development Kit User Manual Figure 15. An Example Setup UM025801-1112 Configure the Z8051 OCD and Z51F3221...
  • Page 27: Build And Run The Z51F3221 Demo Project

    , 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.
  • Page 28: Figure 16. Initial Ocd Screen

    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...
  • Page 29: Figure 17. Object File Dialog

    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...
  • Page 30: Figure 18. Configuration Dialog

    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...
  • Page 31: Figure 20. A Typical On-Chip Debugger Window

    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.
  • Page 32: Figure 21. A Typical On-Chip Debugger Window With Child Windows Open

    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...
  • Page 33: Using The Keil Μvision Ide On A Demo Project

    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.
  • Page 34: Figure 23. Selecting The Demo Project File

    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.
  • Page 35: Figure 24. Selecting The Target

    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...
  • Page 36: Figure 25. Selecting The Target Driver

    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...
  • Page 37: Figure 26. Configuring The Debug Options

    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. •...
  • Page 38: Figure 27. Configuring The Flash Options

    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.
  • Page 39: Figure 29. Beginning A Debug Session

    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.
  • Page 40: Hyperterminal Configuration

    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.
  • Page 41: Figure 31. Demo Program Menu In Hyperterminal

    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.
  • Page 43: Sample Projects And Documentation

    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...
  • Page 45: Appendix A. Schematic Diagrams

    P26/AN6 1590 Buckeye Drive 1590 Buckeye Drive 1590 Buckeye Drive Milpitas, CA 95035 Milpitas, CA 95035 Milpitas, CA 95035 P27/AN7 408-513-1500 408-513-1500 408-513-1500 Website: www.zilog.com Website: www.zilog.com Website: www.zilog.com B3U-1000P B3U-1000P B3U-1000P B3U-1000P Title Title Title Z51F3221ATX Development Board Z51F3221ATX Development Board...
  • Page 46: Figure 33. Z51F3221 Development Board, #2 Of 2

    Z51F3221 Development Kit User Manual VCC_5V GREEN VCC_T FERRITE BEAD 4.7uF 0.1uF VCC_T 1.5K 4.7uF 0.1uF VBUS Center Pad TPS2051B MIC5318 VCC_T 0.01uF VCC_5V 0.01uF USB, mini B 4.75K VCCIO 4.7K USBDM USBDP PWR_EN- RESET 100K OSCI CBUS0 OSCO CBUS1 CBUS2 3v3 OUT CBUS3...
  • Page 47: Appendix B. Ocd Driver Installation On Windows Vista Systems

    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.
  • Page 48: Figure 35. Install Device Driver Dialog, Windows Vista

    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.
  • Page 49: Figure 36. Couldn't Find Driver Dialog, Windows Vista

    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...
  • Page 50: Appendix C. Ocd Driver Installation On Windows Xp 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.
  • Page 51: Figure 38. The Found New Hardware Wizard's Browse Screen

    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...
  • Page 53: Appendix D. Stand-Alone Flash Programming Using The Keil Μvision Ide

    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.
  • Page 54: Figure 40. Configuring 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:...
  • Page 55: Customer Support

    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-...

This manual is also suitable for:

Z51f3221

Table of Contents