Intel OPEN (660) 120/140/150 II User Manual

Page 150

Advertising
background image

User Manual version 2.1

OPEN (660) 120/140/150

9-140

The following is a sample program illustrating the way to
program the watchdog timer in BASIC.

10 REM Watchdog timer example program
20 OUT &H443, data REM enable the watchdog timer
30 GOSUB 1000 REM Your application task #1
40 OUT &H443, data REM Reset the timer
50 GOSUB 1000 REM Your application task #1
60 OUT &H443, data REM Reset the timer
70 X=INP (&H143) REM Disable the watchdog timer
80 End

1000 REM Subroutine #1, your application task

1090 Return

2000 REM Subroutine #2, your application task

2090 Return

Advertising