This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem of updating frequency in PWM signal...

Hi!
I am a beginner in programming STM32f4 and that is my biggest problem, I think...

I am working now on the project where I need do profile the velocity of servo motor (i.e. trapezoidal velocity)... So I need to control the number of pulses I have sent and periodically update the frequency of signal...

So I have a question:
Can I just change just: TIMx->ARR, PSC and CCRx registers in the PWM signal generator...? Or for example I must turn of timer first, and then update parameters...?

Thanks a lot for any hints,
best regards,

P.S
Have You any example projects of velocity profiling in C...? Or any tutorial of doing that on uC... Thanks again...

0