MANO321 Mini ITX Motherboard
Digital I/O
57
lpFnDll_Set_IO(0x2e, 0x89);
u89HData = lpFnDll_Get_IO(0x2f);
u89HData =
clrbit
(u89HData, 3);
lpFnDll_Set_IO(0x2f, u89HData);
while
(1)
{
//Get GPIO 8x Status
lpFnDll_Set_IO(0x2e, 0x8A);
u8AHData = lpFnDll_Get_IO(0x2f);
lpFnDll_Set_IO(0x2f, u8AHData);
if
(0x10 & u8AHData)
//GPIO84 DI0 status
{
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 MANO321 Series
Page 1: ...MANO321 Series Intel Celeron Processor J6412 Mini ITX Motherboard User s Manual ...
Page 6: ...vi This page is intentionally left blank ...
Page 10: ...MANO321 Mini ITX Motherboard 4 Introduction 1 4 Block Diagram ...
Page 12: ...MANO321 Mini ITX Motherboard 6 Board and Pin Assignments Bottom View ...