eBOX671B Series user's Manual
//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
lpFnDll_Set_IO(0x2e, 0xF6);
lpFnDll_Set_IO(0x2f, WDTtimer);
//set watchdog time unit to min
lpFnDll_Set_IO(0x2e, 0xF5);
WDTDATA = lpFnDll_Get_IO(0x2f);
WDTDATA = setbit(WDTDATA, 3);
lpFnDll_Set_IO(0x2f, WDTDATA);
//start watchdog counting
lpFnDll_Set_IO(0x2e, 0xF5);
WDTDATA = lpFnDll_Get_IO(0x2f);
WDTDATA = setbit(WDTDATA, 5);
lpFnDll_Set_IO(0x2f, WDTDATA);
}
system("pause");
return 0;
}
Watchdog Timer
83
Need help?
Do you have a question about the eBOX671B Series and is the answer not in the manual?
Questions and answers