Hi Clyde, As I said in my previous note, I set the Prescaler to the WDT and then loaded the values with 0b0111 (which seems to give me the 2.3 sec delay that it should according to 18 msec x 128). So, I don't think that I am getting another reset with the WDT, but could the OPTION Register be reset (turning back the WDT delay to 18msecs)? Actually, thinking about it, this may be very possible because I have not looked very closely at what is happening when the button is pressed (Yet another case where I wished I had a scope at home). Componding the problem is that I display the contents of STATUS and the button/WDT using LEDs, with a looping delay before going back to sleep. Maybe the program is working correctly, but the WDT is timing it back out and I can't see what's happening. Although I did try turning off the WDT from the programmer, maybe something else is happening (and something else for me to try). Thanx for the Suggestion, Myke >Rick Miller wrote: > >> If your watchdog timer times out, the PIC should reset... not continue. > >No, not necessarily. This is true for the 12 bit PICs, but not for the >14 bitters. Myke did not say what chip he is using, but if my guess >is right, he is using a 14 bit chip. The 14 bit chips have two different >behaviours for WDT timeout - in sleep mode it just wakes the chip up >and it resumes execution. In non-sleep mode it resets. > >Myke, perhaps you are getting a WDT timeout _after_ the sleep has >"returned", and this is causing the reset? How do you handle a WDT >timeout when the key is *not* pressed? > >Clyde > >-- >Clyde Smith-Stubbs | HI-TECH Software, | Voice: +61 7 3300 5011 >clyde@hitech.com.au | P.O. Box 103, Alderley, | Fax: +61 7 3300 5246 >http://www.hitech.com.au | QLD, 4051, AUSTRALIA. | BBS: +61 7 3300 5235 >---------------------------------------------------------------------------- >For info on the World's best C cross compilers for embedded systems, point >your WWW browser at http://www.hitech.com.au, or email info@hitech.com.au > > Do you ever feel like an XT Clone caught in the Pentium Pro Zone?