Hi Matt,
I have been using the method posted by me some time ago (see link below) without problems.
I think you´d need to change the TMR0 value to set it to 852 ms.
I´m using this code to count pulses coming form my car´s wheel and storage the total mileage of a trip and calculate the average speed and the average comsumption of gasoline. Also, I can show the instant speed.
This method is working fine. I did some stress tests under Proteus and it is working very well.
If you have some good advice in order to improve the performance, let us know !
http://www.picbasic.co.uk/forum/show...=pulse+counter
Regards.
Sérgio




Bookmarks