In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sparks-R-Fun wrote: Amit, I am wondering if there is a chance that the program [b]is working[/b] as you expect but just too fast for you to observe the result with your current scope setting. Your gled1 is going to clear and then set very quickly so be sure to use a very fast sweep rate on your scope. Including the break command and running the debugger allows the program to suspend while gled1 is clear. I suspect that including some form of a pause in place of the break statement would reveal whether or not gled1 is actually setting and clearing. Just trying to help. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147472#m147701 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)