Please forgive me if this all has been covered before, Ive tried searching and just cant seem to find the answer I need...
Here is the Problem I need to solve: I am building an electronic odometer. The specs for the vehicle in question say that there are 4000 pulses from the speed sensor per mile. So I need to count pulses some how. Because the PIC is going to be sending out serial information (the odometer reading) to VFD, I want to be sure that I do not miss any pulse counts so instead of using code to poll a pin I am guessing using the Timer1 as a counter is what would work best. Is this right?
If that is right, then how do I scale the timer so that it rolls over at 4000 counts and sets the interupt flag?
Bookmarks