Appendix A: Programming Watchdog Timer - Lanner LEC-3010 User Manual

Din-rail
Table of Contents

Advertisement

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:
1
Restart the computer, and then log on with
Administrator privilege
2
Insert the Drivers and User's Manual CD to the USB-
optical drive
3
Browse the contents of the support CD to locate the
file LIO rar under the \Watch dog and DIO\LIO folder
and unzip the file
4
From the control panel, click the ADD Hardware
program
Embedded and Industrial Computing
Programming Watchdog Timer
5
Click Next to proceed
6
Answer "Yes" to the question and select Next to
proceed
7
Select Add a new hardware device
27

Advertisement

Table of Contents
loading

Table of Contents