In SX Microcontrollers, SX/B Compiler and SX-Key Tool, VelocitąPaola wrote: I'm actually restricted from posting the whole program, but I've included a snipet below. Like I said, nothing has been changed in the code whatsoever from when it was last working to now. Looking below, you would expect that bit3C = 1, bit2C = 0, and bit1C = 0, but instead all three usually equal 0. In case you were wondering, these particular pins are connected to a BCD encoder/buffer for a seven segment display. [code] bit1C PIN RB.0 OUTPUT bit2C PIN RB.1 OUTPUT bit3C PIN RB.2 OUTPUT currPos VAR byte ... dispPos SUB 0 ... currPos = 4 GOSUB dispPos dispPos: bit1C = currPos.0 bit2C = currPos.1 bit3C = currPos.2 RETURN [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=263350#m263394 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)