User`s manual
28 ICOP Embedded 386SX PC/104 AIO CPU Module User's Manual
readchip endp
writechip proc
out 22h, al
nop
nop
xchg ah, al
out 23h, al
nop
nop
xchg ah, al
ret
writechip endp
end main
Reset watchdog timer
Resets the watchdog timer periodically to prevent timeout.
mov ax, 0c513h ; Unlock configuration
; register
call writechip
mov ax, 03C3Ch ; Reset watchdog timer
; counter
call readchip
or al, 00100000b ; The counter is reset at
xchg ah, al ; out 23h, al
call writechip
mov ax, 00013h ; Lock configuration
; register
call writechip
(the above code uses readchip and writechip procedures)