Appendix
1041814CLDNA Series
39
Appendix
Watchdog Programming Guide
This board provides a programmable watchdog timer (WDT) up to 255 levels and
time by minute or second. Watchdog timer overtime event can be programmed to
reset system or generate maskable interrupts.
The available IRQ numbers for this board are: 3, 4, 5, 7, 9, 10 and 11.
Before using, please modify the corresponding IRQ number in PCIPnP of BIOS
Setup interface into “Reserved”.
The following describes WDT program in C language. The steps to program WDT are
listed as follows:
Ø
Enter WDT programming mode
Ø
Set WDT operating mode/enable WDT/disable WDT
(1)
Enter
WDT
programming mode.
#define
INDEX_PORT 0x2E
#define
DATA_PORT
0x2F
outportb(INDEX_PORT,0x67);
outportb(INDEX_PORT,0x67);
outportb(INDEX_PORT,0x07);
outportb(DATA_PORT,0x08);
outportb(INDEX_PORT,0x30);
outportb(DATA_PORT,0x01);
(2)
Configure
WDT
operating mode, reset mode or interrupt mode:
unsigned char oldval;
outportb(INDEX_PORT,0x70);
oldval = inportb(DATA_PORT);
a.
Reset Operating Mode
oldval &= 0xef;
outportb(DATA_PORT, oldval);
Summary of Contents for 104-1814CLDNA Series
Page 1: ...104 1814CLDNA Series PCI 104 Express 单板电脑 PCI 104 Express Single Board Computer Version B01 ...
Page 8: ...第二章 安装说明 4 104 1814CLDNA 系列 第二章 安装说明 产品外形尺寸图 单位 mm ...
Page 42: ...第四章 驱动程序安装说明 38 104 1814CLDNA 系列 第四章 驱动程序安装说明 本产品的驱动程序可依据配套光盘内容安装 在此不做介绍 ...
Page 54: ...Chapter 2 Installation 4 104 1814CLDNA Series Chapter 2 Installation Product Outline Unit mm ...