Texas Instruments TMS320DM357 Switch User Manual


 
IN token sent
?
received
STALL
No
Yes
Yes
No
RxStall set
ReqPkt cleared
Error Count cleared
Interrupt generated
Problem in
data sent
Yes
?
Data0/1
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
ReqPkt cleared
Error Count cleared
Interrupt generated
Yes
Implies problem
at peripheral end
of connection.
Transaction deemed
complete
For each IN packet
requested in SETUP phase
ReqPkt
set
?
No
ACK sent
RxPktRdy
set
ReqPkt cleared
Error Count cleared
Interrupt generated
3.2.1.3OUTDataPhase
www.ti.com
USBControllerHostandPeripheralModesOperation
Figure10.INDataPhaseFlowChart
FortheOUTDataPhaseofacontroltransaction(Figure11),thesoftwaredrivingtheUSBhostdevice
needsto:
1.Loadthedatatobesentintotheendpoint0FIFO.
2.SettheTXPKTRDYbitofHOST_CSR0(bit1).ThecontrollerthenproceedstosendanOUTtoken
followedbythedatafromtheFIFOtoEndpoint0oftheaddresseddevice,retryingasnecessary.
3.Attheendoftheattempttosendthedata,thecontrollerwillgenerateanEndpoint0interrupt.The
softwareshouldthenreadHOST_CSR0toestablishwhethertheRXSTALLbit(bit2),theERRORbit
(bit4)ortheNAK_TIMEOUTbit(bit7)hasbeenset.
IfRXSTALLbitisset,itindicatesthatthetargethasissuedaSTALLresponse.
IfERRORbitisset,itmeansthatthecontrollerhastriedtosendtheOUTtokenandthefollowingdata
packetthreetimeswithoutgettinganyresponse.
SPRUGH3November2008UniversalSerialBus(USB)Controller47
SubmitDocumentationFeedback