In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Something to look out for if you use the "NoStartup" option on the "PROGRAM" line. The TRIS_x RAM locations are not set to $FF (all inputs) if you use "NoStartup". As a consequence when you use INPUT or OUTPUT to change a pin (or use any command that sets a pin to input or output), it could set other pins to outputs. As an example: PROGRAM Start NoStartup Start: INPUT RB.0 ' This could set any of the pins RB.1 to RB.7 to outputs So if you use NoStartup you should set the TRIS_x registers like "TRIS_B = %11110000" I just spent a hour finding this problem and I don't want you to have to do the same... Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=125349 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)