This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123AE6PM: PWM output not going to zero.

Part Number: TM4C123AE6PM


Tool/software:

I have a PWM signal that works fine except it won't go to 0, if the pulse width is set to 0 the output goes solid high instead of solid low.  Code:

SysCtlPWMClockSet(SYSCTL_PWMDIV_64);                                        // 1250 KHz PWM Clock.

PWMGenConfigure(PWM0_BASE, PWM_GEN_0, PWM_GEN_MODE_DOWN | PWM_GEN_MODE_NO_SYNC );

PWMDeadBandDisable(PWM0_BASE, PWM_GEN_0);

PWMGenPeriodSet(PWM0_BASE, PWM_GEN_0, 6250);                                // 200Hz output.

PWMPulseWidthSet(PWM0_BASE, PWM_GEN_0, 0);                                  // 0% duty cycle.

PWMOutputUpdateMode(PWM0_BASE, PWM_OUT_0_BIT, PWM_OUTPUT_MODE_SYNC_LOCAL);

PWMGenEnable(PWM0_BASE, PWM_GEN_0);

PWMOutputState(PWM0_BASE, PWM_OUT_0_BIT, true);

Thanks, Doug