AnsweredAssumed Answered

WDT Reconfigure

Question asked by Robin S on Jun 26, 2014
Latest reply on Jul 2, 2014 by Ankur Kala

Hi All,

 

I am Trying to reconfigure WDT but it's not working properly for µC MC9S08RN8  please can someone see my code?

 

void main {

WDOG_CNT = 0xC520;                                    // write the 1st unlock word

WDOG_CNT = 0xD928;                                    // write the 2nd unlock word

WDOG_TOVAL = 4;                                         // setting timeout value

WDOG_CS2 = 0X12;                                        //Prescaler is selected for 256 and 32Khz clock

 

__RESET_WATCHDOG();

 

PORT_PTAOE = 0x0F;

PORT_PTAD =  0x00;

while(1) {

PORT_PTAD =  0x0F;

}

 

}

 

According to new configuration i should get 31.25msec WDT RESET but the reset i am getting is  7 msec which is Default value of   WDT RESET.

 

I also tried  using WDOG_CS1_UPDATE register but after updating that register i am not getting any reset.

 

I am using Codewarrior 10.5 and PE Micro USBMultilink interface for programming.

 

 

Thanks and Kind Regards

 

Robin

Outcomes