WinUSB_Bulk

所属分类:单片机开发
开发工具:C/C++
文件大小:5919KB
下载次数:46
上传日期:2014-11-12 14:15:38
上 传 者zhengdongsheng
说明:  C8051F340单片机 USB批量传输整个工程代码
(C8051F340 Bulk transfers the whole project code)

文件列表:
WinUSB_Bulk\Driver\amd64\WdfCoInstaller01009.dll (1721576, 2013-12-02)
WinUSB_Bulk\Driver\amd64\winusbcoinstaller2.dll (1002728, 2013-12-02)
WinUSB_Bulk\Driver\dpinst_x64.exe (1040384, 2013-12-02)
WinUSB_Bulk\Driver\dpinst_x86.exe (914944, 2013-12-02)
WinUSB_Bulk\Driver\i386\WdfCoInstaller01009.dll (1461992, 2013-12-02)
WinUSB_Bulk\Driver\i386\winusbcoinstaller2.dll (851176, 2013-12-02)
WinUSB_Bulk\Driver\PreInstall\installcert.bat (183, 2013-12-02)
WinUSB_Bulk\Driver\PreInstall\silabs.cer (1403, 2013-12-02)
WinUSB_Bulk\Driver\slab_winusb_bulk.cat (10553, 2013-12-02)
WinUSB_Bulk\Driver\SLAB_WinUSB_Bulk.inf (2603, 2013-12-02)
WinUSB_Bulk\Firmware\c8051f3xx.h (3829, 2013-12-02)
WinUSB_Bulk\Firmware\F340_USB0_Bulk.c (9317, 2013-12-02)
WinUSB_Bulk\Firmware\F340_USB0_Bulk.wsp (42810, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_Flash.c (5540, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_Flash.h (1205, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_Bulk.h (1248, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_Descriptor.c (5210, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_Descriptor.h (5437, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_InterruptServiceRoutine.c (21869, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_InterruptServiceRoutine.h (5977, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_Main.c (12102, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_Main.h (2417, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_Register.h (5002, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_Standard_Requests.c (19928, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_Standard_Requests.h (1348, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_Vendor_Requests.c (3797, 2013-12-02)
WinUSB_Bulk\Firmware\F3xx_USB0_Vendor_Requests.h (1483, 2013-12-02)
WinUSB_Bulk\Host Application Source\CriticalSectionLock.h (760, 2013-12-02)
WinUSB_Bulk\Host Application Source\DeviceInformation.cpp (7790, 2013-12-02)
WinUSB_Bulk\Host Application Source\DeviceInformation.h (1535, 2013-12-02)
WinUSB_Bulk\Host Application Source\FileTransferDevice.cpp (10407, 2013-12-02)
WinUSB_Bulk\Host Application Source\FileTransferDevice.h (2252, 2013-12-02)
WinUSB_Bulk\Host Application Source\FileUtils.cpp (4138, 2013-12-02)
WinUSB_Bulk\Host Application Source\FileUtils.h (956, 2013-12-02)
WinUSB_Bulk\Host Application Source\Release\SLAB_USB_Bulk.exe (1735168, 2013-12-02)
WinUSB_Bulk\Host Application Source\res\SLAB_USB_Bulk.ico (2238, 2013-12-02)
WinUSB_Bulk\Host Application Source\res\SLAB_USB_Bulk.rc2 (810, 2013-12-02)
WinUSB_Bulk\Host Application Source\resource.h (5422, 2013-12-02)
... ...

-------------------------------------------------- USB Bulk Example Readme File Copyright (C) 2012 Silicon Laboratories, Inc. -------------------------------------------------- 1.0 COMPONENTS ----------------------- This release contains the following components: * USB Bulk Driver (WinUSB) * USB Bulk Firmware Example * Host Application (SLAB_USB_Bulk.exe) * Host Application Source Last updated: 05 NOV 2012 2.0 Running the Example on the C8051F340 target board ----------------------------------------------------- 1) Connect the hardware: a) Connect the target board to a PC through a Debug Adapter. b) Install shorting blocks at the following positions: J12[5-6] (P2.2 LED) and J12[7-8] (P2.3 LED). c) Connect a USB cable between the target device and the host PC. 2) Build and download the Bulk Example firmware: a) Open the Silicon Laboratories IDE (v1.72 or later). b) Open the Connection Options window by selecting Options-> Connection Options... in the IDE menus. In the Debug Interface section, select C2. c) Connect to the target C8051F34x device (Alt+C, or IDE menu Debug->Connect). d) From the Project menu, select "Open Project" and browse to the Bulk Example Firware project "F340_USB0_Bulk.wsp", located by default in the "Silabs\MCU\Examples\C8051F34x\USB_Bulk\Firmware" directory. e) Build the project (F7, or through IDE menu Project->Build/Make Project). f) Download the firmware (Alt+D). 3) Run the Bulk Example firmware: a) In the IDE, Run the firmware (F5, or IDE menu Debug->Go). b) When Windows detects the device and the driver installation wizard opens: a. Choose "Search for a suitable driver for my device", and click Next. b. Check the box "Specify a location", and click Next. c. Browse to directory ..\Driver and select the file SLAB_USB_Bulk.inf, and click OK. d. Follow the dialogue to finish driver installation. c) Once the firmware has been downloaded and is running, the IDE is no longer needed. Disconnect from the target device with the IDE and press the Reset button on the Target Board. 4) Run the Bulk Example host application: a) Run the SLAB_USB_Bulk.exe application located by default in the "Silabs\MCU\Examples\C8051F34x\USB_Bulk" directory. b) The USB Bulk Example application will display the current USB devices connected to the PC. Select the device to be used for the example and open the device. c) Select a file to send by entering the file path into the File Path edit box or click the browse button to select a file. d) Press the Send button to transfer the selected file to the device e) Select a folder to receive the file by enetering the folder into the Folder Path edit box or click the browse button to select a folder. f) Press the Receive button to transfer a file from the device to the selected folder. g) LED1 indicates a read is in progress, LED2 indicates a write is in progress. 3.0 Building the PC Application ------------------------------- The PC application requires libraries for setupapi.lib and winusb.lib from the Windows DDK. Please download the latest Windows DDK (or WDK) from Microsoft. By default, the project has been configured to build from the Windows DDK installed to C:\WINDDK\7600.16385.1. To build using a different Windows DDK path, update the following directories: 1. Under Project->Properties->C/C++->General, update the "Additional Include directories" text box for the new path. 2. In DeviceInformation.cpp, update the #pragma comment (lib, ...) line using the new path to setupapi.lib. 3. In WinUsbDevice.cpp, update the #pragma comment (lib, ...) line using the new path to winusb.lib. 4.0 REVISION HISTORY --------------------- Version 2.0 Rewrite.

近期下载者

相关文件


收藏者