www.ti.com
Action-qualifier(AQ)Module
AQCTLA[15:0]
Action-qualifiercontrolA
EPWMA
EPWMB
TBCLK
CTR=PRD
CTR=Zero
CTR=CMPA
CTR=CMPB
CTR_dir
AQCTLB[15:0]
Action-qualifiercontrolB
AQSFRC[15:0]
Action-qualifierS/Wforce
AQCSFRC[3:0](shadow)
continuousS/Wforce
AQCSFRC[3:0](active)
continuousS/Wforce
Action-Qualifier(AQ)Submodule
Theaction-qualifiersubmoduleisbasedonevent-drivenlogic.Itcanbethoughtofasaprogrammable
crossswitchwitheventsattheinputandactionsattheoutput,allofwhicharesoftwarecontrolledviathe
setofregistersshowninTable2-6.
Figure2-18.Action-QualifierSubmoduleInputsandOutputs
Forconvenience,thepossibleinputeventsaresummarizedagaininTable2-7.
Table2-7.Action-QualifierSubmodulePossibleInputEvents
SignalDescriptionRegistersCompared
CTR=PRDTime-basecounterequaltotheperiodvalueTBCTR=TBPRD
CTR=ZeroTime-basecounterequaltozeroTBCTR=0x0000
CTR=CMPATime-basecounterequaltothecounter-compareATBCTR=CMPA
CTR=CMPBTime-basecounterequaltothecounter-compareBTBCTR=CMPB
SoftwareforcedeventAsynchronouseventinitiatedbysoftware
Thesoftwareforcedactionisausefulasynchronousevent.ThiscontrolishandledbyregistersAQSFRC
andAQCSFRC.
Theaction-qualifiersubmodulecontrolshowthetwooutputsEPWMxAandEPWMxBbehavewhena
particulareventoccurs.Theeventinputstotheaction-qualifiersubmodulearefurtherqualifiedbythe
counterdirection(upordown).Thisallowsforindependentactiononoutputsonboththecount-upand
count-downphases.
ThepossibleactionsimposedonoutputsEPWMxAandEPWMxBare:
•SetHigh:
SetoutputEPWMxAorEPWMxBtoahighlevel.
•ClearLow:
SetoutputEPWMxAorEPWMxBtoalowlevel.
•Toggle:
IfEPWMxAorEPWMxBiscurrentlypulledhigh,thenpulltheoutputlow.IfEPWMxAorEPWMxBis
currentlypulledlow,thenpulltheoutputhigh.
•DoNothing:
KeepoutputsEPWMxAandEPWMxBatsamelevelascurrentlyset.Althoughthe"DoNothing"option
preventsaneventfromcausinganactionontheEPWMxAandEPWMxBoutputs,thiseventcanstill
triggerinterruptsandADCstartofconversion.SeetheEvent-triggerSubmoduledescriptionin
Section2.8fordetails.
38ePWMSubmodulesSPRU791D–November2004–RevisedOctober2007
SubmitDocumentationFeedback