74
Watchdog
Timer
}
void Get_IT8783_ID(unsigned int &ID1, unsigned int &ID2)
{
outportb(IT8783_ioPort, 0x20);
ID1 = inportb(IT87831);
outportb(IT8783_ioPort, 0x21);
ID2 = inportb(IT87831);
}
void IT8783_WDTRun(unsigned int count_value, unsigned int
PLEDflag) //for NuPRO-A331
{
unsigned long tempCount;
unsigned int registerValue;
outportb(IT8783_ioPort, 0x07);
outportb(IT87831, 0x07);// Device 7
outportb(IT8783_ioPort, 0xf8);
outportb(IT87831, 0x00);// PLED mapping to
nothing, disable PLED function
if(PLEDflag == 1)
{
outportb(IT8783_ioPort, 0x27);
registerValue = inportb(IT8783_ 1);
registerValue |= 0x80; // set Pin09 is GPIO
function GP37
outportb(IT87831, registerValue);
outportb(IT8783_ioPort, 0xc2);
registerValue = inportb(IT8783_ 1);
registerValue &= 0x7fb; // set GP37 is alternate
function
outportb(IT87831, registerValue);
outportb(IT8783_ioPort, 0xca);
registerValue = inportb(IT8783_ 1);
registerValue |= 0x80; // set GP42 is output
outportb(IT87831, registerValue);
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...