eBOX671A Series u
ser’s Manual
Watchdog Timer
65
//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;
}
Содержание eBOX671A Series
Страница 1: ...eBOX671A Series Embedded System User s Manual ...
Страница 49: ...eBOX671A Series user s Manual BIOS Setup Utility 41 Serial Port 1 Serial Port 2 ...
Страница 50: ...eBOX671A Series user s Manual 42 BIOS Setup Utility Serial Port 3 Serial Port 4 ...
Страница 56: ...eBOX671A Series user s Manual 48 BIOS Setup Utility ...
Страница 57: ...eBOX671A Series user s Manual BIOS Setup Utility 49 ...
Страница 70: ...eBOX671A Series user s Manual 62 BIOS Setup Utility This page is intentionally left blank ...
Страница 74: ...eBOX671A Series user s Manual 66 Programmable LED This page is intentionally left blank ...