AXIOMTEK IMB541 User Manual page 66

Intel socket 1700 core i9/i7/ i5/ i3 /pentium/ celeron and xeon e processors atx industrial motherboard
Table of Contents

Advertisement

IMB541 User's manual
{
hinstLibDLL = LoadLibrary(TEXT("diodll.dll"));
if (hinstLibDLL == NULL)
{
//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);
lpFnDll_Set_IO(0x2e, 0x07);
lpFnDll_Set_IO(0x2f, 0x07); //SET LDN 07
//set LDN07 FA 10 to 11
lpFnDll_Set_IO(0x2e, 0xFA);
WDTDATA = lpFnDll_Get_IO(0x2f);
WDTDATA = setbit(WDTDATA, 0);
lpFnDll_Set_IO(0x2f, WDTDATA);
if (unit == 1)
{
lpFnDll_Set_IO(0x2e, 0xF6);
lpFnDll_Set_IO(0x2f, WDTtimer);
//start watchdog counting
lpFnDll_Set_IO(0x2e, 0xF5);
WDTDATA = lpFnDll_Get_IO(0x2f);
WDTDATA = setbit(WDTDATA, 5);
lpFnDll_Set_IO(0x2f, WDTDATA);
}
else if (unit == 2)
{
//set WDT Timer
60
Watchdog Timer

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the IMB541 and is the answer not in the manual?

Table of Contents