Advantech PCA-6185 user manual AppendixA

Models: PCA-6185

1 114
Download 114 pages 57.71 Kb
Page 99
Image 99

The following example shows how you might program the watchdog timer in BASIC:

10 REM Watchdog timer example program

20OUT &H444, data REM Start and restart the watchdog

30GOSUB 1000 REM Your application task #1,

40OUT &H444, data REM Reset the timer

50GOSUB 2000 REM Your application task #2,

60OUT &H444, data REM Reset the timer

70X=INP (&H43) REM, Disable the watchdog timer

80END

1000 REM Subroutine #1, your application task

1070

RETURN

2000

REM Subroutine #2, your application task

2090

RETURN

89

AppendixA

Page 99
Image 99
Advantech PCA-6185 user manual AppendixA