
52
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\cPCI-6510\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 cPCI-6510 Series
Page 7: ...vi Preface This page intentionally left blank ...
Page 11: ...x Table of Contents This page intentionally left blank ...
Page 13: ...xii List of Tables This page intentionally left blank ...
Page 15: ...xiv List of Figures This page intentionally left blank ...
Page 21: ...6 Overview This page intentionally left blank ...
Page 65: ...50 Driver Installation This page intentionally left blank ...
Page 75: ...60 Utilities This page intentionally left blank ...
Page 87: ...72 BIOS Setup Utility PC Health Configuration ...
Page 97: ...82 BIOS Setup Utility This page intentionally left blank ...