User Manual
Table Of Contents
- About this manual
- Chapter 1: Getting to know your Embedded Computer
- Chapter 2: Using your Embedded Computer
- Chapter 3: Upgrading your Embedded Computer
- Chapter 4: Watchdog Timer
- Appendix
54
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