MANO321 Mini ITX Motherboard
56
Digital I/O
//MessageBox("Load diodll dll error", "", MB_OK);
}
}
if
(hinstLibDLL)
{
lpFnDll_Get_IO =
(
LPFNDLLGETIOSPACE
)GetProcAddress(
GetModuleHandle
(
"diodll.dll"
),
"GetIoSpaceByte"
);
lpFnDll_Set_IO =
(
LPFNDLLSETIOSPACE
)GetProcAddress(
GetModuleHandle
(
"diodll.dll"
),
"SetIoSpaceByte"
);
}
/*
printf("Input Watch Dog Timer type, 1:Second ; 2:Minute :");
scanf("%d",&unit);
printf("\nInput Timer to countdown:");
scanf("%d", &WDTtimer);
printf("Start to countdown...");
*/
//==Enter MB Pnp Mode==
lpFnDll_Set_IO(0x2e, 0x87);
lpFnDll_Set_IO(0x2e, 0x87);
//LDN 06
lpFnDll_Set_IO(0x2e, 0x07);
lpFnDll_Set_IO(0x2f, 0x06);
//set LDN06 88h =OF
//88h <0> = 1 GPIO80 DO0 output mode set 1 or input mode set 0
lpFnDll_Set_IO(0x2e, 0x88);
u88HData = lpFnDll_Get_IO(0x2f);
u88HData =
setbit
(u88HData, 0);
lpFnDll_Set_IO(0x2f, u88HData);
// 88h <1> =1 GPIO81 DO1 output mode set 1 or input mode set 0
lpFnDll_Set_IO(0x2e, 0x88);
u88HData = lpFnDll_Get_IO(0x2f);
u88HData =
setbit
(u88HData, 1);
lpFnDll_Set_IO(0x2f, u88HData);
// 88h <2> =1 GPIO82 DO2 output mode set 1 or input mode set 0
lpFnDll_Set_IO(0x2e, 0x88);
u88HData = lpFnDll_Get_IO(0x2f);
u88HData =
setbit
(u88HData, 2);
lpFnDll_Set_IO(0x2f, u88HData);
// 88h <3> =1 GPIO83 DO3 output mode set 1 or input mode set 0
lpFnDll_Set_IO(0x2e, 0x88);
u88HData = lpFnDll_Get_IO(0x2f);
u88HData =
setbit
(u88HData, 3);
lpFnDll_Set_IO(0x2f, u88HData);
//set 89 FF-F0
// 89 <0> = 0 set GPIO 80 outputs 0 when in output mode
lpFnDll_Set_IO(0x2e, 0x89);
u89HData = lpFnDll_Get_IO(0x2f);
u89HData =
clrbit
(u89HData, 0);
lpFnDll_Set_IO(0x2f, u89HData);
// 89 <1> = 0
lpFnDll_Set_IO(0x2e, 0x89);
u89HData = lpFnDll_Get_IO(0x2f);
u89HData =
clrbit
(u89HData, 1);
lpFnDll_Set_IO(0x2f, u89HData);
//89 <2> = 0
lpFnDll_Set_IO(0x2e, 0x89);
u89HData = lpFnDll_Get_IO(0x2f);
u89HData =
clrbit
(u89HData, 2);
lpFnDll_Set_IO(0x2f, u89HData);
//89 <3> = 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 ...