In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: [quote="metron9"] Curious why the same machine code instruction is genersted by SX/B in both lines 195 and 201, as well as 203, and 209 for the LOW command, anyone know? [/quote]Metron9, They were added to prevent glitches on the pin. Let's assume the output latch is set high and you want to do "LOW pin". If you set the direction first, then set the output you will get a high on the pin briefly. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=153066#m153123 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)