- ページ 19

マザーボード Fujitsu MB9B500 SeriesのPDF ユーザーマニュアルをオンラインで閲覧またはダウンロードできます。Fujitsu MB9B500 Series 34 ページ。 Fss mb9bf506r ev-board

Fujitsu MB9B500 Series ユーザーマニュアル

4.6 USB Host

Hardware Setting
Check if 2,3 of J-USB- and J-USB+ short
Connect with a USB mouse
Flowchart
The following flowchart illuminates the procedure to implement USB host function, which
can catch the position of a USB mouse, it is not a certain flow of a function, but provides
a clue to study and understand the sample code.
SystemInit ( )
main ( )
minihost_init( )
Usage
1) Make the hardware setting
2) Enable definition "Debug" in the code
3) Run the code.
4) Move the USB mouse, and watch the mouse position in the terminal IO window as
following figure. (Debug viewer window in Keil IDE)
Start
Initialize system
clock
Initialize timer
Init USB host
Figure 4-9: USB Host Sample Code Flowchart
Figure 4-10: USB Mouse Position Display
19
USB_Handler ( )
Enumeration
Mouse data
USBF_Handler ( )
process
get_mouse_data ( )
Display mouse
data
Main()