Question
Interrupt after a certain timeout after the last timer interrupt
I am using timer interrupt to measure the frequency of a square signal. When no signal is detected, I want to set the frequency to 0. The problem is that the frequency keeps the value it got at the last interrupt. Is there some way so that I can trigger one single interrupt after a certain timeout after the last rising edge of my signal ? I want to trigger that interrupt only once after each end of signal.