- 94 -
Appendices
Appendix F. Watchdog Timer (WDT) Setting
WDT is widely used for industrial application to monitor CPU activities. The
application software depends on its requirement to trigger WDT with adequate
timer setting. Before WDT timeout, the functional normal system will reload
the WDT. The WDT never time-out for a normal system. The WDT will not be
reloaded by an abnormal system, then WDT will time-out and auto-reset the
system to avoid abnormal operation.
This computer supports 255 levels watchdog timer by software programming I/O
ports.
Below is an assembly program example to disable and load WDT.
Sample Codes:
/*----- Include Header Area -----*/
#include “math.h”
#include “stdio.h”
#include “dos.h”
#define SIO_INDEX 0x2E /* or index = 0x4E */
#define SIO_DATA 0x2F /* or data = 0x4F */
/*----- routing, sub-routing -----*/
void main()
{
outportb(sioIndex, 0x87);
/* SIO - Enable */
outportb(sioIndex, 0x87);
outportb(sioIndex, 0x07);
/* LDN - WDT */
outportb(sioData, 0x07);
outportb(sioIndex, 0x30);
/* WDT - Enable */
outportb(sioData, 0x01);
outportb(sioIndex, 0xF0);
/* WDOUT_EN */
outportb(sioData, 0x80);
outportb(sioIndex, 0xF6);
/* WDT - Timeout Value */
outportb(sioData, 0x05);
outportb(sioIndex, 0xF5);
/* WDT - Configuration */
outportb(sioData, 0x72);
outportb(sioIndex, 0xAA);
/* SIO - Disable */
}
Summary of Contents for EasyBoard-882E
Page 2: ...2 This page is intentionally left blank...
Page 4: ...ii This page is intentionally left blank...
Page 11: ...1 1 Chapter 1 Introduction Chapter 1 Introduction...
Page 15: ...5 2 Chapter 2 Getting Started Chapter 2 Getting Started...
Page 48: ...38 This page is intentionally left blank...
Page 49: ...39 3 Chapter 3 BIOS Chapter 3 BIOS...
Page 84: ...74 This page is intentionally left blank...
Page 85: ...75 Appendices Appendices...