Hello....
I have the following code in main: (Based on settings I expect watchdog to run for 16 seconds from ACLK....this is a design that has been working for over a year and I am just adding a watchdog to it so hardware is good)
int main(void) { SYSCFG2 |= RTCCKSEL; WDTCTL = WDTPW | WDTCNTCL | WDTSSEL__ACLK | WDTIS1 | WDTIS0 | WDTHOLD; //watchdog 16 second using ACLK, hold state, reset cntr
I then have a pushbutton ISR where I place a breakpoint:
//activate watchdog tempWDCTL = ((WDTCTL | WDTCNTCL) & 0x00FF); tempWDCTL &= ~WDTHOLD; WDTCTL = WDTPW | tempWDCTL; P1IE &= ~0xFE;
A breakpoint on P1IE reveals WDTCTL = 0x6923 which looks correct to me. Can someone tell me what I am doing incorrectly?
Thanks
Steve