Operations Manual
printf("Please enter your choices: ");
UserChoice = getche();
delay(70);
switch(UserChoice) {
case '1':
if (Boolean == 'F')
{
Boolean = 'T';
inportb((unsigned int)WDAddress);
printf("\nThe Watch Dog has been enabled. . .");
getch();
}
else
{
Boolean = 'F';
inportb((unsigned int)WDAddress+1);
printf("\nThe Watch Dog has been disabled. . .");
getch();
}
goto Inquire;
case '2':
if (Boolean == 'T')
{
inportb((unsigned int)WDAddress+1);
inportb((unsigned int)WDAddress);
printf("\nWatch Dog Refresh");delay(500);
}
else
{
printf("\nThe Watch Dog is currently not enable. . .\n");
printf("You have to enable the Watch Dog first to refresh it");
DECISION Computer International
/* Action to do based on choices */
/* Enable Disable function */
/* Enable Watch Dog */
/* Disable Watch Dog */
/* Refresh function */
/* If Watch Dog is enabled */
/* If Watch Dog is disabled */
Watch dog timer card
21
Need help?
Do you have a question about the Watch dog 1 and is the answer not in the manual?