I'm using timer 1 in free running mode to count a given value.
An interrupt is generated when a rising edge is detected on an external pin. Now I wish to generate another interrupt, if no pulse is received in a certain amount of time.
Example: Timer 1, has a valid counting range from 0 to 65535 and my sensor valid range goes from 0 to 32000. Typically a signal occurs before the timer counts to 32000, but lets assume a fault situation, with no trigger present. I wish to have an additional interrupt if no rising edge is detected and the counting goes above 40000.
Is this possible?