Skip to main content
Joe.H
Associate III
April 13, 2019
Question

STM32F427 TIM7 One-Shot - Incorrect duration first time use

  • April 13, 2019
  • 0 replies
  • 454 views

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

This topic has been closed for replies.