Nuvoton 8051 watch dog issue.

Post Reply
yoonts
Posts: 2
Joined: 23 Feb 2018, 15:44

27 Feb 2018, 16:00

My mcu is N76E003.
I fused config bit for watch dog enable.
I programmed the below.

if((WDCON|~SET_BIT3)==0xFF) {
clr_WDTRF;
}
if((WDCON|~SET_BIT5)==0xFF) {
clr_WDTF;
}
clr_WDTEN;
set_WDCLR; //Clear WDT timer
// while((WDCON|~SET_BIT6)==0xFF); //confirm WDT clear is ok before into power down mode
if((BODCON0|~SET_BIT1)==0xFF) {
clr_BORF;
}
//wdt_init();
//set_WDTR;
uart_puts("\r\nProgram Start!\r\n");
while(1){
delay_ms(100);
}

Why my program keeps reset by watch dog?

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest