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.

TM4C1297NCZAD: Disable PWM

Part Number: TM4C1297NCZAD

HI,

I have a fan that is connected to PWM

At some point of time, i would like to turn off the PWM before going idle mode. I cant find a way to disable it.

This is how i configured it

GPIOPinConfigure(GPIO_PD0_T0CCP0);
GPIOPinTypeTimer(GPIO_PORTD_BASE, GPIO_PIN_0);

SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0);

TimerConfigure(TIMER0_BASE, TIMER_CFG_SPLIT_PAIR|TIMER_CFG_A_PWM);

TimerLoadSet(TIMER0_BASE, TIMER_A, 4000); 
TimerMatchSet(TIMER0_BASE, TIMER_A, 1000); 
TimerEnable(TIMER0_BASE, TIMER_A);

I have tried using TimerDisable (TIMER0_BASE, TIMER_A); but it does nothing.

The closest i have tried and worked is (this is absolutely embarrassing to use :) )

TimerLoadSet(TIMER0_BASE, TIMER_A, 4000); 
TimerMatchSet(TIMER0_BASE, TIMER_A, 3999); 

I read in other post that TIVA does not accept 0% duty cycle. 

Is there any graceful a.k.a proper way to do this? 

Thanks in advanced.