QS0075 ZILOG | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 19

Technical content

Copyright ©2010 by Zilog®, Inc. All rights reserved. used as the starting point for your application development. Figure 1. Wireless Zdots® SBC Development Kit

Figure 4. Wireless Base Board Wireless Zdots® Single Board Computer Development Kit.

  • eZ80AcclaimPlus! Wireless Zdots SBC
  • eZ80AcclaimPlus! Wireless Zdots SBC Development Kit Base Board
  • RS-232 Adapter
  • USB Smart Cable
  • 5 V DC Power Supply
  • RS-232 Cable Wireless module Plug-in Headers ZDI DC Power Input Prototype Test Points
  1. A USB to Serial Adapter for host PC that do not have a serial COM
  • Zilog Developer Studio II (ZDS II)-eZ80 Acclaim!®
  • Zilog TCP/IP Stack (ZTP) ZDS - Object Code 1. For latest revision, visit www.zilog.com. 2. For procedure to downlo ad the ZTP software, see Downloading the ZTP Software on page 18. System Requirements Table 1 lists the system requirements for running ZDS II.

Table 1. ZDS II System Requirements

128 MB RAM 96 MB RAM

110 MB hard disk space 25 MB hard disk space (documentation not installed)

Wireless Zdots® Single Board Computer Development Kit QS007504-0410 Page 5 of 19 Installing the ZDSII Software and Kit Documentation Follow the steps below to install the ZDS II and documentation: 1. Insert the ZDS II CD into the CD-ROM drive. DemoShield launches automatically. If the DemoShield does not launch automatically, open the Windows Explorer, browse to your CD-ROM drive, and double-click launch.exe to launch the installer. 2. From the product installer list you can choose to install ZDS II alone, or both ZDS II and associated documentation. You can also copy the documentation directly from your CD-ROM drive to your hard disk using Windows Explorer or read the documen- tation directly from the CD-ROM itself. For customer service and technical support, Zilog® recommends you to create an account on http://support.zilog.com. Installing the USB Smart Cable Follow the steps below for installing the USB Smart Cable and associated driver software. Windows Vista-32 Follow the steps below to install the USB Smart Cable for Windows Vista-32. 1. Connect the USB Smart Cable to the Host PC. The Found New Hardware dialog box is displayed. 2. Select Locate and install the driver software (recommended). The Driver Soft- ware Installation window is displayed, and then the Found New Hardware-USB Smart Cable dialog box is displayed. 3. Select I don’t have the disc. Show me other options. 4. Select Browse my computer for driver software (advanced). 5. Browse to the following driver directory: <ZDS II Installation Directory>\\device drivers\\USB The Windows Security dialog box is displayed. 6. Select Install this driver software anyway. 7. When the software is installed, click Closed.

Wireless Zdots® Single Board Computer Development Kit QS007504-0410 Page 6 of 19 Windows XP Follow the steps below to install the USB Smart Cable for Windows XP: 1. Connect the Zilog USB devi ce to the Host PC. The Found New Hardware Wizard should activate automatically after connecting the Zilog USB device for the first time; select No, not at this time if asked to connect to Windows Update. 2. Select Install from a list or specific location (Advanced); then click Next. If the Windows Logo testing dialog appears, select Continue Anyway. 3. Select Search for the best driver in these locations and Include this location in search:. 4. Browse to the following driver directory and click Next. <ZDS installation>\\device drivers\\USB\\ 5. Click Next after the appropriate driver is found. 6. Click Finish to complete the installation. Windows 2000 Follow the steps below to install the USB Smart Cable for Windows 2000: 1. Connect the Zilog USB devi ce to the Host PC. The Found New Hardware Wizard should activate automatically after connecting the Zilog USB device for the first time. 2. Click Next in the Found New Hardware Wizard after it has been activated. 3. Select Search for a suitable driver for my device (Recommended) and click Next. 4. Select Specify a location and click Next. 5. Browse to the following driver directory and click OK. <ZDS installation>\\device drivers\\USB\\ 6. Click Next after the appropriate driver is found. 7. Click Finish to complete the installation. Note:

Figure 6. RS-232 Adapter

  1. Connect Zdots SBC to J1 of the Wireless base board. See Figure 2 on page 2 for actual

