background image

UM025801-1112

 

Z51F3221 Development Board Description

Z51F3221 Development Kit

User Manual

6

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 

39

 of this document.

The physical dimensions of the Board are 4.01" x 2.50" (101.8 mm x 63.5 mm).

Содержание Z51F3221

Страница 1: ...Copyright 2012 Zilog Inc All rights reserved www zilog com User Manual Z51F3221 Development Kit Z8051 Family of 8 Bit Microcontrollers UM025801 1112...

Страница 2: ...erform can be reason ably expected to cause the failure of the life support device or system or to affect its safety or effectiveness Document Disclaimer 2012 Zilog Inc All rights reserved Information...

Страница 3: ...F3221 Development Kit User Manual iii Revision History Each instance in the Revision History table below reflects a change to this document from its previous version Date Revision Level Description Pa...

Страница 4: ...Operating Systems 7 Z8051 OCD Driver Installation 8 FTDI USB to UART Driver Installation 15 Configure the Z8051 OCD and Z51F3221 Development Board 17 Build and Run the Z51F3221 Demo Project 20 Using t...

Страница 5: ...ure 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...

Страница 6: ...1F3221 Development Board 2 of 2 39 Figure 34 Found New Hardware Dialog Windows Vista 40 Figure 35 Install Device Driver Dialog Windows Vista 41 Figure 36 Couldn t Find Driver Dialog Windows Vista 42 F...

Страница 7: ...12 List of Tables Z51F3221 Development Kit User Manual vii List of Tables Table 1 Z51F3221000ZCOG Contents 2 Table 2 Z51F3221 Development Kit Sample Projects 36 Table 3 Z51F3221 Development Kit Docume...

Страница 8: ...d a UART to USB port The Board fea tures the Z51F3221 MCU in a 80 pin LQFP package plus a DBG connector to connect the Board to a host development PC using the Z8051 USB On Chip Debugger OCD cable For...

Страница 9: ...s of the Z51F3221 Development Kit Figure 1 The Z51F3221 Development Kit Table 1 Z51F3221000ZCOG Contents Item Description Quantity 1 Z51F3221 Development Board 1 2 Z8051 USB On Chip Debugger OCD 1 3 Z...

Страница 10: ...rating Systems The Z51F3221 Development Board and the Z8051 On Chip Debugger support the follow ing operating systems Microsoft Windows XP Microsoft Windows Vista 32 bit 64 bit Microsoft Windows 7 32...

Страница 11: ...ing 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 1 green LED to indicate USB power D5 1 red LED to indicate an overcurren...

Страница 12: ...U6 and D6 External source of reference voltage 2 5V for the on chip ADC VR1 MCU current consumption measurement resistor R5 with test points J6 and J7 Buzzer U4 8 digit 14 segment LCD panel Test poin...

Страница 13: ...6 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...

Страница 14: ...w 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 In a web brow...

Страница 15: ...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...

Страница 16: ...Z8051 Installation Z8051_ version_number device drivers OCD USB x64 4 When Windows prompts you whether to install or not install as shown in Figure 7 click Install this driver software anyway and wai...

Страница 17: ...Installation Z51F3221 Development Kit User Manual 10 5 When the installation is complete the screen shown in Figure 8 will appear Click Close to exit the OCD driver installation Figure 7 Can t Verify...

Страница 18: ...t Kit User Manual 11 On some installations the Found New Hardware screen shown in Figure 8 may also dis play the text string Zilog Z8051 USB OCD No Firmware This occurrence is normal and can be disreg...

Страница 19: ...UM025801 1112 Z8051 OCD Driver Installation Z51F3221 Development Kit User Manual 12 Figure 9 Unsuccessful Installation Scenario 1...

Страница 20: ...UM025801 1112 Z8051 OCD Driver Installation Z51F3221 Development Kit User Manual 13 Figure 10 Unsuccessful Installation Scenario 2...

Страница 21: ...nstallation Z51F3221 Development Kit User Manual 14 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...

Страница 22: ...ber 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 dpinst...

Страница 23: ...s 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 p...

Страница 24: ...t 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 2 Connect one end...

Страница 25: ...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 In the event that you later remove the LCD panel from the Board observe its orientation...

Страница 26: ...UM025801 1112 Configure the Z8051 OCD and Z51F3221 Z51F3221 Development Kit User Manual 19 Figure 15 An Example Setup...

Страница 27: ...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 Z51F3221 Demo de...

Страница 28: ...ree 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...

