![Winmate I771 User Manual Download Page 89](http://html1.mh-extra.com/html/winmate/i771/i771_user-manual_987065089.webp)
I771 Motherboard User Manual
80
// = 1 -> GPIO1.
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 I771
Page 13: ...I771 Motherboard User Manual 4 1 5 Board dimensions ...
Page 42: ...I771 Motherboard User Manual 33 Setp 7 Click on Finish ...
Page 63: ...I771 Motherboard User Manual 54 MPS Configuration ...
Page 73: ...I771 Motherboard User Manual 64 ...
Page 77: ...I771 Motherboard User Manual 68 Boot Device Priority Select the priority of Boot devices ...