2019-04-12 05:31 PM
This is a sanity check question.
I use TIM7 is one-shot mode - used to detect if a process is stuck.
The very first time the timer is used - the one-shot duration is not close to what is expected -- it's about .2usec in duration.
Every use after the first - works as expected.
Looking at the documentation, the wanted count does not get loaded from the auto-reload register until after the current event has occurred -- it appears true even if the timer was not enabled.
Is there a way to make sure the first use of the timer produces the wanted one-shot duration (what is loaded into the auto-reload register) instead of always getting a .2usec pulse from the reset value of the auto-reload register of 0xffff?
Thanks.
Joe