Speed Measurement for Cars

Hi Folks!
I'm working in a digital panel for rally cars, with some pressure, temperature, engine and car speed and other things. My problem is: I need to measure car speed with a sensor plugged into the gearbox (it gives me 4000 pulses on each kilometer). If I do a measure every 1 second I can get the car speed with some calculus. But how I can do a 1 second interrupt using timer 0 or 2 (I'm using C517 from infineon and timer 1 is measuring engine speed). My program is written in C. Any suggestion will be extremelly apreciated.
Thanks !!
Luis

More questions in this forum