Copyright © 2015 NEXCOM International Co., Ltd. All Rights Reserved.
124
IPPC 1560T/1960T/2160P Series and APPC 1560T User Manual
Appendix B: Watchdog Timer Setting
Appendix B: Watchdog Timer Setting
WatchDog Programming Guide
#define SUPERIO_PORT 0x2E
#define WDT_SET
0xF5
#define WDT_VALUE
0xF6
#define WDT_SET2
0xFA
void main(void)
{
# Enter SuperIO Configuration
outportb(SUPERIO_PORT, 0x87);
outportb(SUPERIO_PORT, 0x87);
# Set LDN
outportb(SUPERIO_PORT,0x07);
outportb(SUPER1 ,0x07);
# clear WDT status
outportb(SUPERIO_PORT, WDT_SET
outportb(SUPER1, 0x40)
outportb(SUPERIO_PORT, WDT_SET2
outportb(SUPER1, 0xD1)
# Set WDT setting
outportb(SUPERIO_PORT, WDT_SET);
outportb(SUPER1, 0x20);
# Use the second to come down
# If choose the Minute, change value to 0x28
# Set WDT sec/min
outportb(SUPERIO_PORT, WDT_VALUE);
outportb(SUPER1, 0x05);
#Set 5 seconds
}