In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: [quote="Nate"] 2 Clock cycles after high-to-low trans: JB RA.0, $ JNB RA.0, $ JB RA.0, $ (Main code here, no jump) [/quote] The fastest conditional loop on the SX is 4 cycles (as in JB RA.0, $), but if the transition occurs right after the bit test, it will be 5 cycles until the next instruction. 3 for the jump back, 1 for the bit test, and 1 for the skip. Two cycles would be best case, 5 cycles worst case. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=120213#m120269 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)