I570 Motherboard User Manual
59
// = 1 -> GPIO1.
ucBuf = Get_W83627EHG_Reg(0x29);
Set_W83627EHG_Reg(0x29,ucBuf|0x 01);
// 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, 0x 00); //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 Chang ed. Current Data is 0x%X\n",ucDI);
}
if (kbhit())
{
getch();
break;
}
delay(500);
}
return 0;
}
//===================================== =======================
void ClrKbBuf(void)
{
while(kbhit())
{ getch(); }
Содержание I570
Страница 14: ...I570 Motherboard User Manual 4 1 5 Board dimensions...
Страница 34: ...I570 Motherboard User Manual 24...
Страница 35: ...I570 Motherboard User Manual 25 Step 3 Click on Next to install Driver Step 4 Click on Next to install Driver...
Страница 39: ...I570 Motherboard User Manual 29 Setp 3 Click on Next to install driver Setp 4 Click on Yes to agree License...
Страница 40: ...I570 Motherboard User Manual 30 Setp 5 Click on Next to install driver Setp 6 Click on Next to install driver...
Страница 41: ...I570 Motherboard User Manual 31 Step 7 Click on Yes I want to restart this computer now to go on...
Страница 45: ...I570 Motherboard User Manual 35 Setp 3 Click on Finish and go on...
Страница 65: ...I570 Motherboard User Manual 55 the user is allowed to set the Date and Time...