Watchdog function definitions using enhanced INT 17h handler
This section provides definitions for the watchdog functions using the INT17
handler, stored in the extended BIOS area that is enabled by the X switch, or the
I17HNDLR.EXE utility. I17HNDLR.EXE is a TSR program. Once executed it is
active, but it must be executed each time the system is rebooted. If you use a
different BIOS, the INT17 functions can still be used by your application. Copy the
I17HNDLR.EXE utility to your hard drive and add it to your AUTOEXEC.BAT.
The INT17 handler is designed for DOS based applications. If you use a different
operating system and the watchdog functions are required for your application,
source code is available on the Octagon Product CD-ROM to access the watchdog.
OS Development Kits are available from Octagon for Linux, QNX, and Windows
CE.net that have watchdog drivers for these operating systems. Contact Octagon
Systems for more information.
Enable watchdog
Function: fdh
Subfunction: 01h
Purpose:
To enable the watchdog.
Calling registers:
AH
fdh
AL
01h
BX
timeout (0=1 second, 1=10 seconds, 2=60
seconds)
DX
ffffh
Return registers:
None
Comments:
This function enables the watchdog. Once
the watchdog is enabled, it has to be strobed at
a period greater than the timeout period
specified or until the watchdog is disabled.
Otherwise, a system reset will occur.
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
/* set watchdog to 10 second timeout */
asm {
mov
ax,0fd01h
mov
bx,1
mov
dx,0ffffh
int
17h
}
81
Содержание XE-700
Страница 18: ...Figure 2 1 XE 700 SBC component diagram top 18 ...
Страница 19: ...Figure 2 2 XE 700 SBC component diagram bottom 19 ...
Страница 20: ...Figure 2 3 XE 700 SBC dimensions 20 ...