IPC972 Series U
ser’s Manual
Watchdog Timer
83
Appendix A
Watchdog Timer
A.1
About Watchdog Timer
Software stability is major issue in most application. Some embedded systems are not watched
by human for 24 hours. It is usually too slow to wait for someone to reboot when computer
hangs. The systems need to be able to reset automatically when things go wrong. The
watchdog timer gives us solution.
The watchdog timer is a counter that triggers a system reset when it counts down to zero from
a preset value. The software starts counter with an initial value and must reset it periodically. If
the counter ever reaches zero which means the software has crashed, the system will reboot.
A.2
Sample Program
#include
"stdafx.h"
#include
<windows.h>
#include
<stdio.h>
#include
<tchar.h>
#include
<stdlib.h>
#ifdef
_DEBUG
#define
new
DEBUG_NEW
#endif
#pragma
comment
(
lib
,
"User32.lib"
)
#define
IDT_TIMER
WM_USER
+ 200
#define
_CRT_SECURE_NO_WARNINGS
1
#define
setbit
(value,x) (value |=(1<<x))
#define
clrbit
(value,x) (value &=~(1<<x))
HINSTANCE
hinstLibDLL =
NULL
;
LONG
WDTDATA = 0;
Summary of Contents for IPC972
Page 1: ...IPC972 Industrial Computer User s Manual...
Page 16: ...IPC972 Series User s Manual 8 Introduction IPC972 system w optional 5G antenna bracket...
Page 66: ...IPC972 Series User s Manual 58 AMI BIOS UTILITY...
Page 68: ...IPC972 Series User s Manual 60 AMI BIOS UTILITY CSM Configuration...
Page 78: ...IPC972 Series User s Manual 70 AMI BIOS UTILITY...
Page 83: ...IPC972 Series User s Manual AMI BIOS UTILITY 75 HD Audio Configuration...
Page 84: ...IPC972 Series User s Manual 76 AMI BIOS UTILITY PCI Express Configuration...
Page 85: ...IPC972 Series User s Manual AMI BIOS UTILITY 77 USB Configuration...
Page 90: ...IPC972 Series User s Manual 82 AMI BIOS UTILITY This page is intentionally left blank...