User Manual

PE Series
71
4.3 Watchdog Timer Programming
Please refer to the pseudo code for the NCT6116D watchdog timer
programming below:
SIO_INDEX_PORT is 0x2E
SIO_DATA_PORT is 0x2F
1. Set WDT Time Unit
Outportb(SIO_INDEX_PORT, 0x87); // Unlock SIO
Outportb(SIO_INDEX_PORT, 0x87); // Unlock SIO
Outportb(SIO_INDEX_PORT, 0x07);
Outportb(SIO_DATA_PORT, 0x08);
Outportb(SIO_INDEX_PORT, 0xF0);
val = Inportb(SIO_DATA_PORT) // Read current WDT setting
val = val | 0x08; // minute mode, val = val & 0xF7 if second mode
Outportb(SIO_INDEX_PORT, 0xF0);
Outportb(SIO_DATA_PORT, val); // Write back WDT setting
Outportb(SIO_INDEX_PORT, 0xAA); // Lock SIO