IA32 Motherboard User Manual
87
ucBuf = Get_W83627EHG_Reg(0x29);
Set_W83627EHG_Reg(0x29,ucBuf|0x01);
// Bit0 = 0 -> GPIO1 is inactive.
//
Bit1 = 1 -> Activate GPIO1.
ucBuf = Get_W83627EHG_Reg(0x30);
Set_W83627EHG_Reg(0x30,ucBuf|0x01);//Activate GPIO1
Set_W83627EHG_Reg(0xF0,0x0F);//switch GPIO Input(1)/Output(0) port
Set_W83627EHG_Reg(0xF1, 0x00); //clear
ucDI = Get_W83627EHG_Reg(0xF1) & 0x0F;
ClrKbBuf();
while(1)
{
ucDO++;
Set_W83627EHG_Reg(0xF1, ((ucDO & 0x0F) << 4));
ucBuf = Get_W83627EHG_Reg(0xF1) & 0x0F;
if (ucBuf != ucDI)
{
ucDI = ucBuf;
printf("Digital I/O Input Changed. Current Data is 0x%X\n",ucDI);
}
if (kbhit())
{
getch();
break;
}
delay(500);
}
return 0;
}
//============================================================
void ClrKbBuf(void)
{
while(kbhit())
{ getch(); }
}
Summary of Contents for IA32
Page 13: ...IA32 Motherboard User Manual 5 1 5 Board dimensions...
Page 18: ...IA32 Motherboard User Manual 10 BOTTOM CF Card Slot SO DIMM...
Page 42: ...IA32 Motherboard User Manual 34 Setp 6 Click on Finish and go on...
Page 61: ...IA32 Motherboard User Manual 53 ACPI Configuration General ACPI Configuration...
Page 71: ...IA32 Motherboard User Manual 63 Resume On RTC Alarm Disable Enable RTC wake event...
Page 86: ...IA32 Motherboard User Manual 78 Boot Device Priority Select the priority of Boot devices...