Hi,
I'm utilizing the 18F46K22 on a project. I'm using all of the CCP modules for other purposes.

My problem is that I cannot figure out a formula to calculate miles per hour using the period between two positive pulses. The pulses are generated by rotor bolts on a wheel. There are 5 bolts, and the circumference of the wheel is 78.4 inches. It seems to me that there should be a formula that will allow me to measure the period using an interrupt driven routine, and the calculate miles per hour. But I don't know how.

Can someone help? I'm using PicBasic Pro.

Roy