Figure 2, Figure 2. interrupt service routine flow chart, Usb controller host and peripheral modes operation – Texas Instruments TMS320DM357 User Manual

Page 25

Advertising
background image

Read interrupt
status register

Resume
interrupt

?

Resume routine

Yes

No

A

device or

B device

?

SESSREQ

interrupt

?

No

Vbus

error interrupt

?

Yes

Yes

A device

B device

Session req

routine

routine

Vbus error

?

Host

or peripheral

Peripheral

Host

?

Connect
interrupt

Connect

routine

Yes

routine

Babble

?

Yes

Babble

interrupt

EP0

Yes

Host EP0

routine

interrupt

?

No

No

No

No

Host Rx

routine

Yes

interrupt

?

Receive

Host Tx

routine

?

No

Yes

Transmit

interrupt

interrupt

?

EP0

Yes

Peripheral

EP0 routine

No

interrupt

?

Receive

No

Rx routine

Peripheral

Yes

Transmit

interrupt

?

Tx routine

Peripheral

Yes

interrupt

?

SOF

routine

Resume

Yes

interrupt

?

Disconn

Disconnect

Yes

routine

Suspend

interrupt

?

Suspend

Yes

routine

www.ti.com

USB Controller Host and Peripheral Modes Operation

Figure 2. Interrupt Service Routine Flow Chart

SPRUGH3 – November 2008

Universal Serial Bus (USB) Controller

25

Submit Documentation Feedback

Advertising