signal is ttl from spindle of an old CNC machine.i want to measure rpm.max rpm are 2400 so max frequency is 50 Hz.the code i wrote above is now working correctly to calculate period.now iwant to calculate rpm.
rmp=60/period
should do the trick i think
but how to perform this division?
accuracy is not a problem now.
Bookmarks