Hello,
i have the clock configuration ACLK = LFXT1/8 = 32768Hz/8, MCLK = SMCLK = CALxxx_8MHZ and programmed like this :
//use calibration 8MHz for MCLK: and SMCLK
BCSCTL1 = CALBC1_8MHZ;
// ACLK = LFXT1CLK/8
BCSCTL1 |= DIVA_3;
// Set DCO
DCOCTL = CALDCO_8MHZ;
so ACLK should be 32768Hz/8=4096Hz
i configured the watch dog to be sourced = ACLK with max interval value :
WDTCTL = (WDTPW+WDTCNTCL+WDTSSEL); (: source = ACLK and period is ACLK/32768=0,125Hz so period =8s )
But when i run the following infinite loop the reset occurs more rapidly than 1s
printf("reset"
WDTCTL = (WDTPW+WDTCNTCL+WDTSSEL);
while(1);
Why can't i program a 8s watch-dog timer ?
Thanks for your help