Hi everybody,

Well, I´m trying to build a digital speedometer for my car and I'm facing some problems I can not fix by myself.

I need to count incoming pulses for 1 second (sent by a Hall sensor), calculate the speed and show it in the LCD.

The problem is : I´m a hobbyst and I don´t know how to do that without loosing pulses.
I was using the COUNT method but it was not good.


Some guys told me that I should use TMR0 or TMR1 to do that.
But... I have no idea how to do that.
I'm using a 16F628
Could someone post a code showing how to count pulses within 1 second and show the results using INT/TMR0 or TMR1 ?

Thanks you.

regards

Sérgio Pinheiro