using the TIMER2 ETR input in reset mode for stm32F446RE
Hi everybody,
i would like to use the STM32F446 Timer2 with one external input to reset the counter (avlue to 0), then having an input capture to read the timer value between two consecutives reset thru ETR input. Input capture settings is not a problem and works fine, the event happens regularly at the iC4 frequency but as I can see the counter does not reset on ETR input.
my settings Reset Mode, signal on ETR, internal clock, signal on IC4, call back on IC capture.
What i would like to do with the counter:
t0 -> ETR signal goes down and on rising edge CNT = 0
t1 -> IC4 signal read CNT value
t2 -> IC4 signal read CNT value
...
tm -> IC4 signal read CNT value
t0 + N -> ETR signal goes down and on rising edge -> CNT = 0
....
and so on.
Is there a way to see that the ETR input was really active and put the timer CNT to 0 ??? is it possible to generate an Irq on that event ? Sending the CNt on an UART is not really convincing.
By advance I thank you guys.
PP
