> Date: Sun, 12 May 1996 20:13:58 +0000 > Reply-to: pic microcontroller discussion list > From: Gerhard Fiedler > Subject: Re: WDT problem > To: PICLIST@MITVMA.MIT.EDU > At 13:24 12/05/97 +0000, Ruben Jšnsson wrote: > >I have solved my problem by not using the *TO bit to check if the > >reset came from a WDT (since I can't rely on it) and instead using a > >signature in RAM which is set to a certain value when I have tested > >the WDT at power up the first time. This signature is then not changed > > by the short interruption of the power. > > How do you then detect the difference between a real WDT reset and a /MCLR > reset? I don't, but it doesn't realy matter. In my aplication the main thing is that the program gets back to a known state if something caused it to get out of control. ------------------------------------ Ruben Jšnsson AB Liros Elektronik Box 9124 200 39 Malmš Sweden Tel +46 40 14 20 80 Mail: ruben@sbbs.se ------------------------------------