Advantech PCM-9574 User Manual page 87

Socket 370 celeron/pentium iii sbc with lcd, ethernet and scsi
Table of Contents

Advertisement

The following example shows how you might program the watchdog
timer in BASIC:
10
REM Watchdog timer example program
20
OUT &H443, data
watchdog
30
GOSUB 1000
40
OUT &H443, data
50
GOSUB 2000
60
OUT &H443, data
70
X=INP (&H443)
timer
80
END
1000
REM
.
.
.
1070
RETURN
2000
REM
.
.
.
2090
RETURN
REM Your application task #1
REM Your application task #2
REM Disable the watchdog
Subroutine #1, you application task
Subroutine #2, you application task
Appendix A Programming the Watchdog Timer
REM Start and restart the
REM Reset the timer
REM Reset the timer
75

Advertisement

Table of Contents
loading

Table of Contents