UsingtheePWMModulefor0%-100%DutyCycleControlApplicationReportLiteratureNumber:SPRAAI1December20062SPRAAI1–December2006SubmitDocumentationFeedbackContents1Introduction................................................................................................................52ConfiguringthePWMModule.......................................................................................53AchievingFullRangeofDutyRatios............................................................................63.1Up-DownCountMode...........................................................................................63.2Up-CountMode..................................................................................................74SoftwareFlowchart.....................................................................................................85SampleCode..............................................................................................................96References...............................................................................................................11SPRAAI1–December2006TableofContents3SubmitDocumentationFeedbackListofFigures1EPWMBlockDiagram......................................................................................................52SoftwareFlowchart..........................................................................................................84ListofFiguresSPRAAI1–December2006SubmitDocumentationFeedback1Introduction2ConfiguringthePWMModuleCMPA.15-0CompareRegisterShadowedCMPB.15-0CompareRegisterShadowedCompareLogicActionQualifierAQCTLA.11-0AQCTLB.11-0DeadBandDBCTL.4-016-BitTime-BaseCounterTBCTR.15-0EPWMxSYNCOEPWMxSYNCIPeriodRegisterShadowedTBPRD.15-0ClockPrescalerTBCTL.12-7SYSCLKOUTPWMChopperPCCTL.10-0TripZoneTZSEL.15-0EPWMxAEPWMxBTZxApplicationReportSPRAAI1–December2006UsingtheEnhancedPulseWidthModulator(ePWM)Modulefor0%to100%DutyCycleControlHrishikeshNene..............................................................