cancel
Showing results for 
Search instead for 
Did you mean: 

Changing TIM Capture Copare Mode Register on the run

endy
Associate
Posted on January 18, 2015 at 16:27

Hello,

although I was reading through the referrence manual, I couldn�t find the answer to my question: Does anyone know when changes of the TIM CCMR ( Timer Capture Compare Mode Register) are taken into account?

For example, if I want to change from PWM1 to Toggle mode in the loop, is this taken into account emidiately? Or for example after an update event? 

How ''safe'' is it, to change the values on the fly?

I�m using the SMT32F429.

Thank you very much!

#tim-ccmr-on-the-fly
1 REPLY 1
Posted on January 18, 2015 at 18:13

The preload functionality would determine if updates occur at the update event or immediately.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..