Appendix E Programming The Watchdog Timer - Advantech PCM-5820 Manual

Hide thumbs Also See for PCM-5820:
Table of Contents

Advertisement

The following program shows how you might program the watch-
dog timer in BASIC:
1 0
REM
2 0
X=Out &H443, 1 REM
watchdog
3 0
GOSUB 1000 REM
complete
4 0
X=Out &H443, 1 REM
5 0
GOSUB 2000 REM
complete
6 0
X=Out &H443, 0 REM
7 0
END
1000
REM
complete
.
.
.
1070
RETURN
2000
REM
complete
.
.
.
2090
RETURN
Watchdog timer example program
Task #1, takes 1 second to
Task #2, takes 1 second to
Subroutine #1, takes 1 second to
Subroutine #2, takes 1 second to

Appendix E Programming the Watchdog Timer

Enable and refresh the
Refresh the watchdog
Disable the watchdog
99

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pcm-5820l

Table of Contents