MANO540 Mini ITX Motherboard
Digital I/O
59
DI0status =
GPIO_HIGH
;
}
else
{
DI0status =
GPIO_LOW
;
}
if
(0x20 & u8AHData)
//GPIO85 DI1 status
{
DI1status =
GPIO_HIGH
;
}
else
{
DI1status =
GPIO_LOW
;
}
if
(0x40 & u8AHData)
//GPIO86 DI2 status
{
DI2status =
GPIO_HIGH
;
}
else
{
DI2status =
GPIO_LOW
;
}
if
(0x80 & u8AHData)
//GPIO87 DI3 status
{
DI3status =
GPIO_HIGH
;
}
else
{
DI3status =
GPIO_LOW
;
}
if
((DI0status ==
GPIO_LOW
&& DI1status ==
GPIO_LOW
) && (DI2status ==
GPIO_LOW
&& DI3status ==
GPIO_LOW
))
{
printf(
"All DINPUT status Low\n"
);
}
else
if
((DI0status ==
GPIO_HIGH
&& DI1status ==
GPIO_HIGH
) && (DI2status ==
GPIO_HIGH
&& DI3status ==
GPIO_HIGH
))
{
printf(
"All DINPUT status High\n"
);
}
Sleep(1000);
}
system(
"pause"
);
return
0;
}
Summary of Contents for MANO540 Series
Page 6: ...vi This page is intentionally left blank ...
Page 10: ...MANO540 Mini ITX Motherboard 4 Introduction 1 4 Block Diagram ...
Page 18: ...MANO540 Mini ITX Motherboard 12 Board and Pin Assignments 20 21 Bottom View ...
Page 66: ...MANO540 Mini ITX Motherboard 60 Digital I O This page is intentionally left blank ...