2020-07-27 08:03 AM
Hello,
I'm using the STM32f417ig. I'm trying to configure TIM1 in a specific way, but I couldn't find information about this in the reference manual or on the web.
TIM1 is configured to be reset by a trigger event coming from TIM2 (slavemode set in the SMCR register). It is working well and the imter resets to 0 on a trigger event.
My question is : Is it possible to set the timer to a specific non-zero value when the trigger event occurs ?
Thanks for the help,
Ril
Solved! Go to Solution.
2020-07-27 08:35 AM
Not really. There might be a hook where you could set it via DMA but even then there would a bit of delay. You could handle reset manually but then you’d be introducing jitter and delay.
Might be another way to achieve what you’re trying to do.
2020-07-27 08:35 AM
Not really. There might be a hook where you could set it via DMA but even then there would a bit of delay. You could handle reset manually but then you’d be introducing jitter and delay.
Might be another way to achieve what you’re trying to do.
2020-07-29 01:28 AM
Ok, thanks for answering!