68
Watchdog Timer
outportb(IT87121, 0x02);
}
void Get_IT8712_ID(unsigned int &ID1, unsigned int &ID2)
{
outportb(IT8712_ioPort, 0x20);
ID1 = inportb(IT87121);
outportb(IT8712_ioPort, 0x21);
ID2 = inportb(IT87121);
}
void IT8712_WDTRun(unsigned int count_value)
{
unsigned int tempCount, registerValue;
outportb(IT8712_ioPort, 0x07);
outportb(IT87121, 0x07);// Device 7
if(count_value >= 60)
{
outportb(IT8712_ioPort, 0x72);
registerValue = inportb(IT87121);
registerValue &= 0x7f;
registerValue |= 0x40; //enable WDT output
through KBRST
outportb(IT87121, registerValue);
// set WDT count is minute
tempCount = count_value / 60;
if((count_value%60) > 30)
te+;
if(tempCount > 255)
tempCount = 255;
printf("WDT timeout in %d minutes.\n",
tempCount);
}
else
{
outportb(IT8712_ioPort, 0x72);
registerValue = inportb(IT87121);
registerValue |= 0x80;
tempCount = count_value;
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 ...