Texas Instruments 28xxx Network Router User Manual


 
www.ti.com
2.7.2ControllingandMonitoringtheTrip-ZoneSubmodule
2.7.3OperationalHighlightsfortheTrip-ZoneSubmodule
Trip-Zone(TZ)Submodule
Thetrip-zonesubmoduleoperationiscontrolledandmonitoredthroughthefollowingregisters:
Table2-17.Trip-ZoneSubmoduleRegisters
RegisterNameAddressoffsetShadowedDescription
(1)
TZSEL0x0012NoTrip-ZoneSelectRegister
reserved0x0013
TZCTL0x0014NoTrip-ZoneControlRegister
TZEINT0x0015NoTrip-ZoneEnableInterruptRegister
TZFLG0x0016NoTrip-ZoneFlagRegister
TZCLR0x0017NoTrip-ZoneClearRegister
TZFRC0x0018NoTrip-ZoneForceRegister
(1)
Alltrip-zoneregistersareEALLOWprotectedandcanbemodifiedonlyafterexecutingtheEALLOWinstruction.Formore
information,seethedevice-specificversionoftheSystemControlandInterruptsReferenceGuidelistedinSection1.
Thefollowingsectionsdescribetheoperationalhighlightsandconfigurationoptionsforthetrip-zone
submodule.
Thetrip-zonesignalsatpinsTZ1toTZ6(alsocollectivelyreferredtoasTZn)areactivelowinputsignals.
Whenoneofthesepinsgoeslow,itindicatesthatatripeventhasoccurred.EachePWMmodulecanbe
individuallyconfiguredtoignoreoruseeachofthetrip-zonepins.Whichtrip-zonepinsareusedbya
particularePWMmoduleisdeterminedbytheTZSELregisterforthatspecificePWMmodule.The
trip-zonesignalsmayormaynotbesynchronizedtothesystemclock(SYSCLKOUT)anddigitallyfiltered
withintheGPIOMUXblock.Aminimum1SYSCLKOUTlowpulseonTZninputsissufficienttotriggera
faultconditionintheePWMmodule.Theasynchronoustripmakessurethatifclocksaremissingforany
reason,theoutputscanstillbetrippedbyavalideventpresentonTZninputs,providingtheGPIOis
appropriatelyconfigured.Formoreinformation,seetheGPIOsectionofthespecificdeviceversionofthe
SystemControlandInterruptsReferenceGuidelistedinSection1.
EachTZninputcanbeindividuallyconfiguredtoprovideeitheracycle-by-cycleorone-shottripeventfora
ePWMmodule.TheconfigurationisdeterminedbytheTZSEL[CBCn]andTZSEL[OSHTn]controlbits
(wherencorrespondstothetrippin)respectively.
Cycle-by-Cycle(CBC):
Whenacycle-by-cycletripeventoccurs,theactionspecifiedintheTZCTLregisteriscarriedout
immediatelyontheEPWMxAand/orEPWMxBoutput.Table2-18liststhepossibleactions.Inaddition,
thecycle-by-cycletripeventflag(TZFLG[CBC])issetandaEPWMx_TZINTinterruptisgeneratedifit
isenabledintheTZEINTregisterandPIEperipheral.
ThespecifiedconditiononthepinsisautomaticallyclearedwhentheePWMtime-basecounter
reacheszero(TBCTR=0x0000)ifthetripeventisnolongerpresent.Therefore,inthismode,thetrip
eventisclearedorreseteveryPWMcycle.TheTZFLG[CBC]flagbitwillremainsetuntilitismanually
clearedbywritingtotheTZCLR[CBC]bit.Ifthecycle-by-cycletripeventisstillpresentwhenthe
TZFLG[CBC]bitiscleared,thenitwillagainbeimmediatelyset.
One-Shot(OSHT):
Whenaone-shottripeventoccurs,theactionspecifiedintheTZCTLregisteriscarriedout
immediatelyontheEPWMxAand/orEPWMxBoutput.Table2-18liststhepossibleactions.Inaddition,
theone-shottripeventflag(TZFLG[OST])issetandaEPWMx_TZINTinterruptisgeneratedifitis
enabledintheTZEINTregisterandPIEperipheral.Theone-shottripconditionmustbecleared
manuallybywritingtotheTZCLR[OST]bit.
TheactiontakenwhenatripeventoccurscanbeconfiguredindividuallyforeachoftheePWMoutput
pinsbywayoftheTZCTL[TZA]andTZCTL[TZB]registerbits.Oneoffourpossibleactions,shownin
Table2-18,canbetakenonatripevent.
ePWMSubmodules 60SPRU791DNovember2004RevisedOctober2007
SubmitDocumentationFeedback