In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Matthias09 wrote: Zoot, I tried your little program :) and it works great!! Stepper runs faster and much smoother, everything works...except: the Ping. I have an interrupt running with 100,000 frequency. Is this freq dependent from the freq the SX is running with? Means, does it change in debug mode (4mhz) and running mode (50mhz). Does the debug mode in any way prevent the Ping to work properly? I always receive 0 as a result of the distance measured by the ping. I also figured out that the interrupt doesn't event count the distance up, after the pulse was sent. I attached my program. I hope you can give me a hint. Best and have a good weekend! Matthias ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=394074#m401096 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)