image. The SBC must be connected before applying the power. indicated by square solder around the pin.

  1. Connect the RS-232 adapter (99C1067-001G) to the WLAN Zdots SBC J3 header.

Pin 1 is indicated by the square solder on the solder side.

  1. Connect the USB Smart cable (or any Zilog De bug tool) to the 6-pins ZDI interface on

Cable to the Development Board on page 9.

  1. Connect the RS-232 cable to the RS-232 adap ter P1 connector and the other end to the

communication port (COM1) of the PC. This is connected on your PC as displayed in Figure 5 on page 7.

  1. Connect the power supply (5 V DC) cable to the Wireless Base board J4 connector.
  2. Set up an access point (AP) in the test area and power it ON. For information on how

to set up the wireless router, see Configuring the Router on page 15.

6 Pin TTL Level

3.3 V and Ground RS-232 DB9

OFF before connecting or disconnecting the USB Smart Cable. square solder on the DBG pin). Figure 7. Connecting the Six-Conductor Ribbon Cable to the USB Smart Cable The HyperTerminal program must be configured before starting the Demo application.

  1. In Windows operating system, launch the HyperTerminal application by navigating to

Start  All Programs  Accessories  Communications  HyperTerminal. The Connection Description dialog box is displayed.

  1. Enter the name for a new connection in the Connection Description dialog, and click

OK. The Connect To dialog box is displayed.

  1. In the Connect Using text field, select the port (COM1 or COM2) to which the serial

Wireless Zdots® Single Board Computer Development Kit QS007504-0410 Page 10 of 19 4. In the Port Settings tab of dialog box, enter the following values in the respective text fields: 5. Click OK to establish connection to the eZ80® development platform using the serial port. How to Execute WLAN Demo Application Running the RAM-Based WLAN Demo Project using the ZDS II Toolset Follow the steps below to execute the WLAN Demo project in the Zilog Developer Studio II (ZDS II) development environment: The following procedures reference the WLANDemo.zdsproj located in the CD-ROM. Insert Zilog TCP/IP Stack (ZTP) ZDS - Object Code Version X.Y.Z1 CD into the CD-ROM drive. InstallShield Wizard appears and starts installation. Follow the on-screen procedures. By default, it is installed at C:\\Program Files\\ZiLOG\\ZTP_X.Y.Z_Lib_ZDS. 1. Set up the hardware as displayed in Figure 5 on page 7. 2. To launch ZDS II, navigate to Start  All Programs  Zilog ZDS IIeZ80Acclaim!_<Version> _ZDS II-eZ80Acclaim!_<Version>. 3. Select Open Project from the File menu in ZDS II to open the sample ZTP Demo project located in the following path: For ZDSII - eZ80Acclaim! 5.1.0: C:\\Program Files\\ZiLOG\\ZDSII_eZ80Acclaim!_5.1.0\\ZTP\\ZTP2.3.1_Lib\\ZTP\\ SamplePrograms\\WLANDemo\\WLANDemo.zdsproj Bits per second 57600 bps Data bits 8 Parity None Stop Bits 1 Flow control None 1 Where X.Y.Z refers to the major, minor, and revision number of the release. Note:

Wireless Zdots® Single Board Computer Development Kit QS007504-0410 Page 11 of 19 <ZTP Installed Dir>\\ZTP_X.Y.Z_Lib_ZDS\\ZTP\\SamplePrograms\\WLAN- Demo\\WLANDemo.zdsproj> where <ZTP Installed Dir> is the path to the ZTP folder that you set when you installed the ZTP_X.Y.Z_Lib_ZDS. The default location of <ZTP Installed Dir> is C:\\Program Files\\ZiLOG. 4. Select Build  Set Active Configuration to open the Select Configuration dialog box, and select the RAM configuration. 5. From the Project menu in ZDS II, select Settings. The Project Settings dialog box appears. 6. In the Project Settings dialog box, select the Debugger tab. In the Debugger tab, ensure eZ80F91_WiFi_RAM option is checked and the correct debug tool is selected. In this Demo, USB Smart Cable is used as the Debug Tool. 7. Click OK to close the Project Settings dialog box. If the ZDS II prompts to Rebuild the Project, click YES to enable the configuration on Project  Settings. 8. After the successful build, ru n the Demo application using Debug  Go. This is observed on Hyper Terminal window: Initializing SPI Initializing SDIO card get SYSCLKR=c0000000 set SYSCLKR=c0000003 get SYSCLKR=c0000003 RTL8711_3rdCUT SYSCTRL : 68 ! EEPROM ID=8711 EEPROM MAC Address = 0-90-23-0-4e-ab Downloading FW# totlen=118300, img sz=118200, hdrsz=100...Done Firmware Init OK[ZTP ]> 9. Once the shell prompt appears, use the scan command on the Hyper Terminal window and press Enter to search the access points (AP) available in the range. Note:

