A.3 Example Programs
1. Enable watchdog timer and set 10 seconds of timeout interval
;----------------------------
; enter configuration state
;----------------------------
mov
mov
out
;----------------------------
; select watchdog registers
;----------------------------
mov
mov
out
mov
mov
out
;----------------------------
; get base address
;----------------------------
mov
mov
out
mov
in
mov
mov
TPC-1770/1780 User Manual
dx, 2Eh
al, 55h
dx, al
al, 7
dx, 2Eh
dx, al
dx, 2Fh
al, 0ah
dx, al
al, 60h
dx, 2Eh
dx, al
dx, 2Fh
al, dx
ah, al
al, 61h
32