Texas Instruments TMS320DM357 manual Interrupt Service Routine Flow Chart

Models: TMS320DM357

1 144
Download 144 pages 62.56 Kb
Page 25
Image 25

www.ti.com

USB Controller Host and Peripheral Modes Operation

Figure 2. Interrupt Service Routine Flow Chart

Read interrupt status register

 

 

Yes

Resume

 

 

 

 

Resume routine

 

 

 

 

interrupt

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

 

No

 

 

 

 

 

A device

A

B device

 

 

 

device or

 

 

 

 

 

 

 

 

 

 

B device

 

 

 

 

 

 

?

 

 

 

Session req

Yes

SESSREQ

 

 

 

 

routine

 

interrupt

 

 

 

 

 

 

?

 

 

 

 

 

 

No

 

 

 

 

Vbus error

Yes

Vbus

 

 

 

 

error interrupt

 

 

 

 

routine

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

Host

Host

Peripheral

 

 

 

 

or peripheral

 

 

 

 

 

 

?

 

 

 

Connect

Yes

Connect

 

 

EP0

Yes

routine

 

interrupt

 

 

interrupt

 

 

?

 

 

?

 

 

 

 

 

 

 

 

No

 

 

No

 

Babble

Yes

Babble

 

 

Receive

Yes

routine

 

interrupt

 

 

interrupt

 

 

?

 

 

?

 

 

 

 

 

 

 

 

No

 

 

No

 

Host EP0

Yes

EP0

 

 

Transmit

Yes

routine

 

interrupt

 

 

interrupt

 

 

?

 

 

?

 

 

 

 

 

 

 

 

No

 

 

 

 

Host Rx

Yes

Receive

 

 

 

 

routine

 

interrupt

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

No

 

 

 

 

Host Tx

Yes

Transmit

 

 

 

 

routine

 

interrupt

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

No

 

 

 

 

 

 

 

SOF

Yes

Resume

 

 

 

 

interrupt

 

routine

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

Disconn

Yes

Disconnect

 

 

 

interrupt

 

routine

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

Suspend

Yes

Suspend

 

 

 

 

interrupt

 

routine

 

 

 

 

?

 

 

 

 

 

 

 

 

Peripheral EP0 routine

Peripheral Rx routine

Peripheral Tx routine

SPRUGH3–November 2008

Universal Serial Bus (USB) Controller

25

Submit Documentation Feedback

 

 

Page 25
Image 25
Texas Instruments TMS320DM357 manual Interrupt Service Routine Flow Chart