Hi,
<< The RPM may vary greatly >> ... ha,ha ...
YES, but from how much to how much ??? and what is the precision looked for ???
The simplest way would be to use a 16 Bits timer/counter ... you have 3 aboard.
could feed another 16 bits soft counter ... if really needed.
as our INTERNATIONALs Mel & Darrel showed us how to deal with 31 bits numbers, DIV32 could be used to recover some "easy to use" 16 bits results.
Then Just read result when needed ...
Alain
Other simple solutions using a soft-switchable pre-divider ...
43 to 32000 rpm with a simple 16C84 ( PbP programmed ! ) ...i.e. with .1% precision.
************************************************** ***********************
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