68
Utilities
Sample Code
The sample program written in C shown below offers an interac-
tive 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;
}
}
//Exit index port
void Exit_IT8783_Config(unsigned int flag)
{
if(flag) IT8783_ioPort = 0x4e;
Содержание cPCI-3615 Series
Страница 6: ...vi Preface This page intentionally left blank ...
Страница 10: ...x This page intentionally left blank ...
Страница 12: ...xii List of Figures This page intentionally left blank ...
Страница 14: ...xiv List of Tables This page intentionally left blank ...
Страница 20: ...6 Introduction This page intentionally left blank ...
Страница 26: ...12 Specifications This page intentionally left blank ...
Страница 32: ...18 Functional Description This page intentionally left blank ...
Страница 60: ...46 Board Interfaces This page intentionally left blank ...
Страница 63: ...Getting Started 49 cPCI 3615 3 Secure the hard drive assemby to the cPCI 3615D using four M2 5 screws provided ...
Страница 78: ...64 Getting Started This page intentionally left blank ...
Страница 80: ...66 Driver Installation This page intentionally left blank ...