Appendix a: programming watchdog timer, Appendix a, Programming watchdog timer – Lanner LEC-2110 User Manual
Page 23

23
Programming Watchdog Timer
Embedded and Industrial Computing
Appendix A
Appendix A:
Programming Watchdog
Timer
A watchdog timer is a piece of hardware that can be
used to automatically detect system anomalies and reset
the processor in case there are any problems. Generally
speaking, a watchdog timer is based on a counter that
counts down from an initial value to zero. The software
selects the counter’s initial value and periodically restarts
it. Should the counter reach zero before the software
restarts it, the software is presumed to be malfunctioning
and the processor’s reset signal is asserted. Thus, the
processor will be restarted as if a human operator had
cycled the power.
For sample watchdog code, see Watch dog and DIO folder
in the Driver and Manual CD
Driver Installation
Before you could access or control the operation of the
watchdog and Digital I/O functions, install the the L_IO
driver which is the library and driver needed for Lanner
General Purpose Input/Output interface or functions.
To install the L_IO driver:
Restart the computer, and then log on with
1.
Administrator privilege.
Insert the Drivers and User’s Manual CD to the USB-
2.
optical drive.
Browse the contents of the support CD to locate the
3.
file LIO.rar under the \Watch dog and DIO\LIO folder
and unzip the file.
From the control panel, click the ADD Hardware
4.
program
Click Next to proceed
5.
Answer “Yes” to the question and select Next to
6.
proceed.
Select Add a new hardware device.
7.