addendum ...
Hi,
Gioppy is bright right ...
so let's add :
IF period.7 then
Period = period/2
scale = 2
ELSE
scale = 1
ENDIF
intermediate = 60 * 1000 / prescaler_value ' Compulsory !!!
' ( no "intermediate CON xxx" allowed )
' Disable interrupts ... if some used !!!
Dummyvar = 1000 * intermediate
rpm = DIV32 period
rpm = rpm / scale
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