单片机C8051F320 USB Low Speed/Full Speed 问题

 单片机C8051F320 USB Low Speed/Full Speed 问题

   我的目的是要单片机运行在USB 1.0 也就是USB2.0的低速状态,如果是选择全速,一切运行正常,如果选择低速,win7上就显示UnKnow device 错误代码10,如果在XP上运行,一切正常,经过我仔细查找发现关键就在这段代码,

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
-------------------------------------------------- USB Bulk Example Readme File Copyright (C) 2005 Silicon Laboratories, Inc. -------------------------------------------------- This release contains the following components: * USB Bulk Driver Example * USB Bulk Firmware Example * Host Application (F32x_BulkFileTransfer.exe) * Host Application Source Last updated: 25 MAY 2005 Running the Example on the C8051F32x 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: J3[1-2] (P2.0 Switch), J3[3-4] (P2.1 Switch), J3[5-6] (P2.2 LED), J3[7-8] (P2.3 LED), J9 (P0.2), J10 (P0.3) and J13 (P1.7 Potentiometer). c) Connect a USB cable between the target device and the host PC. d) To power the target board from an wall-powered source, place a shorting block at J2 and NO shorting block at J11. Next, connect a DC power adapter to the target board at P1. e) To power the target board from the USB bus, place a shorting block on the target board at J11 and NO shorting block on J2. 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 C8051F32x device (Alt+C, or IDE menu Debug->Connect). d) From the Project menu, select "Open Project" and browse to the Bulk Example Firware project "BulkFirmware.wsp", located by default in the "Silabs\MCU\Examples\C8051F32x\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 ..\USB_Bulk and select the file SilabsBulk.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 F32x_BulkFileTransfer.exe application located by default in the "Silabs\MCU\Examples\C8051F32x\USB_Bulk" directory. b) The F32x_BulkFileTransfer application will display the current USB devices connected to the PC. Select the device to be used for the file transfer. c) Select file names for Transferring or Receiving data.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值