HI I HOPE SOMEONE CAN HELP i am trying to build an odometer for my car, the circuit is simple enough a hall effect trigger and a magnet to generate a pulse, i need a pic controller to count so many pulses before displaying 1 mile. as the propshaft on the vehicle is going to rotate several times before covering a distance of 1 mile, there fore producing a given amount of puleses before covering a mile. how can i write this in picbasic pro. also another part of the design i am not sure of is how to retain the amount of miles covered. so next time power is switched on it continues counting. all help is appreciated.

thanks mat