Re: Converting period to Miles Per Hour
Hi, Amoque
Here we meet the precision problem with reciprocal calculations ....
sooo ... I would suggest, depending on the pulse count or the pulse duration, to choose the value that gives the minimum error to the result.
I.E. ... @ low speed, let's consider pulse duration ( big number gives better resolution ) and @ High speed let's consider the pulse count.
But ... as our "friend" didn't tell what he wants to measure ( snail or car racing ???
) ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks