![FabiaTech PC104 Скачать руководство пользователя страница 53](http://html.mh-extra.com/html/fabiatech/pc104/pc104_user-manual_536442053.webp)
FabiaTech Corporation
Watchdog Timer Enabled
To enable the watchdog timer, you have to output a byte of timer factor to the
watchdog. The following is a Turbo C
++
program, which demonstrates how to
enable the watchdog timer and set the time-out period at 6 seconds.
#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 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
++
program,
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);
}
48
Содержание PC104
Страница 5: ...v ...
Страница 11: ...FabiaTech Corporation 6 ...
Страница 25: ...FabiaTech Corporation 20 ...
Страница 29: ...FabiaTech Corporation 24 ...
Страница 55: ...FabiaTech Corporation 50 ...
Страница 68: ...FabiaTech Corporation 63 Appendix Dimension ...