In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Zoot, If you are using SX/B then make sure you use the NOSTARTUP option on the PROGRAM line. Like "PROGRAM Start NOSTARTUP" this will prevent SX/B from clearing all the variables duing a wake-up. A wake-up input only has an effect if the SX is in sleep mode. Otherwise it does nothing. Yes, the ONLY instruction that exists to change !RB is "MOV !RB,W" so anything else is a compound instruction that get expanded by the assembler. Look at my "Magic 8 Ball" code for an example of using the Watchdog wake-up. Most will apply to using a wake-up pin too. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=228579#m228653 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)