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