Fujitsu 32-Bit Microcontroller MB9B500 Series Manual de usuario Pagina 18

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 34
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 17
4.5 USB Function
Hardware Setting
¾ Check if 1,2 of J-USB- and J-USB+ short
¾ Check J701 (Short: 5V, Open: 3.3V)
¾ Connect with PC via USB cable
Flowchart
The following flowchart illuminates the procedure to implement a USB mouse, it is not a
certain flow of a function, but provides a clue to study and understand the sample code.
Start
Button, USB core,
HID initialization
Check ButtonInit(),
HIDInit()
Check Ext INT7
occurred?
Initial Endpoint 0
Check
EXTI8_15_IRQHandler()
Get Device, HID
description
Enable Endpoint 5
interrupt transfer
Bus reset
Configure
Endpoint 0-5
Device has been
connected with
Host
Check
USB_2_IRQHandler()
Use interrupt transfer to
communicate with host
Check
HidMouseSendReport()
Check
USB_1_IRQHandler()
Figure 4-8: USB Function Sample Code Flowchart
Usage
1) Make the hardware setting.
2) Watch the mouse moving when pressing “Up”, “Down”, “Left”, “Right” buttons.
18
Vista de pagina 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 33 34

Comentarios a estos manuales

Sin comentarios