Hi,
A real WDT brain breaker
I want to use the WDT with a Pic 18f8722. No problem however, I want an extra function!
Each function will carry an unique number like Function_Number.
When the WDT runs out it will reset the pic. >> no problem working.
The function number indicate which function hangs.
But!
That information is set to zero during the reset (should be).
The RCONbits.To is set to zero after reset. ( if(!RCONbits.TO) { Report_Hang();} // working
How to remember the Function_Number without using flash or external memory?
I want to produce Function_Number after the reset caused by the WDT.
Whom knows?
Picbuster
A real WDT brain breaker
I want to use the WDT with a Pic 18f8722. No problem however, I want an extra function!
Each function will carry an unique number like Function_Number.
When the WDT runs out it will reset the pic. >> no problem working.
The function number indicate which function hangs.
But!
That information is set to zero during the reset (should be).
The RCONbits.To is set to zero after reset. ( if(!RCONbits.TO) { Report_Hang();} // working
How to remember the Function_Number without using flash or external memory?
I want to produce Function_Number after the reset caused by the WDT.
Whom knows?
Picbuster