User`s manual

User’s Manual 23
IRQ Status Assignment
0 Used Timer
1 Used Keyboard
2 Used Second 8259
3 Used COM2
4 Used COM1
5 Used COM3
6 Used Floppy Disk
7 Used LPT1
8 Used RTC
9 Used Audio
10 Used COM4
11 Used LAN Adapter (on board)
12 Used PS/2 Mouse
13 Used Coprocessor
14 Used Hard Disk (IDE 1)
15 Used Reserved (IDE 2)
2-6. Watchdog Timer
Watchdog Timer (WDT) is a special design for system monitoring to secure the
system work normally. WDT has an independent clock from the oscillator and could
set time and clear/refresh WDT counter function. When time is up, WDT will send
hardware RESET signal to reset system.
Timeout Value Range
-1 to 255
-Second or Minute
24 The ENDAT-9401F/H System Board
Program Sample
#include <stdio.h>
#include <dos.h>
#include <dir.h>
void show_ver();
void main()
{
unsigned int tt;
clrscr();
show_ver();
tt=0;
while((tt==0)||(tt>255))
{
printf(“\n\nPlease key in how many seconds you want to reset system
(1~255):”);
scanf(“%d”,&tt);
}
outportb(0x2e,0x87); //Unlock register
outportb(0x2e,0x87); //Unlock register
outportb(0x2e,0x07); //Set Logic Device number pointer
outportb(0x2f,0x08); //Set Logic Device number
outportb(0x2e,0xf5); //Set active register is CRF5
outportb(0x2f,0x00); //Set register value (bit3=1: minute. =0: second)
outportb(0x2e,0xf7); //Set active register is CRF7
outportb(0x2f,0x00); //Disable all WDT interrupt (bit7=Mouse,
bit6=Keyboard)
outportb(0x2e,0xf6); //Set active register is CRF6
outportb(0x2f,tt); //Set time out value of WDT
}
void show_ver()
{
unsigned char tmp0;
printf(“Designed by ROBERT LIOU of UNICORN computer corp.
\n2004/03/02 release version:1.0a\n”);
printf(“This program is design for test Watchdog Timer for W83627.\n”);
}