AnsweredAssumed Answered

Reset timer in Input Capture

Question asked by paroulek.lukas on Nov 4, 2015
Latest reply on Nov 5, 2015 by paroulek.lukas
Hi all,
I´m using timer in Input Capture mode to measure interval between pulses. Actual solution

actualTime = TIM3->CCR1;
if(actualTime > lastTime) delay = actualTime - lastTime;
else delay = 0xffff - lastTime + actualTime;

Is possible to set timer to clear counter after new input pulse?

Outcomes