After data entry, your program must refresh the watchdog timer by
rewriting I/O port 443 (hex) while simultaneously setting it. When
you want to disable the watchdog timer, your program should read I/O
port 443 (hex).
The following example shows how you might program the watchdog
timer in BASIC:
10
20
30
40
50
60
70
80
1000
•
•
•
1070
2000
•
•
•
2090
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com
REM
Watchdog timer example program
OUT &H443, data REM
GOSUB 1000 REM
OUT &H443, data REM
GOSUB 2000 REM
OUT &H443, data REM
X=INP (&H443) REM
END
REM
Subroutine #1, your application task
•
•
•
RETURN
REM
Subroutine #2, your application task
•
•
•
RETURN
Appendix A Programming the Watchdog Timer
Start and restart the watchdog
Your application task #1,
Reset the timer
Your application task #2,
Reset the timer
Disable the watchdog timer
103
Need help?
Do you have a question about the IPC-610B and is the answer not in the manual?