3115T R3 Thin Line Industrial Flat Panel PC Appendix A – Watchdog Timer
70
141876(E)
Example assembly program:
WDT_PORT = 440H
;;INITIAL TIMER COUNTER
MOV DX, WDT_PORT
MOV AL, 1
;;1 minute
OUT DX,
AL
;;
start counter
W_LOOP:
MOV DX, WDT_PORT
MOV AL, 0
OUT DX, AL ;;stop counter
MOV DX, WDT_PORT
MOV AL, 1
OUT
DX
, AL
;;restart counter
;;ADD YOUR APPLICATION HERE
CMP EXIT_AP, 0
JNE W_LOOP
MOV DX, WDT_PORT
MOV AL, 0
OUT DX, AL
;;EXIT AP