In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Tony Leyland wrote: Hi all, I'm currently working on an SX/B application running on the SX48 protoboard. Does anybody know how to tell (via software SX/B or ASM) whether the SX has just been powered on or whether the reset button has been pressed ? I've tried using the NOSTARTUP option in SX/B to stop the registers from being cleared when SX/B starts up, but what I see is the registers actually remember their last values, even when the power has been removed for a while ! I expected them to have random values in them. The next part of the problem for me is to detect if the SX has just been switched on or the WATCHDOG event has triggered a reset. Does anybody know how to detect if a WATCHDOG reset has occured ? Many thanks for any help. Tony ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=132819 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)