Searching \ for 'WDT vs. MCLR resets' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/index.htm?key=wdt+mclr+resets
Search entire site for: 'WDT vs. MCLR resets'.

Truncated match.
PICList Thread
'WDT vs. MCLR resets'
1998\10\28@012440 by Eric Earnst

flavicon
face
Hi all,
>From looking at the datasheet for a 16C73A it looks like there is no
reliable way to tell if a reset occurred from a WDT reset or a MCLR
reset.  It appears that NOT_TO = 0 is intended to indicate that a WDT
reset occurred, however since NOT_TO is undefined after a MCLR "Reset
during normal operation" a test of NOT_TO is not a reliable way to
differentiate between a WDT reset and, in my case, a reset switch reset.

I'd like to set up the box I am building so that if a WDT reset occurs I
can blink an LED with a pattern indicating where the code was before the
reset.  The user would then hit a reset switch attached to MCLR to
restart the code.  I was also going to use the reset as a general
purpose abort that would clean up the outputs and halt the code.  So I
guess I have two problems, I can't tell for sure if the reset occurred
from the WDT or from a user hitting the reset switch (MCLR).

Any ideas beyond not using MCLR to reset and instead just putting it on
a port that I poll (or PORTB interrupt)?

Thanks,
Eric

1998\10\28@014143 by Michael Hagberg

flavicon
face
I'm looking at my 16C5X book (cause I'm too lazy to find the 73 book) but i
think this is the same. look at the /PD flag during power on reset it is set
to '1' and after a watchdog reset it is set to '0'. look for a table called
'Reset conditions for special registers'

michael

You may leave the list at any time by writing "SIGNOFF PICLIST" in the
   body of a message to spam_OUTLISTSERVTakeThisOuTspamMITVMA.MIT.EDU.

{Original Message removed}

1998\10\29@005338 by Eric Earnst

flavicon
face
Hi,
Unfortunately in the 73A, /PD is U for MCLR resets during normal
operation (from the table you referred to).  It is 0 for MCLR reset
during sleep or interrupt wake-up from sleep.

Thanks,
Eric


{Original Message removed}

1998\10\29@114136 by Michael Hagberg

flavicon
face
'U' means Unchanged, 'X' means unknown
if the wdt triggered then /to will be set to '0', if this occured during
normal operation then /pd will be set to '1'. then you can flash you led.
michael

You may leave the list at any time by writing "SIGNOFF PICLIST" in the
   body of a message to .....LISTSERVKILLspamspam@spam@MITVMA.MIT.EDU.

{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...