Folks,
I'm designing some low cost house alarm systems.
I've done a number of uP projects which are powered for a few hours at a time but never anything operating 24/7.
I would appreciate some advice on the best method to recover from a WDT timeout.
If the alarm is armed, then it must recover in that mode.
My first idea is to save the state of the armed status bit to eeprom each time it changes.
This won't "wear out" the eeprom.
Should the WDT trip, the code will automatically re-arm the alarm.
I'd not write a single bit status to the eeprom byte, but rather a 0 or 11111111b for a little extra security should a bit fail in the eeprom.
Is there a better method of recovering ?
Regards
Malcolm(t)
I'm designing some low cost house alarm systems.
I've done a number of uP projects which are powered for a few hours at a time but never anything operating 24/7.
I would appreciate some advice on the best method to recover from a WDT timeout.
If the alarm is armed, then it must recover in that mode.
My first idea is to save the state of the armed status bit to eeprom each time it changes.
This won't "wear out" the eeprom.
Should the WDT trip, the code will automatically re-arm the alarm.
I'd not write a single bit status to the eeprom byte, but rather a 0 or 11111111b for a little extra security should a bit fail in the eeprom.
Is there a better method of recovering ?
Regards
Malcolm(t)