Appendix B Programming the Watchdog Timer 131The following example shows how you might program the watchdogtimer in BASIC:1 0 REM Watchdog timer example program2 0 OUT &H443, data REM Start and restart thewatchdog3 0 GOSUB 1000 REM Your application task #1,4 0 OUT &H443, data REM Reset the timer5 0 GOSUB 2000 REM Your application task #2,6 0 OUT &H443, data REM Reset the timer7 0 X=INP (&H443) REM, Disable the watchdog timer8 0 END1000 REM Subroutine #1, your application task• •• •• •1070 RETURN2000 REM Subroutine #2, your application task• •• •• •2090 RETURN