In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Matthias09 wrote: So I just kept on playing around and I figured out: If I get of the PAUSE command, but watch the reading of my Ping in debug mode and for that set a BREAK after the WATCH command of my variable, the sensors is giving out the 136 commands as well. So somehow the PAUSE and BREAK commands impact both the Ping, although there are called after the Ping routine. So my question are :) 1) is there any way how I can read the values the ping is giving back without impacting them at the same time? (what I do with the break command in combination with the watch command). 2) how can commands outside of the Ping routine impact it's results at all? I mean, everything is running in a consecutive order, so PAUSE or BREAK shouldn't have any impact in the Ping routine when called before or after. 3) Is the Ping sensor giving different values back when running in debug mode with 4Mhz compared to run in normal Mode with 50 Mhz (as I use the PAUSE statement within the routine to set delay between sending and receiving the wave). 4) How much time should I give the Ping between PULSOUT and PULSEIN? So far I have 100us (PAUSEUS 100). Thanks! 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#m395809 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)