Copyright © 2016 NEXCOM International Co., Ltd. All Rights Reserved.
82
NIFE 300 Series User Manual
Appendix B: Watchdog Programming Guide
a
PPendIx
B: w
atChdog
P
rogrammIng
g
uIde
ITE8786E WatchDog Programming Guide
#define Superio_Port
0x2E
#define Superio_LDN
0x07
;*Enter the MB PnP mode with 0x87, 0x01, 0x55, 0x55
outportb(Superio_Port, 0x87);
outportb(Superio_Port, 0x01);
outportb(Superio_Port, 0x55);
outportb(Superio_Port, 0x55);
;*Set LDN=0x07 point to the WDT function
outportb(Superio_Port, Superio_LDN);
outportb(Super1, 0x07);
;*Setup configuration register 0x72, if set 90h is second, set 10h is minute (WDT output through PWRGD)
outportb(Superio_Port, 0x72);
outportb(Super1, 0x90);
;*Setup WDT time-out value. this demo code is used to program the time-out value with 4 sec.
outportb(Superio_Port, 0x73);
outportb(Super1, 0x04);
;*Exit the MB PnP Mode
outportb(Superio_Port, 0x02);
outportb(Super1, 0x02);