Your result is :
504.027000 ms ... @ 8.4 µs per loop !!!
3 minutes to get it with MPSIM , as we had explained you ...
Alain
Your result is :
504.027000 ms ... @ 8.4 µs per loop !!!
3 minutes to get it with MPSIM , as we had explained you ...
Alain
Last edited by Acetronics2; - 29th June 2008 at 12:15.
************************************************** ***********************
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 " !!!
*****************************************
You see, simple and easy for an experienced programmer.
Why did you not just do that in the first place?
So my code will be:
Code:Zahl VAR WORD time_in_us VAR WORD DEFINE OSC 20 WHILE Zahl < 60000 Zahl = Zahl + 1 WEND time_in_us = Zahl * (84/10)
Last edited by Ted's; - 29th June 2008 at 12:28.
One thing to clarify: Is there a difference regarding the time being elapsed when using BYTE for Zahl instead of WORD?
So
Zahl VAR WORD
is being replaced by
Zahl VAR BYTE
1) Cause here, we teach people how to catch the fish ... it's not a PbP "Drive in" !!!
2) Cause there was NO answer to what you had asked ... and no way to understand what you wanted to do ...as we had explained you ...
3) Still no way to understand ... :
... with this code, "Time_in_us" WON' T be 504 027 ... so, why re-calculate it ???Code:Zahl VAR WORD time_in_us VAR WORD DEFINE OSC 20 WHILE Zahl < 60000 Zahl = Zahl + 1 WEND time_in_us = Zahl * (84/10)
... I do not joke : with the calculation errors ( roundings ) , the showed result will be ... FALSE !!!
Was I Spiritual enough ???
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