![ADLINK Technology MI-960 User Manual Download Page 81](http://html.mh-extra.com/html/adlink-technology/mi-960/mi-960_user-manual_2852767081.webp)
Watchdog Timer
67
MI-960
Appendix A - Watchdog Timer
The following is a sample program for configuring the MI-960’s
watchdog timer.
A.1 Sample Code
#include<stdio.h>
#include<dos.h>
static unsigned int IT8712_ioPort = 0x2e;
void Enter_IT8712_Config(unsigned int flag)
{
if(flag) IT8712_ioPort = 0x4e;
else IT8712_ioPort = 0x2e;
switch(IT8712_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;
}
}
void Exit_IT8712_Config(unsigned int flag)
{
if(flag) IT8712_ioPort = 0x4e;
outportb(IT8712_ioPort, 0x02);
Summary of Contents for MI-960
Page 6: ...vi Preface This page intentionally left blank This page intentionally left blank ...
Page 9: ...Table of Contents ix MI 960 Important Safety Instructions 81 Getting Service 83 ...
Page 10: ...x Table of Contents This page intentionally left blank ...
Page 12: ...xii List of Figures This page intentionally left blank ...
Page 14: ...xiv List of Tables This page intentionally left blank ...
Page 27: ...Introduction 13 MI 960 Figure 1 5 MI 960 Rear I O Dimensions Dimensions in mm ...
Page 28: ...14 Introduction This page intentionally left blank ...
Page 40: ...26 Connectors Jumpers This page intentionally left blank ...
Page 48: ...34 Getting Started This page intentionally left blank ...
Page 84: ...70 Watchdog Timer This page intentionally left blank ...