In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote: In your code, you use RSPO mov !ra,#0 mov !re,#0 to configure port A and E bits to all be outputs. By default the M register is set to $1F in order to have the mov !rx, w instructions modify the port direction bits but you can never be sure. Therefore, I suggest to insert mov w, #$1f mov m, w or mode $1f before these instructions. Maybe, this helps. To make sure if port bits are defined as outputs, you can also use the debugger. Set a breakpoint to some code line following the mov !ra,#0 mov !re,#0 instructions, run to this breakpoint, and then click on any of the port bits in the debugger's binary representation of the port registers. The bit should toggle when it has been defined as an output. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89222#m89434 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)