Thanks for the input, but I don't seem to have made my problem clear. Just to clarify I'm not trying to differentiate between WD Reset and other resets. There are two scenarios: a) A watchdog reset has occurred during normal operation (so we have prevented microcontroller lockup... what the WD is for) b) I have caused a watchdog timeout in order to measure the timeout so I can calibrate my delays. To identify (b) I set a bit in a file register (general purpose) but it seems that the watchdog reset is causing is 'corrupting' this bit and I cannot be sure of the status of my data register. This worked fine on the F84, but the F873 doesn't seem to like it. I need a way to identify what I was doing before the reset (I don't like to use EEPROM because of the limited write/erase cycles and also the uncertainty of how long a write cycle has taken). ----- Original Message ----- From: Olin Lathrop To: Sent: Thursday, December 14, 2000 1:40 PM Subject: Re: [PIC]: PIC16F87x Flash Memory after WD Reset > >> > In order to differentiate between this watchdog reset and a "genuine" rest I > would just set a bit and clear it once I had the value. > > This worked fine on the 16F84, but I recently tried a similar routine on the > 16F873 with no luck. > << > > Use the PCON register status bits. That's what they are for. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics