One particularly irritating variety of bug in a microprocessor-controlled system is for the microprocessor to unexpectedly reset. An important tool for debugging this kind of problem is a list of possible causes. What could cause a microcontroller to unexpectedly reset?
Microcontroller Debugging – Causes of Unexpected Resets
debuggingmicrocontrollermicroprocessorreset
Best Answer
On PIC and dsPIC chips, I have observed the following causes of unexpected reset.
Hardware:
Software:
On some dsPICs, the RCON register stores bits indicating cause of reset. This can be very helpful when debugging.