2017-12-11 02:33 AM
Trying to use TIM16 of a STM32F072 to generate a (software triggered) one shot high pulse at a GPIO pin.
As there are some screenshots, I have attached a PDF to show the problem. I do not use any timer hardware beside of ARR and CNT, but get a 40 usec (first) pulse instead of a 200 usec pulse...Running TIM16 as periodical timer with same initialization, second and all following pulses are 200 usec!?
Any idea?Best regards Juergen.Solved! Go to Solution.
2017-12-11 02:59 AM
Without dwelling much upon your code: are you aware of the fact that PSC register is loaded into actual prescaler only upon update?
JW
2017-12-11 02:59 AM
Without dwelling much upon your code: are you aware of the fact that PSC register is loaded into actual prescaler only upon update?
JW
2017-12-11 06:58 AM
You are - as nearly always - right, I was not aware...Have to read ST manuals much more 'wordwise'...
Thank you for your support!2017-12-11 07:04 AM
How comes 'nearly'??? ;)
Glad you got it working.
JW