watchdog timer example.

could any one give me simply example(code) of watchdog timer for msp430F1611… any simple example for reference or some thing like that…

stop the watchdog timer.

start watchdog timer…

for(; ; )

keep checking watchdog timer counter whether it reset or not.

end loop.

It would be really nice if some one let me guide…Thanks.

#include <msp430x16x.h> 

void flash_led(void); 

int main( void ) 
 { 
  WDTCTL = WDTPW + WDTHOLD; /* Stop watchdog timer */ 

  P3OUT &= ~BIT3; /* Set pin input LOW */ 
  P3DIR |= BIT3; /* Set pin direction to output */ 

  flash_led(); /* Flashing indicates MC start */ 

  IFG1 &= ~WDTIFG; 
  WDTCTL = WDT_MRST_32; /* Enable watchdog */ 

  for(;;) 
   { 
    WDTCTL |= WDTPW + WDTCNTCL; 
   } 

 } 


void flash_led(void) 
 { 
  unsigned int a,b; 

  for (a = 0; a < 8; a++) 
   { 
    for (b = 0; b < 25000;) 
    { 
     b++; 
    } 
   P3OUT ^= BIT3; /* Toggle output */ 
  } 
 }

thank…