In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Matthias09 wrote: Ok, here it comes: I solved it! :) Problem: the 450us waiting period suggested between Pulseout and pulsein in this thread [url] http://forums.parallax.com/forums/default.aspx?f=7&m=188113&p=1 [/url]. I reduced it from my 100us to 5(!)us and voila. No problems with any pause or break statements! Also now same values in debug mode and real mode (tested it with a led that turns on on a certain distance). However, I'm still curious how this long waiting time can impact the result? Does the ping just catch old bursts? Matthias ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=175860#m395840 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)