AnsweredAssumed Answered

TIM1 and TIM8 preload behavior

Question asked by kihlmark.richard.001 on Nov 4, 2015
Latest reply on Nov 5, 2015 by waclawek.jan
Hello,
We're using STM32F207Zx and have a strange problem when using TIM1/8 for PWM.
when code include line
TIM_OCxPreloadConfig(Tim,TIM_OCPreload_Enable);
where x can be any number from 1-4 for TIM1, new duty values are loaded much later than expected. Delay time is drifting and change between 10-350ms in a predictive repetitive sequence.
I know that these timers are a bit special and supposed to be used for motor control.
We have this line to change timer behavior to normal PWM
    if(Tim==TIM1) TIM_CtrlPWMOutputs(Tim,ENABLE);   

Is there a bit to be set or cleared to solve this problem?
We use 10 other timers with preload enabled and don't see same behavior with them.

Regards,
Richard


Outcomes