In SX Microcontrollers, SX/B Compiler and SX-Key Tool, rwatts wrote: SX28 documentation says that the value of the RA/RB/RC output ports remains unchanged by a watchdog reset or a MCLR reset. However in testing I've done with two different SX-28's, either a watchdog reset or a MCLR reset caused the value of RC to change from $00 to $FF. This code demonstrates the watchdog case: ----------------------------------------------------------------------------------- DEVICE SX28L, OSC4MHZ, TURBO, STACKX, OPTIONX, BOR42, WATCHDOG IRC_CAL IRC_4MHZ FREQ 4_000_000 PROGRAM Start NOSTARTUP Start: TRIS_C = 0 IF STATUS.4 = 1 THEN RC = 0 ENDIF here: GOTO here ----------------------------------------------------------------------------------- On power-up, LEDs connected to port C are off. After a couple of seconds, a watchdog reset happens and the LEDs turn on. This code demonstrates the MCLR case: --------------------------------------------------------------------------------- DEVICE SX28L, OSC4MHZ, TURBO, STACKX, OPTIONX, BOR42 IRC_CAL IRC_4MHZ FREQ 4_000_000 PROGRAM Start NOSTARTUP Start: TRIS_C = 0 PAUSE 1000 RC = 0 here: GOTO here ----------------------------------------------------------------------------------- On power-up the LEDs are on for one second and then go off. When MCLR is grounded and released, the LEDs come on for one second and then go off. I'm using the SX 28 Tech Board and the reset button on the board. The SX-Key is disconnected. Has anyone else seen this? Is this issue documented somewhere? Am I missing something? Thanks! ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=152406 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)