Anthony said:
You can do this two ways:
1) you can count pulses over a measured time interval (using a timer)
or
2) you can time the interval between pulses (CCP)
What is the speed range of the motor?
How often do you need to calculate the RPM?
The answer to those two questions will determine the best approach.
You know what? I think it's very nice that you offered to help him, and
I hope that the poster gets something out of it. Now that I have
said that. The remainder of this reply is for some others that might
be reading it, and you know who you are.
I don't have anything nice to say about people that have nothing
better to do than ridicule some one's miss spellings and maybe, incorrect
use of a words.
Simply put, if the message is clearly conveyed, why add insult to injury.
The poster wasn't asking for some one to correct their spelling or
grammar, just a little help. And I thought the message was very clear.
If the message was not readable, then i would understand at least, for
any one that is willing to help to simply ask them to repost it a little
clearer with out all the other slag, negative commits and obscenities
thrown in.
If you feel that you must unload on some one due to a back day or
life style? then, that is what beer and the other half is for!