- 55 -
Appendix
Appendix D: Watchdog Timer (WDT) Setting
WDT is widely used for industry application to monitor the activity of CPU. Ap-
plication software depends on its requirement to trigger WDT with adequate
timer setting. Before WDT time out, 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 reset the system
automatically to avoid abnormal operation.
This board supports 255 levels watchdog timer by software programming I/O
ports. Below are the source codes written in C, please take them as WDT ap-
plication example.
/*---------------------------------------------------------------------------*/
#include <math.h>
#include <stdio.h>
#include <dos.h>
int iWDTCount;
int sioIndex = 0x2E;
// or 0x4E
int sioData = 0x2F;
// or 0x4F
int main(void)
{
unsigned char
iCount;
printf(“WDT Times ( 1 ~ 255 ) : “);
scanf(“%d”,&iCount);
printf(“\n”);
WDT_Start(iCount);
return 0;
}
void WDT_Start(int iCount)
{
int iData;
outportb(sioIndex, 0x87);
/* Enable Super I/O */
outportb(sioIndex, 0x87);
outportb(sioIndex, 0x07);
/* Select logic device – WDT */
outportb(sioData, 0x07);
outportb(sioIndex, 0x29);
/* Enable WDTRST# Pin */
iData = inportb(sioData);
iData = iData & 0xEF;
outportb(sioData, iData);
/* The pin function is WDTRST# */
outportb(sioIndex, 0x30);
/* Enable WDT */
outportb(sioData, 0x01);
Summary of Contents for EmETXe-a10M0
Page 1: ...EmETXe a10M0 COM Express Basic Type 6 CPU Module User s Manual Version 1 0 2020 06...
Page 2: ...Revision History Version Date Description 1 0 2020 06 Initial release...
Page 9: ...1 Introduction 1 Chapter 1 Introduction...
Page 14: ...6 This page is intentionally left blank...
Page 15: ...7 Board Overview 2 Chapter 2 Board Overview...
Page 17: ...9 Board Overview 2 2 Board Dimensions 2 9 2 95 95 4 76 4 87 4 87 54 48 32 39 2 7 6 0 Unit mm...
Page 22: ...14 This page is intentionally left blank...
Page 23: ...15 Installation Maintenance 3 Chapter 3 Installation Maintenance...
Page 26: ...18 This page is intentionally left blank...
Page 27: ...19 BIOS 4 Chapter 4 BIOS...
Page 44: ...36 BIOS 4 2 11 H W Monitor Access this page to view the hardware information...
Page 56: ...48 This page is intentionally left blank...
Page 57: ...49 Appendix Appendix...
Page 65: ...57 Appendix outportb sioIndex 0xAA SIO Disable return iData...