Watchdog Timer
75
NuPRO-A331
outportb(IT8783_ioPort, 0xf8);
outportb(IT87831, 0x1f);// PLED mapping to
GP37
outportb(IT8783_ioPort, 0xf9);
registerValue = inportb(IT8783_ 1);
registerValue |= 0x02;
registerValue &= 0xfb;
outportb(IT87831, registerValue);
}
outportb(IT8783_ioPort, 0x71);
registerValue = inportb(IT8783_ 1);
registerValue &= 0xfe;
outportb(IT87831, registerValue);
outportb(IT8783_ioPort, 0x72);
registerValue = inportb(IT8783_ 1);
registerValue &= 0xdf;
outportb(IT87831, registerValue);
if(count_value >= 60)
{
outportb(IT8783_ioPort, 0x72);
registerValue = inportb(IT87831);
registerValue &= 0x8f;
registerValue |= 0x40; //enable WDT output through
PRST
outportb(IT87831, registerValue); // set
WDT count is minute
tempCount = count_value / 60;
if((count_value%60) > 30)
te+;
if(tempCount > 65535)
tempCount = 65535;
printf("WDT timeout in %d minutes.\n", tempCount);
}
else
{
outportb(IT8783_ioPort, 0x72);
Summary of Contents for NuPRO-A331
Page 6: ...vi Preface This page intentionally left blank...
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 22: ...8 Introduction 1 6 Mechanical Drawing Dimensions in mm Figure 1 2 NuPRO A331 Board Dimensions...
Page 56: ...42 Driver Installation This page intentionally left blank...