??? 03/16/07 14:32 Read: times |
#135106 - It's obvious I need to learn about WDT Responding to: ???'s previous message |
Hi Everyone,
I was (apparently errantly) under the impression that the WDT was just a counter that you program with some interval and it counts down. Then, if it ever gets to zero it reboots the µ-controller. Being a hardware implementation it isn't subject to hanging if the program locks up, thus insuring that the µ-controller won't just freeze and sit there. The trick then becomes that the program must reset the counter periodically (before it gets to zero) in order to keep the µ-controller running. Am I just wrong? Do I have the basic idea but with an incomplete understanding? Why would the WDT care which loop or ISR is executing when the reset instruction is given? Doesn't it just start counting down from the beginning again? Or is this one of those "all you need is a capacitor for the power on reset" situations? Joe |