Home
USB-EK01 User Manual
Contents
1. lt JP1 gt PINZ Name Description 1 NC No Connection 2 NC No Connection 3 GND Signal Ground 4 GND Signal Ground 5 SMO Serial ROM select 0 6 SM1 Serial ROM select 1 short to ground for 24LC64 7 PA7 8051 General Purpose PortA 7 8 PA6 8051 General Purpose PortA 6 9 PA5 8051 General Purpose PortA 5 10 PA4 8051 General Purpose PortA 4 11 PA3 8051 General Purpose PortA 3 12 PA2 8051 General Purpose PortA 2 13 PAIL 8051 General Purpose PortA 1 14 PAO 8051 General Purpose PortA 0 15 GND Signal Ground 16 WAKEUP Wakeup input from CPU suspend 17 SCL I2C signal clock 18 SDA I2C signal data 19 BKPT Break Point Output 20 3 3V 3 3V Power Supply 21 D6 Data bus 6 22 D7 Data bus 7 23 D4 Data bus 4 24 D5 Data bus 5 25 PB6 8051 General Purpose PortB 6 26 PB7 8051 General Purpose PortB 7 27 PB4 8051 General Purpose PortB 4 28 PB5 8051 General Purpose PortB 5 29 D2 Data bus 2 30 D3 Data bus 3 31 DO Data bus 0 32 D1 Data bus 1 33 GND Signal Ground 49 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 34 GND Signal Ground 35 PB2 8051 General Purpose PortB 2 36 PB3 8051 General Purpose PortB 3 37 PBO 8051 General Purpose PortB O 38 PB1 8051 General Purpose PortB 1 39 3 3V 3 3V Power supply 40 33V 3 3V Power Supply lt JP7 gt PINZ Name Description 1 USB_N USB
2. 44D36E968 E325 11CE BFC 1 08002BE 10318 GQ 4D35E959 E325 11CE BFC1 08002BE 10318 4D36E95A E325 11CE BFC 1 08002BE 10318 4036E96B E325 11CE BFC 1 08002BE 10318 C3 4036E96C E325 11CE BFC1 08002BE 10318 G 4D36E96D E325 11CE BFC 1 08002BE 10318 gt LH e EITHKEY LOCAL MACHINESISYS TEMWCurrentControlSet Control Class 36FC 3EBO C 465 11CF 8055 444553540000 p There is key value by the orders that I was registered under Class like below picture right side window can take registered contents It removes a key value called 0018 47 http www daqsystem com DAO SYSTEM USB EK01 Users Manual Rev 1 0 s EXE TEES ANAE BASE BY BASED TEH SF loj xl GIOIE 4 Biosinfo ols C3 BootVerificationProgram ab C21 zt amp Class ab DevLoader E C3 36FC9E60 C465 11CF 8 ab DriverDesc C3 0000 ab InfPath amp 0001 ab InfSection e ab InfSectionExt 0004 ab MatchingDeviceld 3 0005 ab NTMPDriver C3 0006 ab ProviderName amp 0007 zy 0008 0009 C3 0010 3 0011 3 0012 3 0013 3 0014 0015 0016 0017 awg 44D35E965 E325 11CE B Cg 4D36E966 E325 11CE B C3 4036E967 E325 11CE B C3 4D36E958 E325 11CE B C3 44D36E969 E325 11CE B 4036E964 E325 11CE B 44D36E95B E325 11CE B 4036E96C E325 11CE E 4D35E9ED E325 11CE B gt REG SZ REG SZ REG SZ REG SZ REG SZ REG SZ REG SZ REG SZ
3. at reset at a device driver or application program It is mainly used when the program capacity is small and EEPROM capacity is enough and you need not to directly connect to PC EEPROM ADDR Description OxB2 VID Low VID High PID Low PID High DID Low aOIl eA wl ywmofyrio DID High Length High Length Low Start Address High Start Address Low Data BLock Length High Length Low Start Address High Start Address Low Data BLock 41 http www daqsystem com DAO SYSTEM USB EK01 Users Manual Rev 1 0 The maximum value of Length High is 0x3 so the maximum size of record is 1024 bytes ula Jaze AS HOES HANS Shui 0x80e F HAL 1 uel E AS 1i CPUCS Ox7F92 e OO ke 44 zelo 8051 cores BAIA A Al FES stu The data of EEPROM can only transfer to internal memory of AN2131 It don t transfer to external memory To make EEPROM image it is convenient to make a batch file using hex2bix utility The under example shows firmware fw hex is made of EEPROM image you can find a eprom bat file at EEPROM_IM folder in CDROM hexZbix IR M Ox8000 V Ox6712 P 0x0001 F OxB2 O fw_out eep fw hex An EEPROM image to make uses EZ USB Control Panel like figure 5 17 and uses download to EEPROM memory of USB EKO1 board ES EZ USB Control Panel Ezusb 0 loj xj File Edit View Options Tools Window Help E e Sl o Taset EZusB amp Fx v Dser ZSEz
4. lt gt ABCDEFGHIJKLMNOPORSTUVUXYZ _ iegsse 0123456789 lt gt 2HABCDEFGHIJKLMNOPQORSTUVUXYZ N lessee 0123456789 2 2H ABCDEFGHIJKLMNOPORSTUVUXYZ _ legsse 0123456789 lt gt 2HABCDEFGHIJKLMNOPQRSTUVUXYZ N lessee 0123456789 lt gt ABCDEFGHIJKLMNOPORSTUVUXYZ _ LRS E 0123456789 lt gt ABCDEFGHIJKLMNOPORSTUVUXYZ _ tegsse 0123456789 lt gt 2 ABCDEFGHIJKLMNOPORSTUVUXYZ _ lessee 0123456789 lt gt ABCDEFGHIJKLMNOPORSTUVUXYZ _ lessee 0123456789 lt gt 2HABCDEFGHIJELMNOPORSTUVUXYZ N 56 0123456789 lt gt ABCDEFGHIJKLMNOPORSTUVUXYZ _ I g 5 amp 0123456789 lt gt ABCDEFGHIJKLMNOPORSTUVUXYZ _ I 5 amp 0123456789 lt gt 2 ABCDEFGHIJKLMNOPORSTUVUXYZ _ L E 0123456789 lt gt 2B ABCDEFGHIJKLMNOPOR Aana J gt For Help press F1 COM1 38400 8 Bits 1 Stop NONE Us Figure 5 5 Serial communication test 29 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 lt Switch ON OFF test gt You can find a file which it is used to test in folder of SoftwareWExampleWUSB EKO1WSwitch at CDROM and test to download Switch hex For a RS232 communication program is used to a test if press switchl LED D1 lights on and transmits contents to serial If press switch2 LED D2 lights
5. v m E zi xi zu C 0x11FD A7FD MOV R1 0xFD C 0x11FF 3D ADDC A RS ii 5 main 5 4 ais DWORD cnt 8 OEA Oxff ge C 0x1200 907F9C MOV DPTR 0EA Ox7F9C C 0x1203 74FF MOV A 0xFF C 0x1205 F0 MOVX DPTR A 105 while TRUE ti 12 for cnt 0 cnt lt 200000 cnt D C 0x1206 E4 CLR A psw 0x00 C 0x1207 FSOB MOV Ox0B A C 0x1209 FSOA MOV Ox0A A C 0x120B F509 MOV 0x09 A C 0x120D F508 MOV 0x08 A C 0x120F 7F40 MOV R7 0x40 C 0x1211 7EOD MOV R6 0x0D C 0x1213 7D03 MOV RS 0x03 C 0x1215 7C00 MOV R4 0x00 C 0x1217 ABOB MOV R3 0x0B C 0x1219 AADA MOV R2 0x0A C 0x121B A909 MOV R1 0x09 C 0x121D A608 MOV R0 0x08 hs 4 X Running in Eva Al connected to 4 00000000 Load E DEV C 0x04B0 01 1E 06 02 03 02 C 0x04B6 02 01 01 01 01 01 ic 0x04BC 01 01 01 01 01 1E C 0x04C2 OA 02 29 02 03 02 Oynan no no no no no n For Help press F1 Figure 5 13 Keil Debugging setup window2 5 3 Firmware Ezusbfw Description A firmware source code is providing that it implemented a basic USB protocol at 8051 cores to developers at Cypress You can find a source code as like picture 126 BIG 52K SALA SWD Seat eda gt a casn F u Vx FAD a Ezusb eus C3 Cypress SJ build bat MS DOS amp I 2002 09 16 5 3 USB pa decr a51 Ab ne 2002 09 16 Application Reference Mate i9 dscr h H ue 2002 08 16 Bin p fw c C ure 2002 09 16 Doc ja fw hex HEX THS 2002 09 16 Dri
6. 0000 BO FF FF 01 00 For Help press F1 Figure 3 11 New Hardware search Wizard Window Press Next button 12 http www daqsystem com DAG SYSTEM USB EK01 Users Manual Rev 1 0 E COINS SIESO m JA 2S AA SSH USS se ASEM BE a E mE AES R SUES ote 2ZEAH Seat figure 3 12 Driver Installation Window Press Next button Ed Ep ERHI 2 271 Scholl eS ACHAM oH s SEAIZZ SLIDE azl U23 Eco Figure 3 13 Driver File Search Window After select a location like above figure press Next button 13 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 AW SHESIIOI ZA OFB AH E eH ure 271 Im Sel HLE HOUN AAS SEAIZ SLIDE 3 E ES S AS HS A238 SHS tpi eg SSCs 2 Sy RREA ese ston sens we J ala SAE MAM TS ARC m EWDEV PR PWUSBWProgramWDriver 0718 daq drv daqmon AE daqusbw2k inf daqusbw2k inf DIg D daqusbw2k inf Te 24cm ai S5 inf e Figure 3 14 Driver Selection window After select a file daqusbw2k inf in SoftwareWDriver folder at CDROM press Confirm button and will finish driver installation If installation finish press finish button and disappear window like figure 3 15 201 2144 OFS Ab Al of SHO AA nre Ap S T DAG system USB Development Board DI SAY ZS ESOS SAISRELILE OAS BWA 0A FEAN lt FEB Figure 3 15 Driver Installation Completion w
7. AN2131QC Internal Ox7FFF 0x7B40 Ox27FF 0x2000 Ox1 FFF 16x64 0x1B40 Bulk End points 0x183F 1024 Bytes XDATA CODE 6 976 Bytes IDATA 0x0000 i a a mom mom mom u uM eo Figure 4 4 USB EKO1 AN2131 Memory Map But if the USB EKO1 board use an expansion connector and it connect with USB IKO1 the board can use external memory area 20 http www daqsystem com 4 2 3 USB IKO1 Expansion Board Memory Map The USB IKO1 board used RAM and ROM to the application that a memory size and program size was large so as to be able to extend an external memory In case of ROM it use Flash memory so user don t need to special ROM Writer and added LED switch DIP Tact for I O test and was equipped with a chip PCF8574 that can expand I O through I2C interface Also user can freely make a hardware program with EPLD XC9536XL In other Words it can exchange an area of address and usage methods of I O This modify can perform to connect a printer port of PC without special device Inclusion ISP interface itself Figure 4 5 USB IKO1 Out side View Figure 4 5 USB IKO1 and USB EKO1 combination 2 http www daqsystem com OxFFFF Note Can be programed the location by EPLD programming and DIP sw XTEFE ee AN2131QC Internal RAM32K Di CODE or XDATA 0x2000 0x0000 Figure 4 6 When USB IKO1 and U
8. Figure 4 10 CDROM Folder Structure Table 4 2 CDROM Folder Description Document Manual Hardware Schematic and BOM Software Source Code Application Driver Sample EEPROM image etc Utility RS232C communication Program for test comm exe 25 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 5 Test 5 1 Example Test You get a Host PC that it is installed Windows2000 or XP Operating system for test You can confirm a port of RS232 PRINTER USB ports at backside of PC A PRINTER Port is able to program EPLD of USB IKOI Figure 5 1 Host PC Port USB EKOI is connected to PC through USB cable like figure 5 2 If it is connected LED in the red circle lights on to show power supply RS232C cable is used to test serial communication or debugging If there is no used you don t need to connect Figure 5 2 USB EKOI and PC connection using cable A folder of SoftwareWExampleWUSB EKOW in CDROM is prepared a folder to 26 http www daqsystem com DAO each test Adjustment of source code uses Keil compiler If every each folder USB EK01 Users Manual Rev 1 0 performs a Keil project file extension Uv2 by double clicks the project opens Also there is an execution binary file of Intel hex format extension hex each folder If press DownLoad button at EZ USB Control Panel a dialogue box appears and designates a binary f
9. 2E e alalim Running EZPROM Test Program EZPROM Read at address 0 IBB FFFFO1000000FFFFFFFFFFFFFFFFFF IFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF IFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF IFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF IFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF IFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF IFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF EZPROM Write at address 0 EZPROM Read at address 0 11111111111111111111FFFFFFFFFFFF IFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF IFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF IFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF IFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF IFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Ss z gt l For Help press F1 COMI 38400 8 Bits 1 Stop NONE A Figure 5 7 EEPROM read write test If a test is finished to exchange contents of EEPROM to sample eep values through EzMr program and proceed continuously a test 31 http www daqsystem com DAD SYSTEM USB EK01 Users Manual Rev 1 0 lt USB Disconnection test gt You can find a file which it is used to test in folder of SoftwareWExampleWUSB EKO1WDiscon at CDROM and test to download discon hex If press switchl a device disconnect at PC You can confirm that a driver disappeared at a Universal Serial Bus controllers of device manager If press switch2 a device try to reconnect to PC As a program didn t program a necessary code in case of re connection at sample program
10. B Cable 3 9Pin Null Modem cable 4 CD Manual Schematic Sample test etc 3 2 Cypress Development kit Installation A development and exercise of board refer to mainly Development Kit at Cypress you can get a lot of information and report You can use the Development kit to download at homepage of Cypress C www cypress com The Development kit is a software package minimum 60Mbyte size If it install the folder structure is as follows 5 http www daqsystem com USB EK01 Users Manual Rev 1 0 C GpifTool C3Hex 2Bix Hex2c RegClear C3 Test AI Cypress USB 7 Bin amp Doc EC Drivers pm Driver Tool H 0 ezloader H ezmon EH ezusbdrv C Examples amp 7 Hardware H Target my Util Vendors HCI NTDOK cC NVIDIA Figure 3 2 Folder Structure Notice If you want a Keil software and separate reference report you shall select a custom install option not default You confirm a folder at your PC as above picture when normally finished install The Cypress Development Kit include Keil compiler and debugger you can freely use a code size of 4K byte in range not business purpose 6 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 3 3 Board Driver Installation Notice All test made a Windows2000 Professional with bases we are having finished the final test at Windows XP Execute Device Manager at My Computer gt Prop
11. D 2 RST_IN External Reset Input 3 USB_P USB D 4 RESET Reset Output Low Active 5 DISCON USB Disconnection Output Low Active 6 PSEN Program strobe Enable 7 3 3V 3 3V Power Supply 8 GND Signal Ground 9 3 3V 3 3V Power Supply 10 CLK24 CPU clock 24Mhz 11 AO Address Bus 0 12 GND Signal Ground 13 A2 Address Bus 2 14 Al Address Bus 1 15 A4 Address Bus 4 16 A3 Address Bus 3 17 A6 Address Bus 6 18 AS Address Bus 5 19 EA External Access Input 20 A7 Address Bus 7 21 A8 Address Bus 8 22 RESET Reset Output High Active 23 A10 Address Bus 10 24 A9 Address Bus 9 25 GND Signal Ground 50 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 26 All Address Bus 11 27 PCO 8051 General Purpose PortC O 28 GND Signal Ground 29 PC2 8051 General Purpose PortC 2 30 PCI 8051 General Purpose PortC 1 31 Al2 Address Bus 12 32 PC3 8051 General Purpose PortC 3 33 Al4 Address Bus 14 34 A13 Address Bus 13 35 PC4 8051 General Purpose PortC 4 36 Ald Address Bus 15 37 PC6 8051 General Purpose PortC 6 38 PC5 8051 General Purpose PortC 5 39 5V 5V Power Supply 40 PC7 8051 General Purpose PortC 7 C Notice Notice 1 USB VID OxFFFF to use boards isn t registered to USB sig www usg org because it is artificial ID you cannot use it to the formal products just test only Notice 2 A lot of sections of this manual are referring
12. GetFipes GetSing Dowload getoas seno URB stat How RUN vendFea Reg oxA2 Valufox0000 IndefoxBEEF Lenatt i6 Dirf1 IN Hex BO 47 05 80 00 01 oo lsoTrens Pipe EEPROM Download Bukim Pipe ResetPipe Abortipe File EZ USB Control E 3 Get PipeInfo Interface Size T2 O B N sample eep 710 WegeAm AFles 9 sz ala L9 A For Help press F1 Figure 3 10 sample eep for changing EEPROM s information 11 http www daqsystem com DAQsyscem The contents that it was changed are as follows USB EK01 Users Manual Rev 1 0 0000h BO FF FF Ol 00 O00 00 in other words VID is OxFFFF and PID is 0x0001 When finished EEPROM writing press reset switch or remove and re connect the USB cable The board gets re registration at PC And then above ID doesn t currently get registration at PC New Hardware Search wizard will be open and display like figure 3 11 ss saol je smj m a WIN2K CAD IEF Sal USB Device mE LIE SI HHE Al SSAA e t nre Ap AZS File Edit View Options Tools Wi a X Es e amp 2 OAKS SHEA SAH SS Sal ESHOIHIE AiE ES vendRea Req ValudOx 0 meje Bulk Int Pipe tt JA amp 6tre9 C FENA ResetPipe lt E B LHSOD gt 7F D6 EO 74 01 FO SHENOY ZA dm USB Device amp X5Hz SeILILE oo 00 00 oo 00 00 0 00 Toggle 8051 Reset Vendor Request
13. Host Controller 24C2 Intel R 82801DB DBM USB Universal Host Controller 24C4 Intel R 82801DB DBM USB Universal Host Controller 24C7 USB 202508 USB SE HE USB SE HE USB SE HE zt HCE Se Y Hg weed AE ERI re REESE RR 8 ZEI Cc E COM GS LPT e AHH SI D CD ROM Ege Al Al a AIRE x D E x E z z z 4 m a F e5 2 Figure 3 7 A board was registered to PC without recognition EEPROM 9 http www daqsystem com DAO SYSTEM USB EKO1 Users Manual Rev 1 0 You confirm to register to PC like figure 3 6 that rebooting a board after connection jumper After that EZ USB Control Panel EzMr exe utility which given Cypress Development Kit perform Figure 3 8 EZ USB Control Panel Notice When development a product at Cypress Usable utility is searchable in CypressWUSB WBin and CypressWUSBWUtil The execution screen of EZ USB Control Panel EzMr exe is like figure 3 9 If connection doesn t work a device the error message will be marked EB USB Control Panel Ezusb 0 aj le ai vj ven Tos mma w S Ezusb 0 EZ USB Control Panel built 11 31 58 Sep 17 2002 Get PipeInfo Interface Size 16 Figure 3 9 EZ USB Control Panel 10 http www daqsystem com DAG SYSTEM For more usage method of Control Panel refer to EZ USB Contents and tutorial pdf at Cypress USB EK01 Users M
14. Loader operates it confirm that EEPROM is connected to an external I2C bus If EEPROM operates Ack is asserted it decide according to data of EEPROM first byte how to operate 5 5 1 No Serial EEPROM If there is EEPROM if the first byte value isn t OxBO and B2 the VID PID of AN2131 registers it to Host PC to 0x0547 0x2131 8051 core is stayed with reset state Therefore you shall release 8051 at reset at a device driver or application program VID 0x0547 Cypress semiconductor PID 0x2131 EZ USB chip DID OxXXYY depends on revision 5 5 2 Serial EEPROM with First Byte is OxBO But if the first byte value is OxBO registers it to Host PC as like following table 8051 core is stayed with reset state Therefore you shall release 8051 at reset at a device driver or application program It is mainly used when the driver operates to download an execution binary image and EEPROM stores ID only if EEPROM capacity is small EEPROM ADDR Description 0 OxBO 1 VID Low 2 VID High 40 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 3 PID Low 4 PID High 5 DID Low 6 DID High 7 Not Used 5 5 3 Serial EEPROM with First Byte is OxB2 fw_out eep 4 If the first byte value is OxBO registers it to Host PC as like following table After an execution binary image download to memory at EEPROM you shall release 8051
15. a suitable driver isn t installed If you want to add a code refer to EZUSB firmware code a S3 2relA sa s e gt me o E B9 EAS HHE amp 3 0 43 cgale OASc00 CEA 3 OS S VIE HCl SH Ue eh s Le es SUA HE aga WA WES Intel r 82801DB DBM USB Enhanced Host Controller Intel R 82801DB DBM USB Universal Host Controller 24C2 Intel R 82801DB DBM USB Universal Host Controller 24C4 Intel R 82801DB DBM USB Universal Host Controller 24C7 USB 2 0 amp E eH USB E 6 8 USB SE He USB FE Qe USB Device t AEE HES S Ae Heed m AA Al 23H g F O YY x E COM Y LPT xal eigen ol ZA DVD CD ROM EegIn e EA Ea a os eod d os Figure 5 8 USB Disconnection test 32 http www daqsystem com DAG SYSTEM USB EK01 Users Manual Rev 1 0 5 2 Program and Debugging with Keil uVision Used program used a LED lighting sample program for simple explanation An evaluation copy of Keil program is together it to Development Kit providing Cypress you shall select a option in case of installation Usage of a necessary program refers to Keil C51 manual to a test You can get detailed information in Keil Web site You can use the evaluation copy to download Keil Web site First double click SoftwareWExampleWUSB EKO1WLed Uv2 If Keil software installation normally worked a project opens like below picture An extension of proj
16. on and transmits contents to serial I COMMI File Edit View Cofig Command Misc Help Casi Hae S X s cin Ze e alala Switchl is closed Svitchi is closed Switchi is closed Switchl is closed Switchl is closed Sswitchl is closed Svitchi is closed Switchl is closed Switchi is closed Switchl1 is closed Switchl is closed Svwitchl1 is closed Switchl is closed Switchl is closed Sswitchi is closed Svitchi is closed Switchi is closed Switchl is closed d Switchl is closed Switchi is closed zl For Help press F1 COMI 38400 8 Bits 1 Stop NONE 4 Figure 5 6 Switch ON OFF test 30 http www daqsystem com DAO SYSTEM lt EEPROM read write test gt You can find a file which it is used to test in folder of SoftwareWExampleWUSB EKOLWEEPROM at CDROM and test to download eeprom hex USB EK01 Users Manual Rev 1 0 For a RS232 communication program is used to a test if press switchl it transmits through communication as reading contents of EEPROM If press switch2 Ox1l record from address of O to address of 10 of EEPROM So first after press switchl you confirm contents of EEPROM To press switch2 new information is writing you confirm recorded contents after press switchl again Ol x File Edit View Cofig Command Misc Help Cas ta x t amp r sj cin
17. to Cypress Development Kit You cannot use without permission contents regarding intelligent property of an individual company mentioned to this manual and Keil uVision 5 http www daqsystem com DAO SYSTEM USB EK01 Users Manual Rev 1 0 Reference 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 Compag Intel Microsoft NEC MindShare Inc Addison Wesley 5 EZUSB Design by Example A Practical Guide to Building I O devices John Hyde Intel University Press WILEY 52 http www daqsystem com
18. unit From 0x80 to OxFF of address is SFR Special Function Register area when access to direct addressing methods is general data area IDATA when access to indirect addressing methods The SFR area has the registers for CPU calculation and for control surrounding I O area 8051 has separate space of the data memory area XDATA and the program memory area CODE each area accessing classify to signal line of RD WR and PSEN The program memory CODE can include in chip oneself each manufacturing company is able to choose various selection until the maximum 64K Byte at 4K Byte A mainly flash memory uses in now user prefer that it is able to exchange a structure of program At this time an input state of EA pin decides whether or not there is to use an external memory whether or not there is to use inner memory 19 http www daqsystem com 4 2 2 USB EKO1 AN2131 Memory Map Cypress9 AN2131 which have a core of 8051 microcontroller is same memory structure of 8051 internal memory But other point got separate RAM 8K Byte in the chip inside and use to program and data memory Also the RAM can use a EndPoint buffer in case of USB data transmission therefore the driver write a program in this RAM area when first Power ON reset and can make it so that a program operates that user wanted it The USB EKO1 board doesn t have special external memory RAM ROM it is same structure of memory map like AN2131 chip
19. DAQ SYSTEM USB EK01 Users Manual Rev 1 0 USB EK01 User Manual AN2131 EZ USB and Cypress are trademarks of Cypress Semiconductor Keil and uVision2 are trademarks of Keil software Windows Windows2000 Windows NT and Windows XP are trademarks of Microsoft We acknowledge that the trademarks or service names of all other organizations mentioned in this document as their own property 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 Copyrights 2005 DAQ system AIl rights reserved 1 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 Contents 1 Introduction 2 USB EKO1 Function amp Specification 3 Installation 3 1 Confirm Product Contents 3 2 Cypress Development kit Installation 3 3 Board Driver Installation 4 USB EKO1 Description 4 1 USB EKO1 Concept 4 2 Memory Map 4 2 1 EKO1 Memory map 4 2 2 IKO1 Memory Map 4 3 Booting Option 4 4 CDROM Folder 5 Test 5 1 Example 5 2 Program amp Debugging with KeiluVision 5 3 USB Firmware 5 4 Make USB PC Driver 5 5 Make EEPROM Image 5 6 Application Program for PC Appendix A Driver Installation amp Remove B Board connector PIN map C Notice Reference 2 http www daqsystem com 1 Introduction C2 JP1 Boare Extention DAQ system www dagsystem com P1 bes connection Reset SW3 JPS USB B ty
20. REG SZ ata onm ntkern DAQ system USB Development Board nemE inf DAQsystem Dev NT usbwvidffff amp pid 0001 daqusb sys DAG system We can know the inf file which we shall remove at the above picture It is a oem6 inf this file can find an inf folder in Windows installation folder For example it is a C WWINNTWInf folder 3 HKLMWSYSTEMWCurrentControlSetWServicesWService Name Normally the company name is used most a case Ms PEST BS ESI ap A A EeltR EAE SV SARIE E amp H 3 Cdr4 2K ig ZE eT GIOIE E Cdralw2k fab 2I 2 amp Cdrom Z3 Changer cisvc 4 ClipSrv 4 ContentFilter Contentindex C3 Cpaarray C3 cpaarry2 3 cpafcalm 3 cpafws2e dac36Ont T deckzpsx Dhcp 3 Disk Diskperf E dmadmin amp dmboot E dmio E dmload C3 dmserver 3 DMusic Dnscache DS1410D E100B EFS Eventlog E EventSystem EZUSB EZUSBDEV REG SZ REG SZ REG DWORD REG SZ REG EXPAND SZ REG DWORD REG_DWORD REG_DWORD t 8 ore DAQ system General Purpose USB Drimve 0x00000001 C1 Base System32WDriversWdaqusb sys Ox 00000002 2 0x00000016 22 0x00000001 C1 LW AE WHKEY_LOCAL_MACHINEWSYS TEMWCurrentContralSetwServiceswDAQsystem 4 48 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 B Connector JP1 and JP7 PIN map
21. ROM load or external program memory using EA 1 the reset is released automatically 3 USB Bus Reset If SEO state D and D is all low is kept more than 10mSEC at Host PC it perceive at EZ USB core automatically it inform this to 8051 to generate interruptINT2 Most registers aren t affected when USB Bus Reset Mainly registers related to USB data transmission are set up to initial prices EEPROM USB Bus Reset 8051 Reset Address Power ON Reset Figure 4 8 AN2131 Reset and Booting If the AN2131 is released to Power On Reset first I2C Boot Loader operates it confirm that EEPROM is connected to an external I2C bus If EEPROM operates Ack is asserted it decide according to data of EEPROM first byte how to operate If there isn t EEPROM it releases 8051 at reset so as to be able to bring a program at external program memory as inspect a state of EA pin if it is 1 VID PID DID get a value at external programs and register it to Host PC If there is EEPROM if the first byte value isn t OxBO and B2 the VID PID of 23 http www daqsystem com DAQO AN2131 registers it to Host PC to 0x0547 0x2131 8051 core is stayed with reset state USB EK01 Users Manual Rev 1 0 The Figure 4 9 shows by an action regarding booting to Flow Chart C Power On Reset Not Detected Check EEPROM Check EA Detected Addr
22. SB EKO1 combination Memory Map EA 0 If EA pin of chip is Low Level 0 the program memory use a RAM of inside AN2131 chip But if EA pin of chip is High Level 1 it use external memory area In other words it decide on whether or not there is to perform the first program to enforce in where with EA pin input state when 8051 reset OxFFFF i Note Can be programed the location by EPLD programming and DIP sw OX7FFF chhececaduiedaataheecneadag AN2131QC Internal RAMS2K id CODE or XDATA 0x2000 0x0000 cen e ec LL Figure 4 7 When USB IKO1 and USB EKO1 combination Memory Map EA 1 If EA pin of chip is High Level 1 the external memory area is not affected the RAM of inside AN2131 chip can use general memory 22 http www daqsystem com DAQO 4 3 Booting Option USB EK01 Users Manual Rev 1 0 In case of AN2131 there is three reset mode 1 Power On Reset When power on let reset state stay to EZ USB core as much as a time constant at external RC circuit until internal PLL becomes stabilization At this time a value of register inner chip become initialization to fixed prices 2 8051 Reset It exchange a value of CPUCS register at EZ USB core and can control a reset of 8051 core When Power On Reset a value of initialization is a reset state In order to get out of this state when modify through USB at Host PC when EEP
23. aS sw amp Cg USB ROOT HUB 3 ROOT_HUB20 E Cg Vid 0000 amp Pid 0000 E 5 amp dbe0e284081 Vid 045e amp Pid 0040 Vid 0547 amp Pid 0080 Vid05478Pid_1002 E Cg Vid 05478Pid 2131 Sy 58dbe0e284081 zy Control Device Parameters LogConf E Vid D5ab amp Pid 0050 3 Vid 067b amp Pid 2507 Vid 0839 amp Pid 101f Vid 090a amp Pid 1001 C3 Vid eaD amp Pid 2168 C3 Vid eaD amp Pid 5803 Vid_67128Pid_0001 3 USBSTOR Hardware Profiles 73 Services zi LA SHEEIWHKEY LOCAL MACHINEWS YS TEMWControlSet D T EnumWU SB Y Vid 05478Pid 2131 5 amp dbeQe288081 Figure 3 17 Registry Editor Window If a registry editor is used most a case it use to confirm and erase a value of key Notice If a key value want erase it can erase it at Security items as it perform regedit32 after having exchanged use authority in case of Windows2000 This concludes all installation procedure of test and development 15 http www daqsystem com 4 USB EKO1 Description 4 1 USB EKOO1 Concept A basic concept of USB EKOOI made it so that a hardware and software engineer developed it so as to easily make various tests and an engineer of various levels can utilize it In other words a person to touch a embedded program and hardware for the first time the person whom he she is familiar with other microcontroller and want to practice 8051 programming embedded USB board Firmware development USB devic
24. al block diagram we put emphasis to expansibility and a design was performed around the main AN2131QC chip All Data Address I O can exchange a board expansion can connect external device through RS232C USB I2C interface We made it so as there was a LED and Tact switch and to be able to test the simple external input output test automatically and don t need an external power supply because basically power supply get from USB cable 17 http www daqsystem com rj c e x o o lt x Board Expantion USB EK001 Addr Data I O Switchs and LEDs SCL SDA V EEPROM Figure 4 2 USB EKO1 Functional Block Diagram COM1 COM1 12C 18 http www daqsystem com DAQ c 4 2 Memory Map 4 2 1 USB EK01 8051 Memory Map Figure 4 3 shows general 8051 Microcontroller memory structure The 8051 is equipped with a memory which display inside dotted line it is different from memory which it use external data address bus OxFFFF uere 5 J XDATA CODE IDATA 0x0000 cR Uu ae a M aL ND M E OU E EET Figure 4 3 8051 Memory Map An area to be possible to direct addressing methods in the inside is from 0x00 to Ox7F address from 0x00 to Ox1F is used to the register bank O 3 which it is used when it operate at CPU BDATA is from Ox20 to Ox2F is able to the addressing in a bit
25. anual Rev 1 0 From now the board installs to a DAQ system development board so that registration works to PC Basically all test above setting even is possible a driver of DAQ system shall be install in case of the debugging that used Keil software in order to put a necessary image to a board The Vender ID which used to installation is FFFF this is not the ID which it was registered and I used it as I select temporary When Power On Reset it will act to any contents and a report judges the contents as reading the first byte of EEPROM connected to I2C If the first byte is not OxBO or OxB2 it is performed with default as judge it to things without EEPROM Vender ID 0x0547 Product ID 2131 It shall modify contents of EEPROM 5so that recognition gets a board done to a development board of DAQ system Vender ID OxFFFF Product ID 0001 For more detailed egarding boot option refer to Chapter 4 3 Booting Option A way to modify of EEPROM is as follows When press EEPROM button at EZ USB Control Panel file dialogue box appears When it is selected a file Sample eep of ProgramWEPROM IMG folder in CDROM and press open button will be changed a contents of EEPROM Ex EZ USB Control Panel Ezusb 0 loj x File Edit View Options Tools Window Help E e Sle Tart Ez usB a Fx v Cer Z Ezusb 0 Get Pipe Info gt sea Device Ezusb 0 gt Fees Loadtton Sanl GetDev Get Cont
26. classes CAboutDlg CEK001App CEKO001App InitInstance CEK001DIg bOpenDriver HANDLE phDev Ct CEK001Dig CWnd pParent NUI 19 DoDataExchange CDataExchangt OnButtonLed1 Off OnButtonLed1 Ong e OnButtonLed20Oft J e OnButtonLed2On OnlnitDialog OnPaint OnQueryDraglcon Q Ce Dae AT AIN od ali ma ClassView ResourceView sl FileView a lee 321 FF Be JH xm e m g E l SHR GH OB MGs EsmugmmwagB8egegot It Build Debug X FindinFiles 1 X Fir Figure 5 18 Programming with using Visual C This application is for the purpose of operating 32bit Windows operating systems it is essence to use Win32 API function Two functions to be important among Win32 API are as follows 1 CreateFile 2 DeviceloControl The following source shows no matter how to operate at programs two above API 43 http www daqsystem com DAO SYSTEM USB EK01 Users Manual Rev 1 0 BOOL CEK661D1g bOpenDriver HANDLE phDev CString csDeuName 4 CString csName V ww csName csDeuHame xphDeu CreateFile csName GENERIC_WRITE FILE_SHARE_WRITE NULL OPEN_EXISTING 8 NULL if xphDeu INUARLID HANDLE URLUE H return FALSE else H return TRUE H bRet DeviceloControl m_hDev IOCTL_EZUSB_BULK_WRITE amp nPipe sizeof nPipe outBuf sizeof outBuf am
27. e driver development for PC Application Programming through using USB interface at PC and we made it to use debugging practice step by step when embedded firmware development User can test all functions only using the USB EKO1 board all development tools can use it to free or evaluation type Also you can easily use because you don t need special power supply Now I will explain main connection and functions of USB EKOI board o JP2 USB EKO01 Board USB B type Connector JP7 Boare Extention O Figure 4 1 USB EKO1 Out side View 16 http www daqsystem com Table 4 1 USB EKO1 Function Description 1 SWI1 General Purpose Input 2 SW2 General Purpose Input 3 SW3 Reset 4 D1 General Purpose Output 5 D2 General Purpose Output 6 D3 Program Break Output 7 D4 Power Lamp 8 JP 1 Address Data I O extension connector 9 JP2 Extension RS232 Interface COM2 10 JP3 Extension 2C Interface 11 JP4 Extension power connector It can use to connect external power supply in case of power need a more than 500mA 12 JP5 USB B type connector Host connection 13 JP6 Power selection connector It select a power whether get from the power at USB cable or external electric power supply banner 14 IP Address Data I O extension connector 15 Pl RS232C connection it can use a debugging and general communication to maximum 115200bps Figure 4 2 shows USB EKO1 function
28. ect is Uv2 Led Slision2 EsYDEV_PRIWUSB W Program Example USB EKOI WLedwied c Ig File Edit View Project Debug Peripherals Tools SVCS Window Help la xj Bgug ve c z c euuxwmmS A Q mmeerm e nas sas sa ixl xl include lt ezusb h gt EE Target 1 define ALLOCATE_EXTERN Allocate explicit register addresses here Ey Source Group 1 include ezregs h amp led c main DWORD cnt OEA Oxff while TRUE for cnt 0 cnt lt 200000 cnt OUTA Oxff for ent 0 cnt lt 20000 cnt OUTA 0x0 E Files For Help press F1 L 14 C 1 Figure 5 9 Keil program execution window You make simply complie as you adjust ON OFF time For more information of uVision refer to Keil manual A led hex file is generated if compiled you try to perform it to download at board with using EzMr exe 33 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 Ee SETS Control Panel Ezusb 0 File Edit View Options Tools Window Help Aj eje amp iv coma Taset ez use a ex aso Trans Pipe I Anchor Do Baum Pipe RES FA ResetFpe enne F uns T2 0 amp cN Led hex 710 Te BACT HexFiles hex z EES VA For Help press F1 Figure 5 10 a way to download execution binary hex at USB EKOI The above way is a way testing a direct execution code after download t
29. ent 9 DDK Documentation amp Driver Verifier B Free Build Environment amp Getting Started Figure 5 15 Installed DDK You shall make generally compile after the first installation In other words if each environment performs it will move to the folder which installed DDK Execution build cZ total source will be compiled An expectation lead time is approximately 30 minutes If compile doesn t work normally there have a problem of installation A DDK source location is as follows amp NTDDKwWsrc wdmWusbWbulkusb amp NTDDKWsrc wdmWusbWisousb amp NTDDKWsrc wdmWhid 38 http www daqsystem com 3 Driver Compile A driver source to provide to a sample at Cypress is ezloader ezmon ezusbdrv three this It can find a Drivers folder three drivers entire source is same but there is some difference Ezmon and ezusbdrv differ in having download file or not Ezmon has keil debugger binary image download automatically usable to the debugging when registration Ezusbdrv doesn t have download binary image it register default USB only stay 8051 with reset state Most of I O routines related USB are removed in case of Ezloader the code can download when booting You had better o use a source of ezmon You can make a binary image to use first booting and have to compile it A way is as follows that you made it First the program that it is performed make by Keil compiler A result file is
30. erties gt Hardware gt Device Manager window System Properties System Restore Automatic Updates Remote General Computer Name Hardware Advanced Device Manager The Device Manager lists all the hardware devices installed on your computer Use the Device Manager to change the properties of any device Drivers TT zi ae Driver Signing lets you make sure that installed drivers are Arrange Icons By gt EY compatible with Windows Windows Update lets you set up how Windows connects to Windows Update for drivers Refresh Hardware Profiles e Shortcut g Hardware profiles provide a way for you to set up and store different hardware configurations Hardware Profiles NVIDIA Control Panel Properties Figure 3 3 Select My computer Properties Device Manager File Action View Help e E m amp gr mma Ge Keyboards Mice and other pointing devices g Monitors HB Network adapters 1 Ports COM amp LPT 8 Processors 3 8 Sound video and game controllers See Storage volumes H d System devices g Universal Serial Bus controllers Intel R 82801G ICH Family USB Universal Host Controller 27C8 Intel R 82801G ICH Family USB Universal Host Controller 27C9 Intel R 82801G ICH Family USB Universal Host Controller 27CA Intel R 82801G ICH Family USB Universal Host Controller 27CB 01G ICH Family USB2 Enhanced Host Contro
31. ess 0 0xBO VID EEPROM 1 2 Bytes VID EEPROM 1 2 Bytes VID 0x0547 Cypress VID from Program code PID EEPROM 3 4 Bytes PID EEPROM 3 4 Bytes PID 0x2131 EZ USB chip PID from Program code Program code from 8051 remains in Reset 8051 remains in Reset Program code from external EEPROM Program code may be Program code may be CODE memory area Release 8051 from Reset loaded from host loaded from host Release 8051 from Reset Figure 4 9 AN2131 Booting Sequence Below contents shows a sample of EEPROM For more special information refer to 5 4 EEPROM Image making part In case of OxBO ex 1 0000h BO 47 05 80 00 00 OO Refer to 2100 iic of Cypress ezmon sys driver is used VID 0547 PID 0080 24 http www daqsystem com DAQO USB EK01 Users Manual Rev 1 0 ex 220000h BO FF FF 01 00 00 OO Refer to sample eep daqusb sys driver is used VID FFFF PID 0001 In case of OxB2 refer to fw out eep 0000h B2 FF FF 01 00 0000 In case of others it is not OxBO or B2 ezusb sys driver is used VID 0547 PID 2131 4 4 CDROM Folder description The structure and explanation of folder is as follows E amp DAQ sys Fi Document 5 Hardware C3 USB EKUI C3 USB IKO1 SoftWare C3 Application 3 7 EK0DI C Driver dag drv H dagmon O EPROM IMG C Example 2 USB EKDI C3 USB IKO1 H E Ezusbfw C Utility o D a m 0 H
32. hrough USB connection a way of debugging with serial communication is as follows As the debugging uses a serial communication COM1 at board you cannot use it with comm exe program at the same time If using com2 at board after being load with a mon int siol hex monitor program to a board you shall use it as making JP2 of a board and the separate cable which can connect The cable connection is as follows 5264 03 DSUB 9pin 1 3 2 2 3 5 1 4 6 7 8 9 Figure 5 11 COM2 Cable connection 34 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 And it uses a communication speed to 19200bps in the debugging mode For the following Dialog box to appear a setting way if you perform a menu Targetl at Project Option for Target you set it up to press a setting button as you select a debug tab Led glision2 EADEV_PRJWUSBWProgramiWExamplewUSB EKOI WLedwied c xl Eile Edit View Project Debug Peripherals Tools SVCS Window Help la x JasO 98 525 uwwmmS allaa lnm sere Has s include lt ezusb h gt define ALLOCATE_EXTERN Allocate explicit register addresses here include lt ezrens h gt Target Output Listing C51 AS BLS Locate BL51 Misc Debug C Use Simulator Use Keil Monitor 51 Driver v Settings Load Application at Startup Go till main Iv Load Application at Startup Go till mai
33. ile to perform at boards If file transmission is completed a program loaded is newly performed at microcontroller automatically as it make reset of 8051 core at EZ USB Control Panel program If it is loaded file at once it use to press ReLoad button as it is remembering information of a file loaded next time At this time file dialogue box don t appear F EZ USB Control Panel Ezusb 0 2 inl x File Edit View Options Tools Window Help By e amp nar TarsetfEz usB a rx Cer Get Pipe Info P send Device Ezusb 0 Fees Loadtion fas GetDew Get Cont GetFipes Getting Download a EEPROM URB stat Hoo Fun T Pipe Anchor Do meum Pipe AAO ate 3 emekE nese eeel E RD Anl xl ure O S N Led hex go Te SA HexFiles hex E Z4 z _ ae ZA For Help press F1 Figure 5 3 A way downloading an executable file hex to USB EKOI 21 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 lt LED lighting test gt You can find a file which it is used to test in folder of SoftwareWExampleWUSB EKO1WLed at CDROM and test to download led hex After execution a LED D1 and D2 in the red circle repeat alternately lighting and lights out fani tipps Figure 5 4 LED lighting test 28 http www daqsystem com DAG SYSTEM USB EK01 Users Manual Rev 1 0 lt Serial communication test gt You can find a file which it is
34. indow If installation finish you confirm a registration state that you perform regedit exe at Window All contents registered to OS Windows that is saving to PC stored contents and revised program that can edit it is an registry editor regedit exe 14 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 At display of Start Execution write regedit and press Confirm button SIO aa aD Figure 3 16 Start Execution Window AASER BEC 27V SARIE TEH Bu ase 38 GIOVE C3 HKEY_CLASSES_ROOT E REG SZ gt AB oral C3 HKEY CURRENT USER ed REG DWORD 0x00000084 132 S HKEV LOCAL MACHINE fai Class REG SZ USB C3 HARDWARE ab ClassGUID REG_SZ 36FC9E60 C 485 1 1CF 8056 444553540000 a SEM ab CompatiblelDs REG MULTLSZ USBWClass ffaSubClass ff amp Prot ff USEWClass ffaSubClass ff USBWClass f STARE Ra ConfigFlags REG DWORD Ox00000000 0 3 SYSTEM ab DeviceDesc REG_SZ Cypress EZ USB 21310 21318 21358 EEPROM missing S C ControlSet00 ab Driver REG SZ 436FCSEBO C4B5 11CF 8056 444553540000 0015 E Contro ab HardwarelD REG MULTLSZ USBW Vid_05478Pid_21318Rev_0004 USB Vid 0b478Pid 2131 a Enum ab LocationInforrnation REG_SZ USB Device 3 ACPI lab Mig REG_SZ Cypress Semiconductor E ACPLHAL ab Service REG SZ EZUSB H E DISPLAY Ca HD eC HTREE C3 IDE IBAPNP PCI G PCIIDE H A Root C3 STORAGE
35. ller 27CC USB Mass Storage Device USB Root Hub USB Root Hub USB Root Hub USB Root Hub USB Root Hub Figure 3 4 Device Manager window 7 http www daqsystem com DAO SYSTEM USB EK01 Users Manual Rev 1 0 Figure 3 4 shows that Device Manager execution window You can check all USB device connection at your PC Currently not yet connect USB EKO1l it is not marked Xt i111 GNSSSEESEEEEEIIII i Figure 3 5 USB EKO1 Connection The USB EKOI is connected to PC through USB cable after jumper setting like above red circle The reason of using jumper is that an address of EEPROM 24LC64 is able to recognize it at AN2131 AN2131 is having function of EEPROM information to connect I2C port can select a lot of booting option when Power On Booting Usable EEPROM is same as the following table to a board booting option Refer to 2C Boot Loader of AN2131 manual for special information Bytes EEPROM A2 Al AO 16 24LCOO N A N A N A 128 24LCO1 0 0 0 256 24LCO2 0 0 0 AK 24LC32 0 0 1 8K 24LC64 0 0 1 When it is connected to USB cable New Hardware Search Wizard execute automatically you can check the USB device at Device Manager It don t require another driver because of Cypress Development Kit was installed Figure 3 6 will be shown after completely installation An EEPROM information of board is as follows at default whe
36. n first purchase 0000h BO 47 05 80 00 00 00 Refer to file 2100 iic at Cypress That is Using VID Vender ID 0x547 PID Product ID 0x80 in EEPROM will be registered to PC in an USB device 8 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 HAW e gt B9 Lj E S13 HHE L 23 cge L Ze HHE 3 OS S VIE SE Sal SUA Biz aaa WA Hwee Cypress EZ USB Development Board Intel r 82801DB DBM USB Enhanced Host Controller Intel R 82801DB DBM USB Universal Host Controller 24C2 Intel R 82801DB DBM USB Universal Host Controller 24C4 Intel R 82801DB DBM USB Universal Host Controller 24C7 USB 20 E qe USB E qs USB FE qe i USB FE 6H Qi ASS HOS 8 We re Sel S sooo Ee e 9 EE COM 8 LPT Bg amp C UEMA BHI AE Figure 3 6 A board was registered with default to PC If the jumper don t connect the screen is as follows The way that you can confirm after remove jumper reset switch of a board is ON OFF or reconnect a USB cable after remove For more specific information refer to Chapter 4 3 Booting Option 83A 1M e 8s Ed 9 2 B3 Li ESI HHE amp L 3 Seo au L Sel O ASH 3 OSA S IAE SVE SEX SUA He ale WA HES Cypress EZ USB 21310 21318 21358 EEPROM missing Intel r 82801DB DBM USB Enhanced Host Controller Intel R 82801DB DBM USB Universal
37. ni Initialization File Target Setup m Comm Port Settings Cache Options Restore Debug Sessi Port Com 1 v Cache DATA SFR Iv Breakpoints Baudrate T3200 z IV Cache IDATA ox I Watchpoints amp F Iv Memory Display Stop Program Execution with pd cxt v Serial Interrupt v Cache CODE CPU DLL Paral Jsgerpt p i Cancel Dialog DLL Parameter JDP5i DLL frpanei Dialog DLL Parameter TP51 DLL 52 B Files S re Figure 5 12 Keil Debugging setup windowl1 And you shall use the monitor driver which isn t a default driver of DAQ in case of the debugging At this time you test it as you perform it after confirming contents of a cpdaqmon bat file of a Driver folder You perform it after disconnecting a board with PC when you use batch command In the state that loading became a project and press button like figure 5 9 a screen will be changed by operating debugger like figure 5 12 From here you can test the debugging step by step You can confirm CPU register memory data assembly nicmonic etc and adjustment is possible in case of the debugging Detailed program usage should refer to a Keil Manual 35 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 File Edit View Project me Peripherals Tools SVCS Window Help Jasug se c 4 7S Ye ES alal a oem m S amp O amp 9 0 0 zo
38. p nByte NULL For more information refer to EZ USB General Purpose Driver Spec pdf Figure 5 10 is an execution screen of the last application finished When a program execute a device searches for connection at PC If it does not find it closed automatically If it success to find the program is performed 44 http www daqsystem com EDFA GD ssa h q A A Figure 5 19 Completed Application Program When an action of a program processes an ON OFF button of a above screen LED D1 D2 of board fits it on the button and repeat ON OFF Also if it press a switch in the blue circle of USB EKO1 LED D1 D2 repeat ON OFF This contents transfer automatically and it is appeared to LED output of an application Vd REVEEEEEDETTT Figure 5 20 Application Interlock Test 45 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 Appendix A Driver Installation and Remove lt Driver Installation gt If a device PCI USB etc supporting Plug and Play is connected in a system PC to make Enumeration at OS as using device ID VID and product ID PID At this time if it is found a driver to fit in a device at registry it is loaded with a relevant driver Otherwise For example the first device in case of installation a hardware installation wizard lets execution Refer to 3 3 Board Driver Installation and a device will be registered at PC lt Driver Removal gt It freq
39. pe Connector JP7 Boare Extention Figure 1 1 USB EKO1 Out side View Above picture views board out side it display Reset switch and Power LED which light on when power supply with connection cable More specific information refer to 4 1 USB EKOI Concept 3 http www daqsystem com 2 USB EKO1 Function amp Specification lt Function gt USB Protocol Test amp Development 8051 Program Test amp Development PC amp USB device driver Test amp Development Step by Step Debugging Practice lt Specification gt Full speed 12Mbps USB Support Advanced using 8051 core Micro Controller Convenient Interface USB SIE Serial Interface Engine Step by Step Debugging amp 8051 Compile Test Code size limited 4K Power Supply through USB Cable Max 500mA Two RS232 interface Maximum transfer speed 115200bps Debugging or It can use special purpose Board Reset amp Firmware Program Load through USB Easy device development through Cypress9 Development Kit Usable evaluation Keil Compiler amp Debugger Limit 4K code 4 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 3 Installation 3 1 Confirm Product Contents i i n6 Gi RUE S 351 V ed i Eme 14 mi v Figure 3 1 USB EKO1 Main Contents 1 USB EKO1 Evaluation board 2 USB A
40. rce Group 1 FW C PERIPH C DSCR A51 Ezusb lib rseg DSCR DeviceDscr locate the descriptor table in db deviceDscrEnd DeviceDscr 22 Descri 2 USBJmpTb OBJ db DSCR DEVICE Decriptor type dw 0001H Specification Version BCD db 00H Device class db 00H Device sub class db 00H Device sub sub class db 64 Maximum packet size Manufacturer string index Product string index Serial number string index Number of configurations deviceDscrEnd Ey Fies For Help press F1 Figure 5 14 VID PIC Modify For more detailed usage and contents refer to Anchor Firmware FW pdf file 37 http www daqsystem com DAQ syscem USB EK01 Users Manual Rev 1 0 5 4 Make USB PC driver DDK Driver Development Kit shall be installed to PC in order to make a driver for Win32 Usable DDK is Windows 98 2000 me Before DDK installation Visual C shall be installed more than version 5 0 The environmental setting order that can be made from a driver is as follows 1 Visual C Installation 2 DDK Installation You can see a figure 5 15 after finished installation Checked build environment is a compile environment which involved a debugging information and it is used in case of development Free build environment is used a driver for distribution d 53 Debugging Tools gt B Checked 64 Bit Build Environment Bil Checked Build Environm
41. uently occur to modify a driver and exchange ID of a device when it development the work that shall remove a driver of the device which I was registered It shall modify a registry at this time a registry can cause a fatal error if it modifies wrong as it is putting all information of a Microsoft Windows Reference when a registry removal Windows98 and 2000 XP use all different a value of registry key You shall have elimination authority at Windows2000 in order to delete a key value Administrator cannot delete freely it Windows2000 has two registry editors It is a Regedit exe and regedt32 exe You can see a screen like the following figure in order to get elimination authority if you perform regedt32 exe you shall erase a key value in Security menu as you select user authority after selecting all authority MASE BEE EBD WAV REP EAU MW 5 AWOD Capabilinos REG DWORD Md4 Class REG_SZ ClassGUID RE BF CSE 60 C465 1 1 CF 8055 44455354000 2 USBWClass Mf amp SubClass ff amp Prot f USBWClass_f amp SubC d CF 8055 444553540000 0016 id MS Pid 0001 amp Fiev 0000 USB Vevid med 0001 eb amp Fid 0060 7b amp Pid 2507 05 06 E Vid_08398Pid_101t C3 vid 6712 amp f d 0001 C vid merid 0001 Up ssabeuezasox1 lt A AS OR 46 http www daqsystem com DAO SYSTEM USB EK01 Users Manual Rev 1 0 Above two executable file is unified at the Windows XP also you shall erase a key value in Securit
42. usb 0 amp Get Pipe Info J sea Device Ezusb 0 gt Forel GetDev Get Cont GetPipes Getting Download e URE stat VendReq Req Valud0x0000 IndeX0xBEEF Length16 ES Trans Pipe EEPROM Download n Pipe HE AA rom images ResetFipe AbortFipe Bi a 2200 24Mhaz iic EZ USB Control 2200 48Mhz iic Get PipeInfo jas 2200Memtest iic Interface Size makeprom bat 5 readme txt ure orgy 2100 iic 710 TH BA AllFiles z ala L8 za For Help press F1 Figure 5 17 EEPROM download image 42 http www daqsystem com DAO SYSTEM 5 6 Application Program for PC USB EK01 Users Manual Rev 1 0 There are a lot of tools and methods to make application for PC we used a way to make it with using Visual C of Microsoft at this manual A way to be the best in case of programming individual engineer is the best to use a tool that it is familiar and comfortable If you are seen source of a device driver EZ USB device is registered to Host PC for symbolic names of ezusb i The i is created according to device order registered Figure 5 19 show that a programming with using Visual C you can find a source at Software application folder in CDROM EK001 Microsoft Visual C EKOO1 re IDD_EKO01_DIALOG Dialog o xi E Eile Edit view Insert Project Build Tools Window Help lal xi als mgr ce c c mmwmWemdcnv Ala 5 EK001
43. used to test in folder of SoftwareWExampleWUSB EKO1WsSerial at CDROM and test to download serial hex For a RS232 communication program is used to a test the program that it is used most is Windows HyperTerminal But we used the comml which was the communication program that it made at DAQ system The USB EKOI connects to PC with RS232 cable and executes program comm exe This program can find in Utility folder at CDROM First it fit communication setting Baudrate Stop bits Data bits Parity etc at program We use COMI like a picture we use a setup value that 38400bps 8 data bit 1 Stop bit Parity None The program perform to download at the board it send repeatedly an ASCII character like the following picture and display at PC program O x File Edit View Cofig Command Misc Help Diae tal ESLA amp X si cual es e alalim Le S E 0123456789 lt gt 2HABCDEFGHIJKLMNOPORSTUVUXYZ N lessee 0123456789 lt gt 2H ABCDEFGHIJKLMNOPORSTUVUXYZ _ Ing 5 amp 0123456789 lt gt ABCDEFGHIJKLMNOPORSTUVUXYZ _ Ing 5 amp 0123456789 lt gt ABCDEFGHIJKLMNOPORSTUVUXYZ _ tegsse 0123456789 lt gt ABCDEFGHIJKLMNOPORSTUVUXYZ _ lessee 0123456789 lt gt 2HABCDEFGHIJELMNOPQRSTUVUXYZ N I g 5 amp 0123456789 lt gt ABCDEFGHIJKLMNOPORSTUVUXYZ _ I g 5 amp 0123456789
44. vers jan fw Opt OPT TH 2002 09 16 Examples fw plg HTML Document 2004 12 24 e2811 a fw pri PRJ ure 2002 09 16 Hardware t fw Uv uVision2 Project 2002 09 16 C3 Target periph c C ug 2002 09 16 E Fw readme txt HAE BM 2002 09 16 cm FX Inc Lib O LoadExt Monitor Util C Documents and Settings mf Keil 4 4 gt 11 2034 OLAS AS 2E 115GB 31 2KB B LH ZZE A Figure 5 13 Firmware source folder 36 http www daqsystem com If double clicks fw Uv2 at the above screen the project is opened at Keil program as like below picture See the figure 5 14 A file used 5 fw c periph c dscr a51 ezusb lib usbjmptb obj VID PID and string table which it is used USB device registration can find at DSCR A51 Assembly Source Code and it can modify Most of application code modify at Periph c and can use USBJmpTb OBJ is object code But it can find in TargetWlib folder with a source form and can use Ezusb lib can modify and use to fit the developers d ST CER argetFwiEzusb DSCR amp 51 lol xl iB File Edit View Project Debug Peripherals Tools SVCS Window Help le xj ASHE tee LNe fee4 2 6 aos eh l kedi mp e F5 em eme xmas 5 2 xi EE Target 1 Eg Sou
45. xxx hex The binary image that it was used when it made a daqmon sys driver used a Keil debugger monitor mon int sioO hex The reason that I used I want use an image to use internal memory and COMIto a debugging port And let you convert hex output by source c source code as you use hex2c utility hex2c exe mon int sioO hex mon int sio0 c You make compile as you copy the source which let you convert it to mond lhi c A screen that it is compiled is as follows d Build Environment New updated MSUC detected Updating DDK environment Setting environment for using Microsoft Visual C tools Starting dirs creation Completed C WNTDDK e E gt cd Progranttdriveridaqmon E Progran Driverttdaqmon gt build c Figure 5 16 Device Driver Compile 39 http www daqsystem com DAQ SYSTEM USB EK01 Users Manual Rev 1 0 Basic source of all WDM drivers is as follows DriverEntryO CallBack Routine Registration amp AddDevice DriverObject Creation Symbolic linkname Registration TopOfStackObject Get amp PnP Process Power Pnp Relevant Facts Process USB Descriptor Get Pipe Information Get Device Remove Routine User I O Request Process CreateFileO CloseHandleO ReadFileQ WriteFileO DeviceloControlO etc Wind32 functional call process 5 5 Make EEPROM Image As I explained it at 4 3 booting option if the AN2131 is released to Power On Reset first I2C Boot
46. y menu as you select user authority after selecting all authority Registry key and file which you shall erase are as follows 1 A key value of Vid xxxx amp Pid xxxx is made to Vender ID and Product ID at HKLMWSYSTEMWCurrentControlSetWEnumWUSBW Currently used control set save to CurrentControlSet key it store before control set to ControlSet001 and ControlSet002 and a registry can restore in case of the error occurrence at Windows The ControlSet001 and ControlSet002 shall erase it according to cases 2 It erase a value which it is registered to class in HKLMWSYSTEMWCurrent ControlSetWControlWClassW 36FC9E60 C465 11CF 8056 444553540000 A class ID 36FC9E60 C465 11CF 8056 444553540000 is a value of USB Universal Serial Bus be RN EE eee AASE BSE SW SARI Seah a SYSTEM 4 ole FINIE a ControlSet001 LEE 3 38 HERD a ControlSet002 b Class USB a CurrentControlSet ab lcon 20 Control C3 Arbiters a BackupRestore ab NolnstallClass 1 3 Biosinfo E BootVerificationProgram Class Em Ei sor C 3EBU C 465 1 1CF 8056 44455354 0000 0000 C3 0001 0002 0003 3 0004 3 0005 0006 C3 0007 3 0008 0009 0010 C3 oo 0012 0013 C3 0014 3 0015 amp 0016 C3 0017 0018 3 4D36E965 E325 11CE BFC 1 08002BE 10318 m 4D36E966 E925 11CE BFC1 08002BE 10318 w 4D35E957 E325 11CE BFC1 08002BE 10318
Download Pdf Manuals
Related Search
Related Contents
POSTraining - SunrisePOS and More, Inc. MSB Technology DVD Audio Player User's Manual 取扱説明書 PN401B-JP Operating Instructions KATflow 200 Manual del usuario - produktinfo.conrad.com here - CLC bio MANUAL DE MONTAJE / MANUAL DEL USUARIO Este Compact Joystick Advanced, CJA R-net 1. General Copyright © All rights reserved.
Failed to retrieve file