Texas Instruments TMS320DM357 Switch User Manual


 
4.78OTGDeviceControlRegister(DEVCTL)
www.ti.com
Registers
TheOTGDeviceControlRegister(DEVCTL)isshowninFigure93anddescribedinTable94.
Figure93.OTGDeviceControlRegister(DEVCTL)
76543210
BDEVICEFSDEVLSDEVVBUSHOSTMODEHOSTREQSESSION
R-0R-0R-0R-0R-0R/W-0R/W-0
LEGEND:R/W=Read/Write;R=Readonly;-n=valueafterreset
Table94.OTGDeviceControlRegister(DEVCTL)FieldDescriptions
BitFieldValueDescription
7BDEVICEThisread-onlybitindicateswhethertheUSBcontrollerisoperatingasthe'A'deviceorthe'B'
device.
0'A'device
1'B'device
Onlyvalidwhileasessionisinprogress.
6FSDEV0-1Thisread-onlybitissetwhenafull-speedorhigh-speeddevicehasbeendetectedbeingconnected
totheport(high-speeddevicesaredistinguishedfromfull-speedbycheckingforhigh-speedchirps
whenthedeviceisreset).OnlyvalidinHostmode.
5LSDEV0-1Thisread-onlybitissetwhenalow-speeddevicehasbeendetectedbeingconnectedtotheport.
OnlyvalidinHostmode.
4-3VBUS0-3hTheseread-onlybitsencodethecurrentVBuslevelasfollows:
0BelowSessionEnd
1hAboveSessionEnd,belowAValid
2hAboveAValid,belowVBusValid
3hAboveVBusValid
2HOSTMODE0-1Thisread-onlybitissetwhentheUSBcontrollerisactingasaHost.
1HOSTREQ0-1Whenset,theUSBcontrollerwillinitiatetheHostNegotiationwhenSuspendmodeisentered.Itis
clearedwhenHostNegotiationiscompleted.('B'deviceonly)
0SESSION0-1Whenoperatingasan'A'device,youmustsetorclearthisbitstartorendasession.When
operatingasa'B'device,thisbitisset/clearedbytheUSBcontrollerwhenasessionstarts/ends.
YoumustalsosetthisbittoinitiatetheSessionRequestProtocol.WhentheUSBcontrollerisin
Suspendmode,youmayclearthebittoperformasoftwaredisconnect.
AspecialsoftwareroutineisrequiredtoperformSRP.Detailswillbemadeavailableinalater
documentversion.
SPRUGH3November2008UniversalSerialBus(USB)Controller137
SubmitDocumentationFeedback