Wireless Zdots® Single Board Computer Development Kit QS007504-0410 Page 12 of 19 Firmware Init OK[ZTP ]>scan SSID Scanning Number of Aps 2 SSID MAC Address Ch RSSI Secure 00:20:a6:50:f3:65 11 ffa2 WEP NETGEAR 00:18:f8:4a:62:48 11 ffa2 WEP [ZTP ]> Then use the wep [<SSID> <keyld=0-3> [keyDataHex]] shell command to specify the hexadecimal WEP key. To disp lay the current WEP key information just issue the ‘wep’ command with no parameters. Use the join<SSID> shell command to connect to a specified AP. [ZTP ]>wep NETGEAR 0 378E919303657C6DBCA9B29A5E Active WEP key for SSID NETGEAR is 0 37 8e 91 93 03 65 7c 6d bc a9 b2 9a 5e [ZTP ]>wep Active WEP key for SSID NETGEAR is 0 37 8e 91 93 03 65 7c 6d bc a9 b2 9a 5e [ZTP ]>join NETGEAR Sending Auth.... Joining BSS....SSID NETGEAR Querying DHCP Server...DHCP OK Initializing network stack... IF IP addr Def Gtway state type HTTPD ready TELNET ready[ZTP ]> For more details on shell commands, refer to Zilog TCP/IP Software Suite Programmer’ s Guide (RM0041). SSID and WEPKEY are provided by the wireless router. In this demo NET- GEAR and 378E919303657C6DBCA9B29A5E key are used. See Figure 9 and Figure 10 on page 17. 10. After successful connection to the BSS (A P) the network stack will be initialized and Zdots® SBC behaves as a complete wireless station. Note:

Wireless Zdots® Single Board Computer Development Kit QS007504-0410 Page 13 of 19 1. To support FLASH and COPY_TO_RAM configuration on Wireless Zdots SBC (due to new external SP ANSION Flash) ZDS II Flash driver configuration file must be modified. Replace the FlashDevice.xml the file given in the WLANDemo folder. In the Project  Settings  Debugger; eZ80F91_WiFi_Flash must be selected for FLASH and COPY_TO_RAM configurations. After replacing the FlashDevice.xml file close all ZDS II instances and reopen again. 2. By default the wlan_conf.c file contains WLAN parameters set to zero. In this case, you can configure these parameters through shell and connect to a BSS (AP). 3. If the WLAN parameters in wlan_conf.c are valid (that is, not initial- ized to NULL), the Demo connects to the specified BSS (AP) without the user interaction. 4. In FLASH and COPY_TO_RAM configurations the SSID and WEP key can be set through the configwlan shell command. For more details, refer to Zilog TCP/IP Software Suite Programmer’ s Guide (RM0041). 5. The Zdots® WLAN solution cannot be configured to work as an Access Point. Web Server Demonstration Follow the steps below to use the features of WLAN Demo: 1. When you run the WLAN Demo applica tion Zdots SBC accesses the BSS with the specified SSID and displays the network parameters such as IP address and a login prompt on the HyperTerminal. You can type help on the prompt to know other command line applications. 2. Use ping command from any PC in the same BSS/ESS as Zdots SBC running ZTP. Ping command can be used from Zdots SBC shell to other PC also. 3. Open an Internet Explorer from a PC/laptop where the router is connected and browse the eZ80® WLAN Zdots SBC with the IP specified on the Hyper Terminal. In this IP Address may vary. Please verify this value on IP addr on the hyperterminal. Notes: Note:

Figure 8. Website Browsing shell prompt through the wireless connection.

