AnsweredAssumed Answered

Timing Between Events - Guaranteeing Catching the CNT Register

Question asked by naphtali on Oct 28, 2013
Latest reply on Oct 28, 2013 by naphtali
Using an STM32F407

I am using a timer to capture the time between two TRGI events. It is set to reset every trigger in event. In my current code, the ISR for the TRGI event reads the CNT value to determine this value.

This seems like it will be a race condition. Is there a better way to guarantee that I will get this value every time?

Outcomes