Appendix B Technical Summary
SP-7755 USER MANUAL
Page: B-23
Code example for watch dog timer
Enable watchdog timer and set timeout interval to 30 seconds.
; --------------------Enter to extended function mode-------------------------
mov
dx,
2Eh
mov
al,
87h
out
dx,
al
out
dx,
al
; -----------------Select Logical Device 7 of watchdog timer----------------
mov
al,
07h
out
dx,
al
inc
dx
mov
al,
07h
out
dx,
al
;-------------------------Enable Watch dog feature-----------------------------
dec
dx
mov
al,
30h
out
dx,
al
inc
dx
mov
al,
01h
out
dx,
al
;-------------Set timeout interval as 30seconds and start counting ---------
dec
dx
mov
al,
F6h
out
dx,
al
inc
dx
mov
al,
1Eh
out
dx,
al
;------------------------------Enable Watch PME--------------------------------
dec
dx
mov
al,
FAh
out
dx,
al
inc
dx