English
Language : 

TH6503 Datasheet, PDF (15/24 Pages) List of Unclassifed Manufacturers – USB Low-Speed Interface
TH6503 USB Low-Speed Interface
Flowchart for
Programming the
TH6503
Main Program
Figure 15 shows the main order of events of the USB specific part of firmware for the
microcontroller. The bits located in the StatusRegister mark the event. Depending on these bits the
firmware must branch.
Initialisation
SCK=0;SIN=1;
SDI=0
Yes
SDO=1
No
Read
StatusRegister
Read CntOutRegister
and OUT FIFO
Yes
OUT Done
Reaction (depends
on the received Data)
No
Data to send ?
Yes
EP0 IN Done
Yes
Write next Control
Byte(s) to
No
IN FIFO
No
Data to send ?
Yes
EP1/2 IN Done
Yes
Write next Device
Data to
No
IN FIFO
Reset SUS Bit in the
BridgeConfigRegister Yes
Reset Suspend
Yes
Timer
Resume Detect
No
USB Active
No
USB Reset
Yes
Figure 15. Flowchart for Main Program (using TH6503 in Interrupt mode)
15