Do you have the Power up timer turned on in the config bits?
Apparently this PIC only directly differentiates between a Power On Reset and Brown Out Reset in the PCON register.I'm not sure how it determines one of those 2 actions, and if it does reset due to a hang, if it really is a "complete" reset (like a POR would be)
But if you look around the datasheet, you'll find a number of registers that are zero'd out differently depending on the type of reset, such as ANSEL. On any reset, it's set to all 1's.
And in the datasheet, it's states that during normal ops, a WDT reset, resets the chip like MCLR had been pulled down. But, if you put the PIC to SLEEP, a WDT causes the PIC to pick up where it left off without changing registers like a 'normal' reset would.





Bookmarks