Instruction times...? BS2 Timekeeping in general...
ericpine
Posts: 31
I have a time sensitive app that I have been working on for a while now.. I wonder if anyone has a reference table of --time in milliseconds or better-- for common commands in a BS2 scenario. My goal is to detect some sensors and record that data in less than a minute, in (as) accurate milliseconds (as I can). I have a bit of an issue with time consumed by my loops to detect my I/O pins. I understand that my issue is code dependent, but what I'm dealing with is simple stuff...
IF 15=HI THEN GOTO X
IF 15=LOW THEN YADDA=YADDA+1
PAUSE 1
RETURN
I saw a nice bit on "Pause 0" lasting 230 microseconds or so... ANY! information like this would be invaluable in my project success.
I have briefly looked at some timers/clocks/calanders!?#$% but haven't found anything that covers my needs. Any help would be greatly appreciated!
ElSeminewbionicavantgarde
-ep
IF 15=HI THEN GOTO X
IF 15=LOW THEN YADDA=YADDA+1
PAUSE 1
RETURN
I saw a nice bit on "Pause 0" lasting 230 microseconds or so... ANY! information like this would be invaluable in my project success.
I have briefly looked at some timers/clocks/calanders!?#$% but haven't found anything that covers my needs. Any help would be greatly appreciated!
ElSeminewbionicavantgarde
-ep
Comments
In turbo mode, the sx has a 1:1 instruction per clock cycle ratio; in normal mode the ratio is 1:4. The speed is determined by the oscillator you use, with clock speeds up to 75MHz. Additionally, if needed, you also have internal & external interrupts to work with.
This should give you almost everything you need:
http://www.emesystems.com/BS2speed.htm
Thanks go to Dr. Tracy Allen.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
-Eric
Make sure you visit all of the Stamp areas on that web site. There is a wealth of practical information that you may not find anywhere else:
http://www.emesystems.com (bottom of the page)
Regards.
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
Let me assure you they do. If I hadn't mentioned it, I'm sure one of the Parallax folks would have done so.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.