34
Utilities
For a detailed programming sample, refer to the sample code pro-
vided on the ADLINK All-In-One CD. You can find it in the following
directory:
X:\cPCI\CT-61\WDT
.
Sample Code
The sample program written in C shown below offers an interactive
way to test the Watchdog Timer under DOS.
#include<stdio.h>
#include<dos.h>
#define IT8783_ID1 0x87
#define IT8783_ID2 0x83
static unsigned int IT8783_ioPort = 0x2e;
//Check index port
void Enter_IT8783_Config(unsigned int flag)
{
if(flag) IT8783_ioPort = 0x4e;
switch(IT8783_ioPort)
{
case 0x2E: //Address port = 0x2E, enter keys =
0x87, 0x01, 0x55, 0x55
outportb(0x2E, 0x87);
outportb(0x2E, 0x01);
outportb(0x2E, 0x55);
outportb(0x2E, 0x55);
break;
case 0x4E: //Address port = 0x4E, enter keys =
0x87, 0x01, 0x55, 0xAA
outportb(0x4E, 0x87);
outportb(0x4E, 0x01);
outportb(0x4E, 0x55);
outportb(0x4E, 0xAA);
break;
default:
break;
}
}
Summary of Contents for CT-61
Page 8: ...viii List of Tables This page intentionally left blank ...
Page 10: ...x List of Figures This page intentionally left blank ...
Page 20: ...10 Specifications This page intentionally left blank ...
Page 38: ...28 Board Interfaces This page intentionally left blank ...
Page 42: ...32 Driver Installation This page intentionally left blank ...
Page 52: ...42 Utilities This page intentionally left blank ...
Page 64: ...54 BIOS Setup Utility PC Health Configuration ...
Page 74: ...64 BIOS Setup Utility This page intentionally left blank ...