ZHCA069–2007年10月提交文档反馈多重等脉宽调制触发区事件源的配置应用报告ZHCA069–2007年10月多重等脉宽调制触发区事件源的配置JeffStarfford摘要为了确定特殊TZ事件源,用脉宽输出(PWM)对多触发区(TZ)响应的应用日益受到挑战。这份应用报告描述的内容是:当多重TZ事件在一个PWM通道出现时,如何配置等脉宽调制以确认TZ事件源。在应用报告里讨论的项目源代码都能在:http://www-s.ti.com/sc/techlit/spraar4.zip下载到。目录1TZ介绍22TZ面临的问题23确定TZ源34结论75参考7参数表1TZ子模块22TZ子模块模式控制逻辑33TZ子模块中断逻辑4目录表1TZ控制寄存器区描述42F2808eZdspP8连接器63和TZ共用的GPIO针7AECC2000http://www.ti.com.cn多重等脉宽调制触发区事件源的配置ZHCA069–2007年10月提交文档反馈www.ti.com1Trip-ZoneIntroductionCTR=CMPBCTR=CMPACTR_DirCTR=0CTR=PRDDeadBand(DB)CounterCompare(CC)ActionQualifier(AQ)EPWMxAEPWMxBCTR=CMPB�CTR=0EPWMxINTEPWMxSOCAEPWMxSOCBEPWMxAEPWMxBTZ1toTZ6CTR=CMPA�Time-Base(TB)CTR=PRD�CTR=0�CTR_DirEPWMxSYNCIEPWMxSYNCOEPWMxTZINTPWM-chopper(PC)EventTriggerandInterrupt(ET)TripZone(TZ)GPIOMUXADCPIEPIE1.1PurposeoftheTrip-ZoneSubmodule2ChallengeofMultipleTrip-ZonesTrip-ZoneIntroductionFigure1.Trip-ZoneSubmoduleEachePWMmoduleisconnectedtosixTZnsignals(TZ1toTZ6)thataresourcedfromthegeneral-purposeinput/output(GPIO)MUX.Thesesignalsindicateexternalfaultortripconditions,andtheePWMoutputscanbeprogrammedtorespondaccordinglywhenfaultsoccur.Thekeyfunctionsofthetrip-zonesubmoduleare:•TripinputsTZ1toTZ6canbeflexiblymappedtoanyePWMmodule.•Uponafaultcondition,outputsEPWMxAandEPWMxBcanbeforcedtooneofthefollowing:–High–Low–High-impedance–Noactiontaken•Supportforone-shottrip(OSHT)formajorshortcircuitsorover-currentconditions•Supportforcycle-by-cycletripping(CBC)forcurrentlimitingoperation•Eachtrip-zoneinputpincanbeallocatedtoeitherone-shotorcycle-by-cycleoperation.•Interruptgenerationispossibleonanytrip-zonepin.•Software-forcedtrippingisalsosupported.•Thetrip-zonesubmodulecanbefullybypassedifitisnotrequired.EachePWMoutput(EPWMxAandEPWMxB)canbesourcedbyanyorallofthesixTZninputs(TZ1toTZ6).Sincether...