Nexcom EBC 358 User Manual page 61

Embedded computing (3.5” cpu board)
Table of Contents

Advertisement

Appendix A: Watchdog Timer Setting
a
a: W
PPendIx
GuideNCT6126D WatchDog Programming Guide
#define SUPERIO_PORT
0x2E
#define WDT_SET
0xF0
#define WDT_VALUE 0xF1
void main(void)
{
#Enter SuperIO Configuration
outportb(SUPERIO_PORT, 0x87);
outportb(SUPERIO_PORT, 0x87);
# Set LDN
outportb(SUPERIO_PORT, 0x07);
outportb(SUPERIO_PORT+1 ,0x08);
# Set WDT setting
outportb(SUPERIO_PORT, WDT_SET);
outportb(SUPERIO_PORT+1, 0x00); # Use the second
# Use the minute, change value to 0x08
# Set WDT sec/min
outportb(SUPERIO_PORT, WDT_VALUE);
outportb(SUPERIO_PORT+1, 0x05); #Set 5 seconds
}
Copyright © 2023 NEXCOM International Co., Ltd. All Rights Reserved.
t
atChdog
Imer
s
ettIng
47
EBC 358 User Manual

Advertisement

Table of Contents
loading

Table of Contents