Appendix 2: watchdog programming guide, Appendix 3: glossary – Habey BIS-6590 User Manual
Page 47
Appendix 2: Watchdog Programming Guide
Watchdog reference code (ASM)
------------------------------------------------------------------------------------------------
Set the port to realize watchdog function through DEBUG order, so that it
can carry out Watchdog Timer’s various functions.
Port Instruction:
void main()
{
int indexp = 0x2e,datap = 0x2f;
unsigned char temp;
Outportb(indexp,0x87);
Outportb(indexp,0x87); //unlock
Outportb(indexp,0x2d);
temp = (unsigned char) inportb (datap);
temp &= 0xfe;
Outportb(indexp,0x2d);
Outportb(datap,temp); //set pin for watchdog
Outportb(indexp,0x07);
Outportb(datap,0x08);
Outportb(indexp,0x30);
Outportb(datap,0x01); //enable logical device
Outportb(indexp,0xf5);
Outportb(datap,0x00); //set second
Outportb(indexp,0xf6);
Outportb(datap,0x05); //set 5seconds
Outportb(indexp,0xf7);
Outportb(datap,0x00);
Outportb(indexp,0xaa); //lock
}
If system halted, the watchdog function enables system to auto reboot.
Appendix 3: Glossary
ACPI
Advanced Configuration and Power Management Interface for short.
ACPI specifications allow OS to control most power of computer and its
extended devices. Windows 98/98SE, Windows 2000 and Windows ME
are all support ACPI, it provide users a flexible system power manage-
ment.
42