If you've got a spare pin and a 'scope you can time your code empircally. Set the pin high before going into the loop and return it low when coming out. What the pin on a 'scope. Of course, for *accuracy* you'll need to subtract the timing for loading the HIGH and LOW instructions that manipulate your 'scope output pin.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Jon Williams Applications Engineer, Parallax
Dallas, TX· USA
Comments
· Try the link below...Forum Guru Tracy Allen has done some research on this very thing and has made his findings available to us on his website.
http://www.emesystems.com/BS2speed.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA