Texas Instruments TMS320DM646x Computer Hardware User Manual


 
12.5.3.2DSPModuleReset
12.5.3.2.1SoftwareResetDisable
www.ti.com
ARMControlofDSPBoot,Clock,andReset
Inthesoftwareresetdisablestate,theDSP’smoduleresetisassertedanditsmoduleclockisturnedoff.
YoucanusethisstatetoresettheDSP.ThefollowingstepsdescribehowtoputtheDSPinthesoftware
resetdisablestate:
ARM:NotifytheDSPtoprepareforpower-down.
DSP:PuttheDSPintheIDLEstate:
1.Setthepower-downcommandregister(PDCCMD)intheDSPpower-downcontroller(PDC)
moduleto00015555h.
Note:PDCCMDcanonlybewrittenwhiletheDSPisinsupervisormode.Seethe
TMS320DM646xDMSoCDSPSubsystemReferenceGuide(SPRUEP8)andthe
TMS320C64x+DSPMegamoduleReferenceGuide(SPRU871)formoreinformationon
thepower-downcontroller(PDC).
2.ExecutetheIDLEinstructioniftheDSPisintheenablestate.IDLEisaprograminstructioninthe
C64x+CPUinstructionset.WhentheCPUexecutesIDLE,thePDCisnotifiedandinitiatesDSP
power-downaccordingtothebitssetinPDCCMD.SeetheTMS320C64x+DSPMegamodule
ReferenceGuide(SPRU871)formoreinformationonthePDCandtheIDLEinstruction.
ARM:SoftwareresetdisableDSP:
1.WaitfortheGOSTAT[0]bitinthepowerdomaintransitionstatusregister(PTSTAT)inthePSCto
clearto0.Youmustwaitforthepowerdomaintofinishanypreviouslyinitiatedtransitionsbefore
initiatinganewtransition.
2.CleartheNEXTbitinthemodulecontrol1register(MDCTL1)inthePSCto0topreparetheDSP
moduleforasoftwareresetdisabletransition.
3.SettheGO[0]bitinthepowerdomaintransitioncommandregister(PTCMD)inthePSCto1to
initiatethestatetransition.
4.WaitforGOSTAT[0]bitinPTSTATtoclearto0.Thedomainissafelyinthenewstateonlyafter
theGOSTAT[0]bitisclearedto0.
5.WaitfortheSTATEbitinthemodulestatus1register(MDSTAT1)inthePSCtochangeto0.The
moduleissafelyinthenewstateonlyaftertheSTATEbitinMDSTAT1changestoreflectthenew
state.
ARM:AsserttheDSPlocalreset.CleartheLRSTbitinthemodulecontrol1register(MDCTL1)inthe
PSCto0.Thisstepisoptional.ThisstepassertstheDSPlocalresetandisincludedheresothatthe
DSPdoesnotstartrunningimmediatelyuponpower-on/enable.Typically,softwaredeassertslocal
resetsometimeafterfinishingtheenablesequence.
SPRUEP9AMay2008ARM-DSPIntegration131
SubmitDocumentationFeedback