System functions
Watchdog_Reset
ADwin
56
ADwin-Gold II
, Manual February 2013
Watchdog_Reset
Watchdog_Reset
resets the watchdog counter to the start value. The counter
remains enabled.
Syntax
#INCLUDE
ADwinGoldII.inc / GoldIITiCo.inc
Watchdog_Reset
()
Parameters
- / -
Notes
As soon as the watchdog counter is enabled, it decrements the counter
values continuously. When the counter value reaches 0 (zero) the sy-
stem assumes a malfunction and and executes the functions being set
by
Watchdog_Init
.
Set the active watchdog timer at least once to the start value (see
Watchdog_Init
) within the counting time, in order to keep your system
working. If the watchdog counter is disabled,
Watchdog_Reset
has no
function.
See also
,
Valid for
Gold II
Example
Rem Select the appropriate include file for ADbasic / TiCoBasic
#INCLUDE
ADwinGoldII.inc / GoldIITiCo.inc
Init:
Watchdog_Init
(
1
,
0FFFEh
,
1111b
)
'enable and configure watchdog
Event:
Watchdog_Reset
()
'reset watchdog regularly
Rem …
Finish:
Watchdog_Init
(
0
,
0
,
0
)
'disable watchdog
T11 TiCo