Glitch free duty cycle update
Hi, I am trying to update the duty cycle output on a STM32F107 MCU, glitch free of course. I know I have to set the appropriate PE bit in the TIMx->CCMRx register. This can be done with the library function TIM_OCxPreloadConfig(). At the time I make this call no lock level has been set on the timer in question. BTW, I tried directly modifying the register and using this function. I also verify the register contents after the operation and the desired bit is set. Still, I am getting glitches when modifying the duty cycle. Now every time, but a lot. Is there anything else I might be overlooking?
Thanks for any ideas.
