A: w, Ppendix, Atchdog – NEXCOM NEX 608 User Manual
Page 65: Imer
Copyright © 2011 NEXCOM International Co., Ltd. All Rights Reserved.
52
NEX 608 User Manual
Appendix A: Watchdog Timer
A
ppendix
A: W
Atchdog
t
imer
Start
See “SetupWDT” procedure
#Setup Watchdog Timer Environment
Step 1
Step 2
See “TimeBaseWDT” procedure
#Initial Watchdog Timer
Users can select second or minute
Step 3
See “TimeCountWDT” procedure
#Set Watchdog Timer Time-out Value
Users can set time-out value
Step 4
See ExitSetup procedure
#Exit Setup Environment
End
WDT Programming Guide
NEX 608 Watchdog Function Configuration Sequence Description:
W83627 Watchdog Programming Guide
#define SUPERIO_PORT 0x2E
#define WDT_SET 0xF5
#define WDT_VALUE 0xF6
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(WDT_SET,0x04); # Use the second to come down
# If choose the Minute, change value to
0x0C
# Set WDT sec/min
outportb(WDT_VALUE,0x05);
#Set 5 seconds
}