USBXpress
所属分类:USB编程
开发工具:Visual C++
文件大小:7614KB
下载次数:307
上传日期:2009-04-21 09:47:05
上 传 者:
zy3328093
说明: 上位机与下位机的USB通讯,下位机采用新华龙的F340。实现了上位机与下位机的握手,可批量传送数据。
(Host computer with the USB drive the next digital communications, the next crew of the new hualong F340. Achieved with the lower PC handshake machine can transmit data volume.)
文件列表:
USBXpress\Utilities\CP210x Set IDs\AN144SW\CP210xManufacturing.dll (90112, 2007-07-09)
USBXpress\Utilities\CP210x Set IDs\AN144SW\CP210xManufacturing.lib (15194, 2007-07-09)
USBXpress\Utilities\CP210x Set IDs\AN144SW\CP210xManufacturingDLL.h (6781, 2007-07-09)
USBXpress\Utilities\CP210x Set IDs\AN144SW\CP210xSetIDs.exe (221184, 2007-07-09)
USBXpress\Utilities\CP210x Set IDs\AN144SW\CP210xSetIDs_SRC.zip (57612, 2007-07-09)
USBXpress\Utilities\CP210x Set IDs\AN144SW\ReleaseNotes.txt (2139, 2007-07-09)
USBXpress\Utilities\CP210x Set IDs\AN144_CP210x_Device_Customization_Guide.pdf (375581, 2007-08-31)
USBXpress\USBXpress_API\Host\SiUSBXp.dll (90112, 2007-08-31)
USBXpress\USBXpress_API\Host\SiUSBXp.exp (3698, 2007-08-31)
USBXpress\USBXpress_API\Host\SiUSBXp.h (5130, 2007-08-31)
USBXpress\USBXpress_API\Host\SiUSBXp.lib (6772, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F34x\c8051F340.h (16486, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F34x\UpgradeNotes.txt (2035, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F34x\USBX_F34X.LIB (16395, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F34x\USBX_F34X_LIB.txt (3148, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F34x\USB_API.h (2701, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F32x\c8051F320.h (16194, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F32x\UpgradeNotes.txt (2035, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F32x\USBX_F320_1.LIB (16395, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F32x\USBX_F320_1_LIB.txt (3167, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F32x\USB_API.h (2701, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F326_7\c8051F326.h (7870, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F326_7\USBX_F326_7.LIB (16050, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F326_7\USBX_F326_7_LIB.txt (3062, 2007-08-31)
USBXpress\USBXpress_API\Device\C8051F326_7\USB_API.h (2701, 2007-08-31)
USBXpress\Examples\TestPanel\Host\VC6\Source\3DMeterCtrl.cpp (15046, 2007-08-31)
USBXpress\Examples\TestPanel\Host\VC6\Source\3DMeterCtrl.h (2454, 2007-08-31)
USBXpress\Examples\TestPanel\Host\VC6\Source\DynamicLED.cpp (11790, 2007-08-31)
USBXpress\Examples\TestPanel\Host\VC6\Source\DynamicLED.h (2301, 2007-08-31)
USBXpress\Examples\TestPanel\Host\VC6\Source\DynLED.h (1182, 2007-08-31)
USBXpress\Examples\TestPanel\Host\VC6\Source\MemDC.h (3284, 2007-08-31)
USBXpress\Examples\TestPanel\Host\VC6\Source\res\TestPanel.ico (3262, 2007-08-31)
USBXpress\Examples\TestPanel\Host\VC6\Source\res\TestPanel.rc2 (399, 2007-08-31)
USBXpress\Examples\TestPanel\Host\VC6\Source\res\未命名1.bmp (381654, 2009-03-02)
USBXpress\Examples\TestPanel\Host\VC6\Source\res\1.bmp (505350, 2009-03-05)
USBXpress\Examples\TestPanel\Host\VC6\Source\res\toolbar1.bmp (2166, 2009-03-05)
USBXpress\Examples\TestPanel\Host\VC6\Source\TestPanel1.h (1176, 2009-03-04)
USBXpress\Examples\TestPanel\Host\VC6\Source\TestPanel.rc (9684, 2009-03-11)
USBXpress\Examples\TestPanel\Host\VC6\Source\TestPanel.opt (621568, 2009-03-12)
USBXpress\Examples\TestPanel\Host\VC6\Source\TestPanel.aps (931084, 2009-03-11)
... ...
--------------------------------------------------
USBXpress Development Kit v3.1 Readme File
Copyright (C) 2007 Silicon Laboratories, Inc.
--------------------------------------------------
The default installation directory for the USBXpress Development kit is:
C:\Silabs\MCU\USBXpress\
Refer to AN169.pdf "USBXpress Programmer's Guide" for more documentation.
Installing the Driver [Relevant Devices: CP2101/2/3]:
Operating Systems: Windows 2000/XP/Server 2003/Vista
- This procedure assumes that you have a CP210x device with factory
VID (0x10C4) and PID (0xEA60).
- Install the device as instructed in your CP210x Evaluation Kit
along with the Virtual Serial Port Drivers.
- Run USBXpressInstaller.exe included in this USBXpress package. Click
'Continue Anyway' if prompted.
- Use the CP210xSetIDs.exe program to change the PID to 0xEA61.
- When Windows brings up the the "New Hardware" wizard, choose
the default option marked "Recommended" and click 'Next'.
- Click 'Continue Anyway' if prompted. Click 'Finish' to complete
the installation.
- To verify, check in "Device Manager" under 'Universal Serial Bus
Controllers'. There should be an entry for 'USBXpress Device'.
Installing the Driver [Relevant Devices: C8051F320/1/6/7, 'F340/1/2/3/4/5/6/7]:
Operating Systems: Windows 2000/XP/Server 2003/Vista
- Run USBXpressInstaller.exe included in this USBXpress package.
- Connect the USB cable between the host computer and the C8051F320
target board.
- Make sure that the 'F3xx device firmware has a call to USB_Init
with VID=0x10C4 and PID=0xEA61 (see example projects in this package).
- To verify, check in "Device Manager" under 'Universal Serial Bus
Controllers'. There should be an entry for 'USBXpress Device'.
Using the Host examples:
NOTE: Make sure that the DLL is included in the same directory as the executable,
and that the LIB file and DLL are included in the project to successfully build the
examples.
FileTransfer (Visual C++) [Relevant Devices: C8051F320/1/6/7, 'F340/1/2/3/4/5/6/7]:
- Setup target device for this example as described in the "Using
the Device Examples" section.
- Run ...\USBXpress\Examples\FilesTransfer\Host\VC6\FileTransfer.exe
- Select a device in the "Select Device" list or use the default.
- Select a file < 10k in size by using the Browse button next to
the "Transfer File Name" edit box. This will be the file transfered
to the device and stored in flash.
- Select a file name to receive data from a device in the "Receive
File Name" edit box.
- Transfer file to the selected device by pressing the "Transfer
Data" button.
- To receive data previously sent to a device press the "Receive
Data" button.
- Devices can be switched while the program is running. To update
the list of connected devices, press the "Update Device List" button.
TestPanel (Visual C++) [Relevant Devices: C8051F320/1, 'F340/1/2/3/4/5/6/7]:
- Setup target device for this example as described in the "Using
the Device Examples" section.
- Run ...\USBXpress\Examples\TestPanel\Host\VC6\TestPanel.exe
- Select a device in the "Select Device" list or use the default.
- Press the buttons or move the potentiometer on the device to see
feedback in the application.
- Check and uncheck the LED buttons to see feedback on the device
when the LEDs turn on and off.
CP210xTest (Visual C++) [Relevant Devices: CP2101/2/3]:
- Setup a CP210xEK device by installing USBXpress driver as described above.
- Connect a Null Modem cable between the CP210xEK and the PC serial port.
Note: The DB9 cable supplied with the CP210xEK is NOT a null modem cable.
- Run ...\USBXpress\Examples\CP210x\CP210xUSBXpressTest.exe
- Select the USBXpress CP210x device number from the list.
- Type in the PC serial port number in the edit box (usually 1).
- Click "Start Data Transfer" to transfer data between the two serial ports.
Building the Host Examples:
Building the Host examples (Visual C++):
- Open ...\USBXpress\Examples\TestPanel\Host\VC6\FileTransfer.dsw or
...\USBXpress\Examples\TestPanel\Host\VC6\TestPanel.dsw or
...\USBXpress\Examples\CP210x\CP210xTest.dsw
in Microsoft Visual C++ 6.0.
Select "Release" or "Debug" and build the project.
Building custom host example applications (Visual C++):
- To use functions implemented in SiUSBXp.DLL, link SiUSBXp.LIB
with your Visual C++ 6.0 application.
- Include SiUSBXp.h in any file that calls functions implemented in
SiUSBXp.DLL.
Building the Host examples (Visual Basic 6):
- Open ...\USBXpress\Examples\TestPanel\Host\VB6\TestPanel.vbp or
...\USBXpress\Examples\FileTransfer\Host\VB6\FileTransfer.vbp
in Microsoft Visual Basic 6.0.
Select File->Make TestPanel.exe to build the project.
Building custom host example applications (Visual Basic 6):
- To use functions implemented in SiUSBXp.DLL, link SiUSBXp.DLL
by placing the Declare statements and Constants as used in the TestPanel
module into the module used in your project.
- Make sure to change the location of SiUSBXp.DLL in the Declare
statements to where it is located, or just put the DLL in the same directory
as the executable.
Building the Host examples (Visual Basic .NET):
- Open ...\USBXpress\Examples\TestPanel\Host\VBNET\TestPanel.sln
in Microsoft Visual Basic .NET.
Select File->Build->Build TestPanel to build the project.
Building custom host example applications (Visual Basic .NET):
- To use functions implemented in SiUSBXp.DLL, link SiUSBXp.DLL
by placing the Declare statements and Constants as used in the TestPanel
module into the module used in your project.
- Make sure to change the location of SiUSBXp.DLL in the Declare
statements.
Using the Device Examples:
F3xx_FileTransfer:
-Open the project ...\USBXpress\Examples\FileTransfer\F3xx\FileTransfer.wsp
using the Silabs IDE.
-In the IDE, Press the Build button, then Download the program to Flash.
-Note: This step requires installation of the Keil compiler,
make sure the project "Tool Chain Integration" points to your Keil
compiler, if you did not install these in the default Keil path.
-Press the Run button in the IDE.
F3xx_TestPanel:
-Open the project ...\USBXpress\Examples\TestPanel\F3xx\TestPanel.wsp using
the Silabs IDE.
-In the IDE, Press the Build button, then Download the program to Flash.
-Note: This step requires installation of the Keil compiler,
make sure the project "Tool Chain Integration" points to your
Keil compiler, if you did not install these in the default Keil path.
-Press the Run button in the IDE.
Building custom device example applications:
-Copy the USB_API.h header file into the directory for new application.
-Add this file to the project.
-Include the USBX_F3xxx.LIB file to the linker using the following steps.
-In the IDE, go to Project->Target Build Configuration.
-Select "Customize" in the Target Build Configuration Dialog.
-Click on the "Files to Link" tab.
-Select "Add External OBJ".
-Change the file type from "*.obj" to "*.*" under "list files of type"
-Select USBX_F3xxx.LIB from \USBXpress\USBXpress_API\Device\F3xx
-The custom project should build after you include calls to the USBXpress
firmware library according to USB_API.h. See AN169.pdf for details.
近期下载者:
相关文件:
收藏者: