Acrosser AR-B5890 User Manual

Page 20

Advertising
background image

AR-B5890 User Manual

20

outportb(IO_Port_Address,0x73);

// Set Watchdog Timer Value

outportb(IO_Port_Address+1, C);

// 0x00 to disable, max 0xFF

while (Time > 0)

{

clrscr();

gotoxy(35,12);

Time = Time - 1;

printf("After %d (s) to reset" , Time);

delay(1000);

}

textcolor(LIGHTRED);

gotoxy(18,10);

delay(5000);

cprintf("If you can see this message, Reset system is Fail",Time);

}

return 0;

}

Note: The WatchDog Timer Fuction has ±5% torence.

Advertising