Appendix A: Watchdog Timer; Wdt Programming Guide; Watch Dog Sample Code - Nexcom EBC 352 User Manual

Embedded computing (3.5” cpu board)
Hide thumbs Also See for EBC 352:
Table of Contents

Advertisement

Appendix A: Watchdog Timer

A
A: W
ppendix

WDT Programming Guide

EBC 342 Watchdog Function Configuration Sequence Description:
Start
Step 1
See "SetupWDT" procedure
#Setup Watchdog Timer Environment
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
Copyright © 2011 NEXCOM International Co., Ltd. All Rights Reserved.
t
Atchdog
imer

Watch Dog Sample Code

#define SUPERIO_PORT
0x2E
#define WDT_SET
0x72
#define WDT_VALUE 0x73
void main(void)
{
#Enter SuperIO Configuration
outportb(SUPERIO_PORT, 0x87);
outportb(SUPERIO_PORT, 0x01);
outportb(SUPERIO_PORT, 0x55);
outportb(SUPERIO_PORT, 0x55);
# Set LDN
outportb(SUPERIO_PORT,0x07);
outportb(SUPERIO_PORT+1 ,0x07);
# Set WDT setting
outportb(WDT_SET,0xC0);
choose the Minute, change value to 0x40
# Set WDT sec/min
outportb(WDT_VALUE,0x05);
54
# Use the second to come down
# If
#Set 5 seconds
EBC 352 User Manual

Advertisement

Table of Contents
loading

Table of Contents