I have only used the WDT as an interval timer before and would like to use it as a watchdog. The simple application program example in Resource Explorer doesn't seem to answer my questions.
I would like to set up the watchdog using ACLK and one second....
1. Can I use the watchdog as a watchdog with different time intervals as expressed with the WDTIS bits or are these bits strictly for timer interval only?
2. Is there any need to have the WDT ISR when using the watchdog as a watchdog or is that strictly for timer mode?
3. Should I be writing the WDTCNTCL bit (if #2 above is true) within that ISR?
4. To kick watchdog n my main loop should I be constantly writing WDTCTL with 0x5A2C?....which selects ACLK, clears counter and keeps it set for 1 second...
5. How, if at all, do I need to address the IFG?
6. Should I be setting WDTCTL as first line of code during the configuration before LPM3? Also on this note should I be setting the IE here as well? Does GIE need to be set for this to work?
Thanks