I don't know why this is put in the "other processors" forum...
I use Timer_A_generatePWM() for pwm motor control. What is the accepted/preferred way to stop it with DriverLib?
Timer_A_stopTimer()? Set the duty cycle to zero?
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.
I don't know why this is put in the "other processors" forum...
I use Timer_A_generatePWM() for pwm motor control. What is the accepted/preferred way to stop it with DriverLib?
Timer_A_stopTimer()? Set the duty cycle to zero?
Hi,
Another option is to switch the GPIO from PWM output to IO output and output low.
If you want to deassert ("off") the PWM signal immediately, I suggest instead setting (leaving) OUT=0 and setting OUTMOD=0 (Timer_A_setOutputForOutputModeOutBitValue and Timer_A_initCompare, I think).
This will also set the pin logic inside the timer, so you don't get a surprise when you start it up again.