![Nexcom NDIS M537 Скачать руководство пользователя страница 62](http://html.mh-extra.com/html/nexcom/ndis-m537/ndis-m537_user-manual_1681293062.webp)
Copyright © 2018 NEXCOM International Co., Ltd. All Rights Reserved.
48
NDiS M537 User Manual
Appendix A: Watchdog Programming Guide
a
PPendIx
a: W
atChdog
P
rogrammIng
g
uIde
NDiS M537 features a watchdog timer that resets the CPU or generates an
interrupt if the processor stops operating for any reason. This feature ensures
system reliability in industrial standalone or unmanned environments.
#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(SUPER1 ,0x08);
# Set WDT setting
outportb(SUPERIO_PORT, WDT_SET);
outportb(SUPER1, 0x00)
# Use the second
# Use the minute, change value to 0x08
# Set WDT sec/min
outportb(SUPERIO_PORT, WDT_VALUE);
outportb(SUPER1, 0x05);
#Set 5 seconds
}