
ENDAT-LX301 USERS MANUAL
UNICORN COMPUTER CORP.
21
2-4. IRQs Mapping
The IRQ number is automatically assigned to PCI expansion cards after those used by
onboard device. To install a PCI riser card, you need to set the correct "ADSEL" and "INT"
(interrupt) assignment.
IRQ Status Assignment
0 Occupied Timer
1 Occupied Keyboard
2 Occupied Second
8259
3 Occupied COM2/COM4
shared
4 Occupied COM1/COM3
shared
5 Occupied LPT1
6 Occupied Floppy
Disk
7
Free Any
8 Occupied RTC
9
Shareable ACPI controller
10
Free Any
11
Free Any
12
Free
When PS/2 mouse absent
13 Occupied Coprocessor
14
Free
When IDE device absent
15 Occupied Reserved
2-5.
Watch Dog 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
ENDAT-LX301 USERS MANUAL
UNICORN COMPUTER CORP.
22
Sample code
(using TurboC/C++ 3.0):
#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 WDT mode
outportb(0x2f,0x00); // bit2 : Enable the rising edgw of keyboard Reset to force Time-out
event. ( 0=Disable / 1= Enable). / bit3 : Select WDTO count mode (0 = second / 1= minute).
outportb(0x2e,0xf6); //Set Watch Dog Timer Time-out value.
outportb(0x2f,tt);
//Set time out value of WDT
}
void show_ver()
{
unsigned char tmp0;
printf("Designed by ROBERT LIOU of UNICORN computer corp. \n2008/05/12 release
version:1.0a\n");
printf("This program is design for test Watch Dog Timer for ENADT-LX301(W83627).\n");
}