Texas Instruments 28xxx Network Router User Manual


 
www.ti.com
Event-TriggerSubmoduleRegisters
Table4-24.Event-TriggerPrescaleRegister(ETPS)FieldDescriptions(continued)
BitsNameDescription
9-8SOCAPRDePWMADCStart-of-ConversionAEvent(EPWMxSOCA)PeriodSelect
ThesebitsdeterminehowmanyselectedETSEL[SOCASEL]eventsneedtooccurbeforean
EPWMxSOCApulseisgenerated.Tobegenerated,thepulsemustbeenabled
(ETSEL[SOCAEN]=1).TheSOCApulsewillbegeneratedevenifthestatusflagissetfrom
apreviousstartofconversion(ETFLG[SOCA]=1).OncetheSOCApulseisgenerated,the
ETPS[SOCACNT]bitswillautomaticallybecleared.
00DisabletheSOCAeventcounter.NoEPWMxSOCApulsewillbegenerated
01GeneratetheEPWMxSOCApulseonthefirstevent:ETPS[SOCACNT]=0,1
10GeneratetheEPWMxSOCApulseonthesecondevent:ETPS[SOCACNT]=1,0
11GeneratetheEPWMxSOCApulseonthethirdevent:ETPS[SOCACNT]=1,1
7-4ReservedReserved
3-2INTCNTePWMInterruptEvent(EPWMx_INT)CounterRegister
ThesebitsindicatehowmanyselectedETSEL[INTSEL]eventshaveoccurred.Thesebitsare
automaticallyclearedwhenaninterruptpulseisgenerated.Ifinterruptsaredisabled,
ETSEL[INT]=0ortheinterruptflagisset,ETFLG[INT]=1,thecounterwillstopcounting
eventswhenitreachestheperiodvalueETPS[INTCNT]=ETPS[INTPRD].
00Noeventshaveoccurred.
011eventhasoccurred.
102eventshaveoccurred.
113eventshaveoccurred.
1-0INTPRDePWMInterrupt(EPWMx_INT)PeriodSelect
ThesebitsdeterminehowmanyselectedETSEL[INTSEL]eventsneedtooccurbeforean
interruptisgenerated.Tobegenerated,theinterruptmustbeenabled(ETSEL[INT]=1).If
theinterruptstatusflagissetfromapreviousinterrupt(ETFLG[INT]=1)thennointerruptwill
begenerateduntiltheflagisclearedviatheETCLR[INT]bit.Thisallowsforoneinterruptto
bependingwhileanotherisstillbeingserviced.Oncetheinterruptisgenerated,the
ETPS[INTCNT]bitswillautomaticallybecleared.
WritingaINTPRDvaluethatisthesameasthecurrentcountervaluewilltriggeraninterrupt
ifitisenabledandthestatusflagisclear.
WritingaINTPRDvaluethatislessthanthecurrentcountervaluewillresultinanundefined
state.
Ifacountereventoccursatthesameinstantasanewzeroornon-zeroINTPRDvalueis
written,thecounterisincremented.
00Disabletheinterrupteventcounter.NointerruptwillbegeneratedandETFRC[INT]is
ignored.
01GenerateaninterruptonthefirsteventINTCNT=01(firstevent)
10GenerateinterruptonETPS[INTCNT]=1,0(secondevent)
11GenerateinterruptonETPS[INTCNT]=1,1(thirdevent)
Figure4-25.Event-TriggerFlagRegister(ETFLG)
158
Reserved
R-0
743210
ReservedSOCBSOCAReservedINT
R-0R-0R-0R-0R-0
LEGEND:R/W=Read/Write;R=Readonly;-n=valueafterreset
SPRU791DNovember2004RevisedOctober2007Registers113
SubmitDocumentationFeedback