User`s manual

User’s Manual 15
In the PCI Bus design, the BIOS is automatically assigned an IRQ to a PCI slot that
has a card in it which requires an IRQ. To install PCI cards via riser card, you need
to set the correct "ADSEL" and "INT" (interrupt) assignment on the jumper of riser
card.
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 LPT2 or 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
16 The ENDAT-3400M 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,0x29); //set active reg is cr29
outportb(0x2f,0x20); //set reg value Pin119 Fun (bit5:6=01 WDTO)
outportb(0x2e,0x30); //set active reg is CR30
outportb(0x2f,0x01); //set reg value MIDI & GP5 active (bit0 =1 active,0
inactive )
outportb(0x2e,0xf3); //Set active register is CRF3
outportb(0x2f,0x00); //Set register value (bit2=1: minute. =0: second)
outportb(0x2e,0xf4); //Set active register is CRF4
outportb(0x2f,tt); //Set time out value of WDT
}
void show_ver()
{
unsigned char tmp0;
printf("Designed by ROBERT LIOU of UNICORN computer corp.
\n2005/10/07 release version:1.0a\n");
printf("This program is design for test Watch Dog Timer for
ENADT-3400M(W83697HF).\n");
}