Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

WDT brain breaker

$
0
0
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...

WDT brain breaker

Viewing all articles
Browse latest Browse all 4923