I need to know the frequency of a signal that varies from about 1 Hz to
20 Hz. I was thinking of setting up an external interrupt that interrupts when the RPM magnet goes by and to read one of the 3 timers in the processor to compute the period of the signal.Does that sound like the correct way to do this? It seems that I could do something with interrupting the timer directly instead, for example, with tioa2 but I'm not sure how that would work.
I'd probably get timer overflows at the lower rpm's.
Does anyone have a short example of how to do this?
Jim