The primary goal is to make the difference between a "normal" reset (POR, MCLR, Reset instruction...) and an abnormal condition (Stack under or over flow, Watchdog reset, brown out....).
Going then more in details is useful for debugging. A BOR or a WDT will need totally other ways of debugging.
The problem with the table reproduced earlier are all those "u" values. There are some cases where the order of evaluation has its importance. And that's where I am stuck
Evalutating the different conditions is not a problem in itself, but the order in which they are evaluated is.
The "Mask" method does not solve this issue (or am I missing something ?)
My guts tell me there *MUST* be a method to be able to determine without doubt what the cause of the reset was.
I was expecting to find some info on the microchip website, in the AN or TB, but I must say that their search engine is kind of crap.... (sorry....)
Furthermore, I have the impression that I have seen something like that a long time ago, but am unable to retrieve it.....