Advantech PPC-153 User Manual page 147

Hide thumbs Also See for PPC-153:
Table of Contents

Advertisement

The following example shows how you might program the watchdog
timer in BASIC:
1 0
REM
2 0
OUT &H443, data REM
watchdog
3 0
GOSUB 1000 REM
4 0
OUT &H443, data REM
5 0
GOSUB 2000 REM
6 0
OUT &H443, data REM
7 0
X=INP (&H443) REM, Disable the watchdog timer
8 0
END
1000
REM
1070
RETURN
2000
REM
2090
RETURN
Watchdog timer example program
Your application task #1,
Your application task #2,
Subroutine #1, your application task
Subroutine #2, your application task
Appendix B Programming the Watchdog Timer
Start and restart the
Reset the timer
Reset the timer
131

Advertisement

Table of Contents
loading

Table of Contents