2016-01-25 06:42 AM
Hi all,
on the DM00068049 on pg. 452, is reported:In case of PWM mode, this function is mandatory: TIM_OCxPreloadConfig(TIMx,TIM_OCPreload_ENABLE);But I see that timer works good also without recall this functions, why?2016-01-25 09:02 AM
The timers have a bunch of shadow registers that allow all parameters to be synchronously loaded at the Update event. Saves a bunch of race/phase/glitch issues where you'd otherwise have to reprogram things in the interrupt and hope your latency was low.
By preloading, things push through the shadow registers immediately, and you don't have to wait a whole period of the timer for settings to become active. You really want everything set before Enabling the timer, so it starts as anticipated/desired.