In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Kevin, If ctrl0 is not zero then the LED toggling and reinitializing is skipped as the program jumps to the ELSE section. First pass: -- ctrl0 is 0 THEN section -- Led0 gets toggled -- ctrl1 is loaded with TLed0 (1) Second pass: -- ctrl1 is 1 ELSE section -- ctrl1 gets decremented Third pass: -- ctrl1 is 0 THEN section -- Led0 gets toggled -- ctrl1 is loaded with TLed0 (1) BTW, in my world, variables start with a lowercase letter so that I can distinguish them from constants that start with an uppercase letter. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=251567#m251679 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)