Question
Timer setup to measure the time between 2 events using Input Capture
Hello all,
On and STM32F722 I am measuring the speed of an object that is passing between 2 photogates using external interrupts.
I would like to automate the time measure using Input Capture direct mode on channel 3 and 4 of timer 4, however I do not know how to setup TIM4 in order to start the timer when CH3 is triggered and to stop it when CH4 is triggered.
Can anyone guide me?
Thank you.