In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Bebopalot, Don't forget that it will be slower than that simply because you have to code the loop structure plus the comparison to see if the pin is at the state you want it to be. Also remember that when you branch it takes 4 clock cycles due to the penalty paid for having to flush the instruction pipeline. [list]Thanks, PeterM[/list] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=101180#m101183 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)