8.3.2InterruptPrioritization
8.3.3VectorTableEntryAddressGeneration
ReturnfromINTEABASE
InterruptentrytableAddress
BranchtoINTEABASE+(1*SIZE)
BranchtoINT1EABASE+(2*SIZE)
BranchtoINT63EABASE+(64*SIZE)
www.ti.com
AINTCMethodology
Eventpriorityisdeterminedusingbothafixedandaprogrammableprioritizationscheme.TheAINTChas
8differentprogrammableinterruptpriorities.Priority0andpriority1aremappedtotheFIQinterruptwith
priority0beingthehighestpriority.Priorities2-7aremappedtotheIRQinterrupt(priority2isthehighest,
priority7isthelowest).EachinterruptismappedtoaprioritylevelusingtheINTPRInregisters.When
simultaneouseventsoccur(multipleenabledeventscapturedinIRQorFIQregisters),theeventwiththe
highestpriorityistheonewhoseentrytableaddressisgeneratedwhensendingtheinterruptsignaltothe
ARM.Wheneventsofidenticalpriorityoccur,theeventwiththelowesteventnumberistreatedashaving
thehigherpriority.
TohelpspeeduptheISR,theAINTCprovidestwovectorsintotheARM’sinterruptentrytable,which
correspondtothehighestpriorityeffectiveIRQandFIQinterrupts.Thisvectorisgeneratedbymodifyinga
baseaddresswithapriorityindex.Thepriorityindextakesthesizeofeachinterruptentryintoaccount
usingthefollowingformulas:
IRQENTRY=EABASE+((highestpriorityIRQEVT#+1)×SIZE)
FIQENTRY=EABASE+((highestpriorityFIQEVT#+1)×SIZE)
TheEABASEbaseaddressiscontainedinaregister.TheSIZEvalueisaprogrammableregisterfield,
whichselects4,8,16,or32bytesforeachinterrupttableentry.TheIRQENTRYorFIQENTRYregisteris
readbytheARM,dependingonwhichtypeofinterruptitisservicing.TheARMinterruptentrytableformat
isshowninFigure8-2.
Figure8-2.InterruptEntryTable
ThehighestpriorityeffectiveIRQorFIQinterruptincludesonlythoseinterruptsthatareenabledbytheir
correspondingEINTbitbydefault.However,theIERAWandFERAWregisterbits,ifset,allowthehighest
priorityeventofanyofthosecapturedintheIRQorFIQregistertobeusedincalculatingIRQENTRYand
FIQENTRY,respectively(regardlessoftheEINTstate).
TheIRQENTRYandFIQENTRYvaluesaregeneratedinrealtimeastheinterrupteventsoccur.Thus,
theirvaluesmaychangefromthetimethattheIRQorFIQissenttotheARMtothetimetheARMreads
theregister.TheymayalsochangeimmediatelyafterareadbytheARMifahigherpriorityeventoccurs.
IfnoIRQmappedeffectiveinterruptispending,thentheIRQENTRYvaluereflectstheEABASEvalue.
Similarly,ifnoFIQmappedeffectiveinterruptispending,thentheFIQENTRYvaluereflectstheEABASE
value.
1.FortheFIQENTRY:
•IfFERAWis0,FIQENTRYreflectsthestateofthehighestprioritypendingenabledFIQinterrupt.If
theactiveFIQinterruptisclearedinFIQn,thenFIQENTRYisimmediatelyupdatedwiththevector
ofthenexthighestprioritypendingenabledFIQinterrupt.
•IfFERAWis1,FIQENTRYreflectsthestateofthehighestprioritypendingFIQinterrupt(enabled
ornot).IftheactiveFIQinterruptisclearedinFIQn,thenFIQENTRYisimmediatelyupdatedwith
thevectorofthenexthighestprioritypendinginterrupt(enabledornot).
SPRUEP9A–May2008ARMInterruptController(AINTC)89
SubmitDocumentationFeedback