User`s manual
Appendix A Programming the Watchdog Timer 65
The following program shows how you might program the watchdog
timer in BASIC:
10 REM Watchdog timer example program
20 X=Out &H443, 1 REM Enable and refresh the watchdog
30 GOSUB 1000 REM Task #1, takes 1 second to complete
40 X=Out &H443, 1 REM Refresh the watchdog
50 GOSUB 2000 REM Task #2, takes 1 second to complete
60 X=Out &H443, 0 REM Disable the watchdog
70 END
1000 REM Subroutine #1, takes 1 second to complete
.
.
.
1070 RETURN
2000 REM Subroutine #2, takes 1 second to complete
.
.
.
2090 RETURN










