Hide thumbs Also See for USB-EK01:

Advertisement

Quick Links

USB-EK01
User Manual
Version 1.0
ⓒ 2005 DAQ SYSTEM Co., Ltd. All rights reserved.
Microsoft® is a registered trademark; Windows®, Windows NT®, Windows XP®, Windows 7®, Windows 8®, Windows 10®
All other trademarks or intellectual property mentioned herein belongs to their respective owners.
Information furnished by DAQ SYSTEM is believed to be accurate and reliable, However, no responsibility is assumed by DAQ SYSTEM for its use, nor
for any infringements of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under
any patent or copyrights of DAQ SYSTEM.
The information in this document is subject to change without notice and no part of this document may be copied or reproduced without the prior
written consent.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the USB-EK01 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for DAQ system USB-EK01

  • Page 1 All other trademarks or intellectual property mentioned herein belongs to their respective owners. Information furnished by DAQ SYSTEM is believed to be accurate and reliable, However, no responsibility is assumed by DAQ SYSTEM for its use, nor for any infringements of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or copyrights of DAQ SYSTEM.
  • Page 2: Table Of Contents

    USB-EK01 User‟s Manual Contents 1. Introduction --------------------------------------------------------------------- USB-EK01 Features ----------------------------------------------------------- 3. Installation 3-1 Product Contents ------------------------------------------------------------------------ 3-2 Cypress Development Kit Installation ------------------------------------------------------- 3-3 Board Driver Installation --------------------------------------------------------------------- 4. USB-EK01 Description 4-1 USB-EK01 Concept ----------------------------------------------------------------------- 19 4-2 Memory Map 4-2-1 8051 Memory Map...
  • Page 3 USB-EK01 User‟s Manual Appendix A-1 Driver Installation and Remove ------------------------------------------------------------ A-2 Board Connector Pin Map ------------------------------------------------------------------ A-3 Reference (Notes) ----------------------------------------------------------------------- A-4 Repair Regulations ----------------------------------------------------------------------- Reference -----------------------------------------------------------------------...
  • Page 4: Introduction

    USB-EK01 User‟s Manual 1. Introduction After IBM's PC (Personal Computer) was announced in 1981, the PC has penetrated deeply into not only industry but also individual life. Perhaps, imagining everyday life without a computer is difficult these days. The reason why the PC was able to develop so rapidly is because many devices (devices) were designed and utilized for their respective purposes by opening standardized interfaces and architectures to the public.
  • Page 5 [Figure 1-3] above shows the connection of a normal USB device to the Host (PC). If you look at USB specification 1.1 here, the device is divided into low speed (1.5Mbps) and full speed (12Mbps). -up) through resistance. USB-EK01 is a device that supports full speed.
  • Page 6 USB-EK01 User‟s Manual Configuration0 Interface0 End Point0 Device End Point1 Other Interfaces Interface1 Other Interfaces Configuration1 Interfaces Other Configurations [Figure 1-4. USB Device Logical Concept] As can be seen from the figure above, when looking at a USB device from a logical point of view (programming), one device can have multiple configurations, and a configuration can be divided into multiple interfaces, and an interface can have multiple endpoints.
  • Page 7: Usb-Ek01 Features

    [Figure 2-1. USB-EK01 Layout] [Figure 2-1] above shows the external appearance of the board, and the Power LED and Reset switch that light up when the USB cable is connected and power is supplied. For more details, refer to “4.1 USB-EK01 Concept”.
  • Page 8: Installation

    USB-EK01 User‟s Manual 3. Installation 3-1 Product Contents [Figure 3-1. USB-EK01 Contents] (1) USB-EK01 Evaluation board (2) USB(A-B) Cable (3) 9Pin Null Modem Cable (4) CD (Manual/Circuit/Test Sample Program etc.)
  • Page 9: Cypress Development Kit Installation

    USB-EK01 User‟s Manual 3-2 Cypress Development kit Installation The Development Kit provided by Cypress was mainly referenced for board development and examples, and it is judged that developers will be able to obtain many useful materials and contents. “Development kit” can be downloaded from the Cypress website “www.cypress.com”...
  • Page 10: Board Driver Installation

    USB-EK01 User‟s Manual 3-3 Board Driver Installation (Note) All tests were based on Windows 2000 Professional, and the final test was also completed on Windows XP. Run Hardware tab/Device Manager in Start/Settings/Control Panel/System Properties as shown in the figure below.
  • Page 11 [Figure 3-4. “Device Manager” window] [Figure 3-4] is the execution screen of Device Manager. Here you can see all the USB devices currently connected to your PC. Currently, the “USB-EK01” board is not connected yet, so it will not be displayed.
  • Page 12 USB-EK01 User‟s Manual 크기(Bytes) EEPROM 24LC00 24LC01 24LC02 24LC32 24LC64 When the USB cable is connected, the “Found New Hardware Wizard” below is automatically executed, and the connected USB device can be checked in the Device Manager. Since Cypress Development Kit is pre-installed, a separate driver is not required.
  • Page 13 USB-EK01 User‟s Manual [Figure 3-7. The screen where the board is registered in the PC without EEPROM recognition] Then, connect the jumper again, reboot the board, and check whether the board is registered in the PC as shown in [Figure 3-7]. If confirmed, run “EZ-USB Control Panel (EzMr.exe)”, a utility provided by Cypress Development Kit.
  • Page 14 For detailed usage of Control Panel, refer to “EZ-USB Contents and tutorial.pdf” provided by Cypress. Then, from now on, install the board so that it is registered in the PC as a “DAQ system” development board. All basic tests are possible with the above settings, but in order to put the images needed for debugging using Keil software on the board, the driver of the DAQ system must be installed.
  • Page 15 USB-EK01 User‟s Manual The method to modify the contents of EEPROM is as follows. If you press the “EEPROM” button on the EZ-USB Control Panel, the “file dialog box” appears. Program\EPROM_IMG of the CD ROM provided in this dialog box Select “Sample.eep”...
  • Page 16 USB-EK01 User‟s Manual [Figure 3-11. New Hardware search Wizard Window] Press “Next” button. [Figure 3-12. Driver Installation Window] Press “Next” button.
  • Page 17 USB-EK01 User‟s Manual [Figure 3-13. Driver File Search Window] After select a location like above figure, press “Next” button. [Figure 3-14. Driver Selection window] In the above screen, select the “daqusbw2k.inf” file in the Software\Driver folder of the provided CD ROM and click the OK button to complete the driver installation. When the installation is complete, the completion screen as shown in [Figure 3-15] is displayed and disappears when you click the Finish button.
  • Page 18 USB-EK01 User‟s Manual [Figure 3-15. Driver Installation Completion window] After installation is complete, run “regedit.exe” of Windows to check the registered status. All the contents registered in the OS (Windows) on the PC are stored in the registry, and the program that can check and edit/edit the stored contents is the registry editor (regedit.exe).
  • Page 19 USB-EK01 User‟s Manual [Figure 3-17. Registry Editor Window] The most frequently used case of the registry editor is to check or delete the previously registered Key value. (Note) In some cases, in case of deleting the key value, in the case of Windows2000, it can be deleted after changing the permission in the “Security”...
  • Page 20: Usb-Ek01 Description

    In addition, since there is no need for a separate power supply, it is easy to use. I will explain the main connections and functions of the USB-EK01 board using the board outline below.
  • Page 21 RS232C Connection, It can be used for debugging and general communication at up to 115200bps. The figure below shows the functional block diagram of USB-EK01, and it was designed focusing on scalability with the main chip, AN2131QC. All Data, Address, and I/O are made available for board expansion, and can be connected to external devices through RS232C, USB, and I2C interfaces.
  • Page 22: Memory Map

    USB-EK01 User‟s Manual 4-2 Memory Map 4-2-1 8051 Memory Map The figure below shows the memory structure of a typical 8051 microcontroller. The memory embedded in the 8051 chip itself is the area indicated by the dotted line, which is different from the memory area accessed using the external data/address bus.
  • Page 23: Ek01(An2141) Memory Map

    USB data. Therefore, when the first power ON reset, the driver writes a program to this RAM area so that a desired program can be operated. The USB-EK01 board has the same memory map structure as the AN2131 chip because it does not use a separate external memory (RAM/ROM).
  • Page 24: Ik01(Expansion Board) Memory Map

    USB-EK01 User‟s Manual 4-2-3 USB-IK01(Expansion Board) Memory Map The USB-EK01 board uses RAM and ROM to expand external memory so that it can be used for applications with large program size and data memory size. In case of ROM, Flash memory is used to eliminate the need for a separate ROM writer, LED switch (DIP/Tact) is added for peripheral I/O testing, and a chip that can expand I/O through I2C interface.
  • Page 25 0x1B40 0x0000 [Figure 4-7. When USB-IK01 and USB-EK01 combination Memory Map( (EA = 0)] When the EA pin of the chip is Low Level „0‟, the program memory uses the RAM inside the AN2131 chip, but when the EA pin is High Level „1‟, the external program memory area is used.
  • Page 26: Booting Option

    USB-EK01 User‟s Manual 4-3 Booting Option In case of AN2131, there is three reset mode. (1) Power On Reset : When the first power is applied, the EZ-USB core stays in the reset state by the number of time constants in the external RC circuit until the internal PLL is stabilized.
  • Page 27 USB-EK01 User‟s Manual Power On Reset Not Detected Check EEPROM Check EA Detected 0xB2 Others Check Byte at Address 0 0xB0 VID = EEPROM 1/2 Bytes VID = EEPROM 1/2 Bytes VID = 0x0547 (Cypress) VID = from Program code...
  • Page 28: Cdrom Folder

    USB-EK01 User‟s Manual 4-4 CDROM Folder Description The contents of the CDROM provided with USB-EK01 are shown in the figure below, and brief descriptions of the contents are shown in a table. [Figure 4-11. CDROM Folder Structure] [Table 2. CDROM Folder Description]...
  • Page 29: Test

    Recently, a lot of PCs with USB ports on the front are on sale. [Figure 5-1. Host(PC) Port] First, connect the board (USB-EK01) and PC with the provided USB cable as shown in [Figure 5-1]. When the connection is made, the LED in the red circle in the figure turns on to indicate whether the power is supplied normally.
  • Page 30 USB-EK01 User‟s Manual For the test method, a folder is provided for each test in the “Software\Example\USB-EK01\” folder of the CDROM. Modification of the source code uses the Keil compiler. If you double-click the Keil project file (extension .Uv2) in each folder, the project is opened, and there is an already completed executable binary file in Intel hex format (extension .hex) in each folder.
  • Page 31 USB-EK01 User‟s Manual < LED lighting Test > The file used for the test can be found in the “Software\Example\USB-EK01\Led” folder of the CDROM, and download and test “led.hex”. When executed, the LEDs (D1 and D2) in the red circle in the figure below alternately turn on and off.
  • Page 32 USB-EK01 User‟s Manual < Serial Communication test > The file used for the test can be found in the “Software\Example\USB-EK01\Serial” folder of the CDROM, and download “Serial.hex” and test it. The RS232 communication program is used for the test, and the most used program is Windows Hyper Terminal, but comm1, a communication program produced by the DAQ system, was used here.
  • Page 33 USB-EK01 User‟s Manual < Switch ON/OFF Test > The file used for the test can be found in the “Software\Example\USB-EK01\Switch” folder of the CDROM, and download “Switch.hex” and test it. RS232 communication program is used for the test, and when switch 1 is pressed, the LED (D1) turns on and the contents are transmitted serially.
  • Page 34 USB-EK01 User‟s Manual < EEPROM Read/Write Test > The file used for the test can be found in the “Software\Example\USB-EK01\EEPROM” folder of the CDROM, and download “eeprom.hex” and test it. RS232 communication program is used for the test, and when switch 1 is pressed, the contents of EEPROM are read and transmitted through communication.
  • Page 35 USB-EK01 User‟s Manual < USB Disconnection Test > The file used for the test can be found in the “Software\Example\USB-EK01\Discon” folder of the CDROM, and download and test “discon.hex”. When switch 1 is pressed, the device is disconnected from the PC. If you check “Universal Serial Bus Controller”...
  • Page 36: Program And Debugging With Keil Uvision

    Keil website. A trial version is also available for download from the Keil website. First, double-click Software\Example\USB-EK01\Led.Uv2. (If the Keil software is installed normally, the project will open as shown in the figure below.) The extension of the project file is “.Uv2”.
  • Page 37 USB-EK01 User‟s Manual [Figure 5-10. A way to download execution binary (*.hex) at USB-EK01] The above method is a test method after downloading the direct execution code through a USB connection. The debugging method using serial communication is as follows.
  • Page 38 USB-EK01 User‟s Manual And, it should be noted that the communication speed of 19200bps is used for debugging. As for the setting method, when the Project/Option for Target „Target1‟ menu is executed, the following dialog box appears, select the debug tab and set it by pressing the setting button.
  • Page 39 USB-EK01 User‟s Manual [Figure 5-13. Keil Debugging setup window2]...
  • Page 40: Firmware(Ezusbfw) Description

    USB-EK01 User‟s Manual 5-3 Firmware(Ezusbfw) Description Cypress provides developers with the firmware source code that implements the basic USB protocol in the 8051 core. The source code can be found in the folder shown in the figure below. [Figure 5-14. Firmware Source Folder] If you double-click “fw.Uv2”...
  • Page 41 USB-EK01 User‟s Manual [Figure 5-15. VID/PIC Editing] For more detailed usage and details, please refer to “Anchor Firmware FW.pdf” file.
  • Page 42: Making For Usb Pc Driver

    USB-EK01 User‟s Manual 5-4 Making USB PC Driver In order to make a USB PC driver for Win32, DDK (Driver Development Kit) must be installed on the PC. The available DDK is Windows 98/2000/me, and Visual C++ version 5.0 or higher must be installed before installing the DDK.
  • Page 43 USB-EK01 User‟s Manual The DDK source location used in USB is as follows ♣ NTDDK₩src₩wdm₩usb₩bulkusb ♣ NTDDK₩src₩wdm₩usb₩isousb ♣ NTDDK₩src₩wdm₩hid (3) Driver Compile Driver sources provided as samples by Cypress are as follows. It can be found in the “Drivers” folder, and there are three or more of ezloader, ezmon, and ezusbdrv. These drivers have the same overall source, but there are some differences.
  • Page 44: Making For Eeprom Image

    USB-EK01 User‟s Manual Basic source of all WDM drivers is as follows. ♣ DriverEntry() : CallBack Routine Registration ♣ AddDevice() : DriverObject Creation, Symbolic linkname Registration, TopOfStackObject Get ♣ PnP Process: Power/Pnp Relevant Facts Process, USB Descriptor Get, Pipe Information Get, Device Remove Routine ♣...
  • Page 45: Serial Eeprom With First Byte 0Xb2

    USB-EK01 User‟s Manual DID Low DID High Not Used 5-5-3 Serial EEPROM with First Byte 0xB2(See fw_out.eep) If the first byte is 0xB2, register to the host with the following ID, load the executable binary image from EEPROM into the memory, and then automatically release and operate the 8051 core in the reset state.
  • Page 46: Application Program For Pc

    EEPROM_IM folder of the CDROM. hex2bix -IR -M 0x8000 -V 0x6712 -P 0x0001 -F 0xB2 -O fw_out.eep fw.hex Download the created EEPROM image to the EEPROM of USB-EK01 using “EZ-USB Control Panel” as shown in Figure 4.27. Can be used.
  • Page 47 USB-EK01 User‟s Manual When you see the source of the device driver, the EZ-USB device is registered in the Host (PC) with a symbolic name of “ezusb-i”. Here, i is created differently according to the registered device order. [Figure 5 -19] shows the program using Visual C, and the source used can be found in the “Software/Application”...
  • Page 48 USB-EK01 User‟s Manual For more details, refer to “EZ-USB General Purpose Driver Spec.pdf”. The figure below is the execution screen of the final completed application. First, when the program is run, it checks whether the device is connected to the PC, and if it is not found, it is...
  • Page 49 LED (D1/D2) on the board. Also, as shown in [Figure 5-21], in the blue circle of USB-EK01, the LED (D1/D2) repeats ON/OFF even when the switch is pressed. [Figure 5-21. Application Interlock Test]...
  • Page 50: Appendix

    USB-EK01 User‟s Manual Appendix A-1 Driver Installation and Remove <Driver Installation> When a device (PCI, USB, etc.) supporting Plug and Play is connected to the system (PC), the OS performs enumeration using device ID (VID) and product ID (PID). If the correct driver is found in the registry, the driver is loaded.
  • Page 51 USB-EK01 User‟s Manual In Windows XP, the above two executable files are integrated, and after selecting “Permissions” from the “Edit” menu, check all permissions and then delete them. The registry keys and files to be deleted are as follows. 1. Key “Vid_xxxx&Pid_xxxx”...
  • Page 52 USB-EK01 User‟s Manual If you look at the figure below, there is a key according to the registered order under Class ID, and you can see the registered contents by looking at the right window. Remove the key value “0018” from here.
  • Page 53 USB-EK01 User‟s Manual 3. “HKLM\SYSTEM\CurrentControlSet\Services\Service Name (Normally the company name is used most a case).
  • Page 54: Board Connector Pin Map

    USB-EK01 User‟s Manual A-2 Connector (JP1 and JP7) PIN Map <JP1> PIN No. Name Description No Connection No Connection Signal Ground Signal Ground Serial ROM select 0 Serial ROM select 1 (short to ground for 24LC64) 8051 General Purpose PortA 7...
  • Page 55 USB-EK01 User‟s Manual 8051 General Purpose PortB 0 8051 General Purpose PortB 1 3.3V 3.3V Power Supply 3.3V 3.3V Power Supply <JP7> PIN No. Name Description USB_N USB D- RST_IN External Reset Input USB_P USB D+ RESET# Reset Output (Low Active)
  • Page 56: Reference (Notes)

    USB-EK01 User‟s Manual Address Bus 13 8051 General Purpose PortC 4 Address Bus 15 8051 General Purpose PortC 6 8051 General Purpose PortC 5 5V Power Supply 8051 General Purpose PortC 7 A-3 Reference (Notes) (Note 1) The USB VID (0xFFFF) used in the board is not registered in the USB sig (www.usg.org).
  • Page 57: Repair Regulations

    (3) All DAQ SYSTEM products have a one-year warranty. -. The warranty period is counted from the date the product is shipped from DAQ SYSTEM. -. Peripherals and third-party products not manufactured by DAQ SYSTEM are covered by the manufacturer's warranty.
  • Page 58 USB-EK01 User‟s Manual References 1. EZ-USB Manual Technical Reference Manual V1.10 -- Cypress Semiconductor Corporation 2. EZ-USB General Purpose Driver Specification -- Cypress Semiconductor Corporation 3. USB 2.0 System Architecture -- Don Anderson, USB SIG (www.usb.org) 4. Universal Serial Bus Specification -- Compaq/Intel/Microsoft/NEC, MindShare Inc.
  • Page 59 USB-EK01 User‟s Manual MEMO Contact Point Web sit : https://www.daqsystem.com Email : postmaster@daqsystem.com...

Table of Contents