Interesting WDT Microchip Dilemma, mid range series chips like the 12F675.
If the WDT is enabled and the chip is never put to 'sleep', the WDT triggers a reset which causes the code to start over at the very beginning, thus initializing all regesters.
If the chip is put to sleep at regular intervals that are less than the WDT timeout time, then the device will wake up at the current section of code and continue with whatever followed the sleep and a nop. Thus if the timeout period is greater than the time between last wake up and next sleep, it wakes up and continuse with the code and does not reset the chip.
The problem is, if the time between the last wake up and the next sleep is too clsoe to the WDT timeout period it may work many times over again but then one day start resetting the chip because the WDT timeout period decreased due to supply variation or temperature change. This means the time between last wake up and next sleep should be significantly shorter than the WDT timeout period.
Does this sound right or is there a way to disable the WDT somehow without disabling it completely with the OPTION register?
If the WDT is enabled and the chip is never put to 'sleep', the WDT triggers a reset which causes the code to start over at the very beginning, thus initializing all regesters.
If the chip is put to sleep at regular intervals that are less than the WDT timeout time, then the device will wake up at the current section of code and continue with whatever followed the sleep and a nop. Thus if the timeout period is greater than the time between last wake up and next sleep, it wakes up and continuse with the code and does not reset the chip.
The problem is, if the time between the last wake up and the next sleep is too clsoe to the WDT timeout period it may work many times over again but then one day start resetting the chip because the WDT timeout period decreased due to supply variation or temperature change. This means the time between last wake up and next sleep should be significantly shorter than the WDT timeout period.
Does this sound right or is there a way to disable the WDT somehow without disabling it completely with the OPTION register?