5
Let's make a USB mouse
This sample program will provide USB communications that a USB mouse uses (HID class) by
utilizing the USB function controller in the microcontroller (MB91F662) installed on the starter kit.
When the starter kit board is connected to the PC, the PC will recognize the board as a USB
mouse (HID class). Operating the pushbutton switches and slider switch on the board will
simulate the operation of a mouse.
5.1
Overview of the USB sample program
This sample program simulates a USB mouse (HID device) on the MB91F662. Figure 5.1-1
shows the operation and details of the sample program. When the starter kit board running the
sample program is connected to the PC, the PC recognizes the MB91F662 on the board as a
USB mouse (HID device). After the PC completes the connection and recognition process, the
pushbuttons on the board can be used to move the cursor or perform click operations on the
PC screen. The slider switch on the board can be used to scroll windows on the PC. The
program periodically scans the pushbuttons and slider switch to detect these status changes.
65
相关PDF资料
USBMLCF USB BDM INTERFACE MC P&E
USBMLPPCBDM MULTILINK P&E POWERPC USB
V-9767-L DOOR ECONOGLAS 19" LOCKING
VC-9931 CABINT VISNCB 20.54X23.62X23.62"
VC-9934B VISIONCAB B 35.40X23.62X23.62"
VLA500-01 IC IGBT GATE DVR/DC-DC CONV 12A
VLA502-01 IC IGBT GATE DVR/DC-DC CONV 12A
VLA503-01 IC IGBT GATE DRIVER INV/AC SERVO
相关代理商/技术参数
USB10-0001 制造商:Black Box Corporation 功能描述:USB 2.0 COILED CABLE 1 "A" MALE TO "B" MALE
USB10-0002 制造商:Black Box Corporation 功能描述:USB 2.0 COILED CABLE 2 "A" MALE TO "B" MALE
USB10-0003 制造商:Black Box Corporation 功能描述:USB 2.0 COILED CABLE 3 "A" MALE TO "B" MALE
USB100EVAL 制造商:Fairchild Semiconductor Corporation 功能描述:
USB1015-GF-N-A 制造商:Global Connector Technology (GCT) 功能描述:USB1015 Serie gold Flash Nylon 9T USB Connector 制造商:Global Connector Technology (GCT) 功能描述:USB A Skt, Mid-TH, R/A, GF, offset 3.9mm, W/shell stake, T&R
USB1025-GF-P-B 制造商:Global Connector Technology (GCT) 功能描述:USB A Skt, Upright/Flag, R/A GF, W/kinked shell stake, tray
USB1029 制造商:Vincotech 功能描述:RF MODULE EVALUATION BOARD
USB103 制造商:Pro-Signal 功能描述:LEAD USB A TO A 3M