and i thought of a simple idea today ..
feel that this would be easier than using interrupts
configure timer as counter for measuring external pulses
and uses a simple delay loop to provide a known delay - say 100 milliseconds
the number of pulses is inverse of frequency .. but u dont need to convert either
you can simply take action depending on this count