Watchdog Timer Enable & Trigger; Watchdog Timer Disabled - FabiaTech FX5634 Fanless Series User Manual

Table of Contents

Advertisement

FabiaTech Corporation
Watchdog Timer Enable & Trigger
After you enable the watchdog timer, your program must write the same factor as
enabling to the watchdog register at least once every time-out period to its
previous setting. You can change the time-out period by writing another timer
factor to the watchdog register at any time, and you must trigger the watchdog
before the new time-out period in the next trigger. Below is a Turbo C
which demonstrates how to trigger the watchdog timer:
#include "stdio.H"
#include "WDLIB.H"
main( )
{
char WD_TIME=ox6;
InitWD(equWdUnitS);
printf ("Enable watchdog");
//Trigger watchdog Timer Output is 6 seconds
EnWD(WD_TIME);
}

Watchdog Timer Disabled

To disable the watchdog timer, simply write DisWD( ) function.
#include "stdio.H"
#include "WDLIB.H"
main( )
{
InitWD(equWdUnitS);
printf ("Disable Watch Dog");
//Disable watch dog
DisWD( );
}
60
program,
++

Advertisement

Table of Contents
loading

Table of Contents