Getting Started with the Silicon Labs USB HID Examples
05/147/2010 | 10:41 PM
Question
What steps do I need to take to run any of the Silicon Labs USB HID examples?
Answer
Using the latest version of the IDE, the 'F340 Target Board, and the compiler included in the 'F340 Development Kit, the steps to run the Silicon Labs USB HID examples are as follows:
Open F3xx_BlinkyExample.wsp in CiLabsMCUExamplesC8051F34xUSB_HIDBlinkyExample
Compile the code.
Download to an 'F34x Target Board (TB).
Run the firmware.
Driver: No driver needed; uses the built-in HID driver in the operating system.
Host Application:
Can either run HID_Blinky.exe in CiLabsMCUExamplesC8051F34xUSB_HIDBlinkyExample or rebuild the Host Application Source.
To rebuild the Host Application Source, open the HID_Blinky.vcproj file in Visual C++ .NET 2003. If a newer version of Visual Studio is used, the project may need to be updated and some of the settings may change. NOTE: The HID PC Application requires the WinDDK to be installed.
Rebuild the project.
Hit run and use the program.
All of the main code for the program can be found in HID_BlinkyDlg.cpp, so any changes to the application should occur here.
Open F3xx_MouseExample.wsp in CiLabsMCUExamplesC8051F34xUSB_HIDMouseExample
Compile the code.
Download to an 'F34x Target Board (TB).
Run the firmware.
Once the firmware is running, you should be able to control the mouse cursor using the potentiometer (R10) on the board (ensure J17 and J16 are populated).
Driver: No driver needed; the example uses the built-in HID driver in the operating system.
Host Application: No host application needed; the example appears as a USB mouse.
Getting Started with the Silicon Labs USB HID Examples