Wireless Zdots® Single Board Computer Development Kit QS007504-0410 Page 15 of 19 Configuring the Router The following steps below in configuring the router is set with SSID equal to ‘NETGEAR’ and the generated keys: These steps are based on LINKSYS WRT54G Router. 1. Disable the wireless connection on your laptop/PC. 2. If you are using Proxy server for your LA N settings, you can disable it by browsing to Start  Settings  Control Panel  Internet Options  Connections  LAN Settings. Uncheck the proxy server on Proxy Server section then select Automatically detect settings on Automatic configuration section. Then click OK on LAN Settings and Internet Properties. 3. Connect the cable on the Ethernet port of your laptop/PC to the router (AP) using one of its port (not the internet port). 4. Power ON your router. 6. Enter ‘admin’ in the Password field. Do not enter any User name. You can now see the Linksys page as displayed in Figure 9. 7. Select Wireless  Basic Wireless Settings. Change the Wireless Network Name (SSID): field to ‘NETGEAR’. See Figure 9. Note:

Figure 9. Basic Wireless Settings

  1. Click Save Settings. Then click Continue if settings are successful.
  2. Select Wireless  Wireless Security. Ensure that WEP is selected on the Security

Click Generate if Key 1 and other Keys do not have a value.

Figure 10. Wireless Security

  1. Click Save Settings. Then click Continue if settings are successful.
  2. You can now try to connect using the specified SSID and Key 1.
  3. You can now run your project. See: “How to Execute WLAN Demo Application”

Wireless Zdots® Single Board Computer Development Kit QS007504-0410 Page 18 of 19 Downloading the ZTP Software Follow the steps below to download the ZTP software from Zilog website www.zilog.com: 2. Login with registered username and passw ord. After a successful login you can now register your product. Click on Register New Products, and enter the Registration Key Number found on the Registration Card that is included on the kit. Then click on the Register button. 3. Locate and find eZ80F91WF01ZCOG and click on the corresponding Updates Available link. 4. Click on Zilog TCP/IP Stack (ZTP) ZDS - Object Code to download ZTP X.Y .Z object package; that is, ZTP_X.Y.Z_Lib_ZDS.exe file. ZTP_X.Y.Z_Lib_ZDS.exe and follow the on-screen instructions to complete the installation. By default ZTP_X.Y.Z_Lib_ZDS is installed in the following location: C:\\Program Files\\ZiLOG\\. References The documents associated with Wireless Zdots® SBC, ZTP, and RZK available on www.zilog.com are listed below:

  • eZ80AcclaimPlus!™ Wireless Zdots® Single Board Computer Product Specification (PS0280)
  • Wireless Zdots® Single Board Computer Development Kit User Manual (UM0224)
  • Zilog TCP/IP Software Suite Programmer's Guide (RM0041)
  • Zilog Full-Feature TCP/IP Software Suite Product Brief (PB0154)
  • Zilog TCP/IP Software Suite Quick Start Guide (QS0049)
  • Zilog TCP/IP Stack API Reference Manual (RM0040)
  • Zilog Real-Time Kernel Product Brief (PB0155)
  • Zilog Real-Time Kernel Quick Start Guide (QS0048)
  • Zilog Real-Time Kernel Reference Manual (RM0006)

Wireless Zdots® Single Board Computer Development Kit QS007504-0410 Page 19 of 19 DO NOT USE IN LIFE SUPPORT LIFE SUPPORT POLICY ZILOG'S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPO- NENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROV AL 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 lif e and whose failure to perform when properly used in accordance with instructions for us e provided in the labeling can be reasonably expected to result in a significant injury to the user. A critical component is any compo- nent in a life support device or system whose failure to perfo rm can be reasonably expected to cause the failure of the life suppor t device or system or to affect its safety or effectiveness. Document Disclaimer ©2010 by Zilog, Inc. All rights reserved. In formation in this publication concerning the devices, applications, or technology describe d is intended to suggest possible uses and may be superseded. ZILOG, INC. DOES NOT ASSUME LIABILITY FOR OR PRO- VIDE 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 TECH- NOLOGY DESCRIBED HEREIN OR OTHERWISE. The information contained within this document has been verified according to the general principles of electrical and mechanical engineering. eZ80, eZ80Acclaim!, eZ80Acclaim Plus!, and Zdots are trademarks or registered trade- marks of Zilog, Inc. All other product or service names are the property of their respective owners. Warning: