Appendix a: programming watchdog timer, Appendix a, Programming watchdog timer – Lanner LEC-7230 User Manual

Page 16

Advertising
background image

16

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 LannerIO v101.rar under the \WD_DIO\ folder and

unzip the file.
Click the Setup program in the unzipped folder.

4.

Click the Setup program.

1.

The welcome screen appears. Click Next to proceed.

2.

The installation process proceeds. Click Close when the

3.

process completes.

Advertising