Watchdog Timer
73
NuPRO-E72
outportb(IT87831, registerValue);
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-E72
Page 8: ...viii Table of Contents This page intentionally left blank...
Page 10: ...x List of Figures This page intentionally left blank...
Page 12: ...xii List of Tables This page intentionally left blank...
Page 34: ...22 Introduction This page intentionally left blank...
Page 46: ...34 Getting Started This page intentionally left blank...