Acrosser AR-ES6050FLD-W User Manual
Page 36

Revision: 1.0
outportb(IO_Port_Address,0xF5);
// Select Watchdog count mode seconds or
minutes
outportb(IO_Port_Address+1,0x02); // Default is second and KBRST mode.
outportb(IO_Port_Address,0xF6);
// Set Watchdog Timer Value
outportb(IO_Port_Address+1,Time); // 0x00 to disable, max 0xFF
textcolor(YELLOW);
for(Temp=Time;Temp>0;Temp--)
{
outportb(IO_Port_Address,0xF6); // Read Watchdog Timer Value
Time=inportb(IO_Port_Address+1);
gotoxy(20,10);
cprintf(">>> After %3d Second will reset the system. <<<",Time);
delay(1000);
}
textcolor(LIGHTRED);
gotoxy(18,10);
cprintf("If you can see this message, Reset system is Fail");
return 1;
}
//====================================================================
=======
// Function : Show_Help()
//
Input
:
-
//
Change :
-
// Return : -
// Description : Show Help string.
//====================================================================
=======
void Show_Help()
{
clrscr();
printf("WatchDog Test for W83627EHF\n\n");
printf("Sample: \n");
printf(" WDT.EXE 10 \n");
printf("( For 10 seconds to reset. )\n");
}
//====================================================================
=======
36