2013-10-12 09:48 AM
Hello, in fact I've been working on the STM32F3 Discovery Board and I could generate a PWM signal. But there is still something I couldn't understand, which is how to calculate the prescaler value according to the period value to make the variations of the PWM signal generated ''smooth''.
I had no success in finding a right answer elsewhere.Thanks in advance2013-10-12 10:16 AM
FREQ = TIMCLK / ((PRESCALER + 1) * (PERIOD + 1))
In order to control the phase hit you should not use the ''Immediate Load'' feature but let the new value of PERIOD get latched at the Update event.