ATX-6971 User's Manual
47
Appendix
Appendix 1
:
Watchdog Programming Guide
watchdog reference code
(
C
)
-----------------------------------------------------------------------------------------------------------------------------
Set the port to realize watchdog function. In C programming language, different functions
of Watchdog Timer can be realized by operating ports by writing data to corresponding ports.
Port specification
:
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 enables the system to reboot automatically.
Содержание BPC-7971
Страница 1: ...BPC 7971 USER Manual V1 0...
Страница 11: ...Chapter One Product Introdu ction...
Страница 15: ...Chapter Two Hardware Function...
Страница 37: ...Chapter Three BIOS Setup...
Страница 44: ...BPC 7971 User s Manual 30 3 2 2 Power Performance...
Страница 45: ...BPC 7971 User s Manual 31...
Страница 46: ...BPC 7971 User s Manual 32 Note Power settings...
Страница 47: ...BPC 7971 User s Manual 33 3 2 3 PCH FW Configuration...
Страница 50: ...BPC 7971 User s Manual 36...
Страница 52: ...BPC 7971 User s Manual 38...
Страница 56: ...BPC 7971 User s Manual 42 3 2 8 Serial Port Console Redirection...
Страница 62: ...BPC 7971 User s Manual 48 3 3 2 Graphics Configuration LCD Control LCD screen control setting...
Страница 63: ...BPC 7971 User s Manual 49 3 3 3 LCD Control Primary IGFX Boot Display Main display settings...
Страница 64: ...BPC 7971 User s Manual 50 3 3 4 USB Configuration XHCI Disable Compliance Mode...
Страница 71: ...Appendix...
Страница 76: ......