Страница 29: ...ect Z51F3221 Development Kit User Manual 22 6 In the Object File dialog browse to the hex file that you created in Step 2 and click Open 7 Click the Download button to open the Configuration dialog bo...

Страница 30: ...evelopment Kit User Manual 23 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 18...

Страница 31: ...e disregard the instructions stated in the Configuration Is Changed dialog and pro ceed to Step 9 9 Click OK to open the On Chip Debugger s main window A typical OCD display is shown in Figure 20 Figu...

Страница 32: ...ample 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 Z51F3221 Board will blink in sequence and the LCD...

Страница 33: ...project example that follows the Z51F3221 MCU related project is referenced as Demo This document refers to the Keil Vision IDE V4 53 0 6 PK51 Prof Developers Kit or later Refer to the Z8051 Tools Pro...

Страница 34: ...r Manual 27 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 f...

Страница 35: ...DE on a Demo Project Z51F3221 Development Kit User Manual 28 6 After selecting the target click the Debug tab and select the Zilog Z8051 Target Driver from the Use drop down menu as highlighted in Fig...

Страница 36: ...nt Kit User Manual 29 7 Click the Settings button located to the right of this drop down menu to configure your Debug and Flash options The Settings dialog is displayed with the Debug Options tab appe...

Страница 37: ...ers used in your project will run while the processor is stopped by the debugger The Reset at Main option will only work if you have a main file in your project oth erwise you should deselect this opt...

Страница 38: ...lect the Load Application at Startup checkbox as shown in Figure 28 so that the IDE will download the code upon con nection There is no need to select or enter an initialization file 11 Click OK to ex...

Страница 39: ...Kit User Manual 32 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 F...

Страница 40: ...icon Refer to Appendix D on page 46 for a discussion of Stand Alone Flash Programming Using the Keil Vision IDE HyperTerminal Configuration A communications program such as HyperTerminal can be used o...

Страница 41: ...lect the following settings 9600bps 8 data bits No parity 1 stop bit No flow control 3 Click the Call button to connect to the Z51F3221 Board Upon connection you should be able to see the Demo program...

Страница 42: ...l 35 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 b...

Страница 43: ...Documentation Chip_Documentation Z51F0811 Product Specification PS0296 Documentation Chip_Documentation Z51F3220 Product Specification PS0299 Documentation Chip_Documentation Z51F3221 Product Specific...

Страница 44: ...pment Kit User Manual 37 Z51F6412 Development Kit User Manual UM0259 Documentation Tools_Documentation Z8051 Tools Product User Guide PUG0033 Documentation Tools_Documentation Table 3 Z51F3221 Develop...

Страница 45: ...2 R11 470 C1 0 1uF R15 49 9K SW3 B3U 1000P 1 2 R10 470 R14 49 9K SW4 B3U 1000P 1 2 D1 LL4148 2 1 R9 470 R7 200 VR1 2 5V 1 2 3 Y2 32 768KHZ J2 1x18 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 R13 49 9...

Страница 46: ...J11 1 L1 FERRITE BEAD J10 1 P1 USB mini B VBUS 1 DM 2 DP 3 ID 4 GND 5 SH1 6 SH2 7 SH3 8 SH4 9 h1 10 h2 11 C9 1uF R16 470 R18 1 5K J9 1 D5 GREEN 2 1 R21 4 75K C10 1uF C13 0 01uF C12 0 1uF R20 20K 1 3...

Страница 47: ...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 devel...

Страница 48: ...pment Kit User Manual 41 4 When the Insert the Disc dialog appears as shown in Figure 35 select I don t have the disc Show me other options Click the Next button to display the dialog that follows whi...

Страница 49: ...M025801 1112 OCD Driver Installation on Windows Vista Systems Z51F3221 Development Kit User Manual 42 5 Return to page 8 and follow Steps 3 through 6 Figure 36 Couldn t Find Driver Dialog Windows Vist...

Страница 50: ...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 M...

Страница 51: ...aths and click the Next button leaving all other selections at their default settings On 32 bit machines use the following path Z8051 Installation Z8051_ version_number device drivers OCD USB x32 On 6...

Страница 52: ...1 Development Kit User Manual 45 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 promp...

Страница 53: ...the Project menu open the Options for Target your project and click the Utilities tab In the Use Target Driver for Flash Programming drop down menu within the Configure Flash Menu Command pane ensure...

Страница 54: ...Options dia log 4 Click OK to exit the Options For Target Demo dialog 5 From the Flash menu of the Keil IDE see Figure 41 select either of the following options Select Download to program Flash memor...

Страница 55: ...og 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...

Отзывы: