12.4ARM-DSPInterrupts
www.ti.com
ARM-DSPInterrupts
TheARMcaninterrupttheDSP;conversely,theDSPcaninterrupttheARM.Theseinterruptsare
generallyusedtoallowtheARMandtheDSPtocoordinate.Forexample,theARMmayinterruptthe
DSPwhenitisreadytohavetheDSPprocesssomedatabufferinsharedmemory.Atypicalsequenceis
asfollows:
•ARMwritescommandinsharedmemory
•ARMinterruptsDSP
•DSPrespondstointerruptandreadscommandinsharedmemory
•DSPexecutesataskbasedonthecommand
•DSPinterruptsARMuponcompletionofthetask
ThissequenceisoftenreferredtoasARM-DSPcommunication.
TheARMhasaccesstofiveDSPinterruptevents,ARM2DSP0,ARM2DSP1,ARM2DSP2,ARM2DSP3,
andNMI,intheDSPinterrupteventmap.TheDSPhasaccesstooneARMinterruptevent,DSP2ARM0,
intheARMinterrupteventmap.TheARM-DSPinterrupts/eventsaresummarizedinTable12-1.
Table12-1.ARM-DSPInterruptMapping
SourceInterruptNumber
NameDescriptionARMDSPAINTCINTC
DSP2ARM0DSPControllertoARMInterrupt-x45-
ARM2DSP0ARMtoDSPController0Interruptx--16
ARM2DSP1ARMtoDSPController1Interruptx--17
ARM2DSP2ARMtoDSPController2Interruptx--18
ARM2DSP3ARMtoDSPController3Interruptx--19
NMINonmaskableInterruptx---
TheSystemModuleincludesregistersforgeneratinginterruptsfromtheARMtotheDSP(DSPINT,
DSPINTSET,andDSPINTCLR)andfromtheDSPtotheARM(DSPINT,DSPINTSET,andDSPINTCLR).
Seethedevice-specificdatamanualfordetailsontheseregisters.
TheARMusesDSPINT,DSPINTSET,andDSPINTCLRtogenerateaninterrupttotheDSP.TheDSP
interruptstatusregister(DSPINT)showsthestatusoftheARM-to-DSPinterrupts.TheARMmaygenerate
aninterrupttotheDSPbysettingoneofthefourINTDSPnbitsortheINTNMIbitintheDSPinterruptset
register(DSPINTSET).Theinterruptset(INTDSPn)bitthenself-clearsandthecorrespondingbitin
DSPINTisautomaticallysettoindicatethattheinterruptwasgenerated.Afterservicingtheinterrupt,the
DSPclearsthestatusbitinDSPINTbywritinga1tothecorrespondingbitintheDSPinterruptclear
register(DSPINTCLR).TheARMmaypollthestatusbitinDSPINTtodeterminewhentheDSPhas
completedtheinterruptservice.
TheDSPmaygenerateaninterrupttotheARMinasimilarmannerusingtheARMinterruptsetregister
(ARMINTSET)andtheARMinterruptclearregister(ARMINTCLR).TheDSPcanmonitorthestatusofthe
DSP-to-ARMinterruptsusingtheARMinterruptstatusregister(ARMINT).
FormoreinformationonARMinterrupts,seeChapter8.FormoreinformationonDSPinterrupts,seethe
DSPinterruptssectionoftheTMS320DM646xDMSoCDSPSubsystemReferenceGuide(SPRUEP8).
Formoreinformationonthesystemcontrolmodule,seeChapter9.
SPRUEP9A–May2008ARM-DSPIntegration127
SubmitDocumentationFeedback