Texas Instruments TMS320DM357 Switch User Manual


 
For each OUT packet
specified in SETUP phase
TxPktRdy
set
?
OUT token sent
DATA0/1 packet sent
?
received
Stall
No
Yes
Yes
No
RxStall set
TxPktRdy cleared
Error Count cleared
interrupt generated
Command could
not be completed
TxPktRdy cleared
Error Count cleared
Interrupt generated
Yes
?
No
ACK
received
Transaction
complete
No
NAK
received
?
Yes
?
NAK limit
reached
No
Yes
Error count
cleared
incremented
Error count
NAK Timeout set
Endpoint halted
Interrupt generated
?
Error
count=3
No
Error bit set
TxPktRdy cleared
Error Count cleared
interrupt generated
Yes
Implies problem
at peripheral end
of connection.
Transaction deemed
complete
USBControllerHostandPeripheralModesOperation
www.ti.com
IfNAK_TIMEOUTisset,itmeansthatthecontrollerhasreceivedaNAKresponsetoeachattemptto
sendtheOUTtoken,forlongerthanthetimesetintheHOST_NAKLIMIT0register.Thecontrollercan
thenbedirectedeithertocontinuetryingthistransaction(untilittimesoutagain)byclearingthe
NAK_TIMEOUTbitortoabortthetransactionbyflushingtheFIFObeforeclearingtheNAK_TIMEOUT
bit.
IfnoneofRXSTALL,ERRORorNAKLIMITisset,theOUTdatahasbeencorrectlyACKed.
4.Iffurtherdataneedstobesent,thesoftwareshouldrepeatSteps1-3.
Whenallthedatahasbeensuccessfullysent,thesoftwareshouldproceedtotheINStatusPhaseof
theControlTransaction.
Figure11.OUTDataPhaseFlowChart
UniversalSerialBus(USB)Controller 48SPRUGH3November2008
SubmitDocumentationFeedback