EZ-USB® FX2LP™ as HID Device | サイプレス セミコンダクタ
EZ-USB® FX2LP™ as HID Device
This project implements a DVK board–based keyboard using the USB Human Interface Device (HID) class. The DVK buttons and 7-segment bars implement the keyboard functions shown in table below.
|f1 button||Shift key|
|f2 button||‘a’ key|
|f3 button||‘b’ key|
|f4 button||‘c’ key|
|7-seg top||Screen lock light|
|7-seg middle||Caps lock light|
|7-seg bottom||Num lock light|
After you use the USB Control Center to load the hid_kb.hex file into the FX2LP board, the FX2LP board re-enumerates as a standard Windows keyboard. Any active window that accepts text will show the key presses implemented by this application. Press the Screen Lock, Caps Lock and Num Lock keyboard keys and observe that three of the 7-segment bars light along with the keyboard indicators.
注: To modify and rebuild the project, you need Keil μVision2 IDE that is also provided with the FX2LP DVK. The DVK setup can be downloaded from here.