User`s manual

Table Of Contents
76 Watchdog Timer
else if(count_value <= 60){
temp = temp | 0x80;//chip's default is
minute.
counter = count_value;
printf("WDT timeout in %d
seconds.",counter);
// temp = temp | 0x40;//enable WDT output
through KBRST
temp = temp | 0x10;//enable WDT output
through PWROK2 (pulse)
outportb(config_port+1, temp);
} // end of (count_value<=60)
else if(((count_value>60) &&
(count_value<=15300)) || (count_value >
15300))
{
//Count the timeout value
if(count_value > 15300)
count_value = 15300;
counter = count_value/60;
if((count_value%60)>30)
counter=counter+1;
printf("WDT timeout in %d
minutes.",counter);
// temp = temp | 0x40;//enable WDT output
through KBRST
temp = temp | 0x10;//enable WDT output
through PWROK2 (pulse)
outportb(config_port+1, temp);
} // end of (count_value>60)
//reset WDT by KB, MS interrupt
// outportb(config_port, 0x71);
// temp = inportb(config_port + 1);
// temp = temp | 0x60;//Bit 6 = KB interrupt,
Bit 5 = MS interrupt
// outportb(config_port+1, temp);
//Write count value
outportb(config_port, 0x73);
outportb(config_port+1, counter);
} // end of WDTRUN