Acura Embedded AcuPanel 15 User Manual
Page 87
Appendix C: Watchdog Programming Guide
===============================================
SetupWDT
mov
mov
out
nop
nop
mov
out
nop
nop
mov
out
nop
nop
out
PROC
dx, 2eh
al, 087h
dx, al
out
ret
TimeBaseWDT
2fh, al
ENDP
===============================================
TimeCountWDT PROC
mov
out
mov
out
ret
al, 73h ;WDT Time-out register.
2eh, al
al, 03h ;Here!! Set count 3.
2fh, al
al, 01h
dx, al
al, 55h
dx, al
TimeCountWDT ENDP
===============================================
ExitSetup
mov
out
mov
out
ret
ExitSetup
PROC
al, 02h
2eh, al
al, 02h
2fh, al
ENDP
dx, al
;Write operations to special address
port (2E) for entering MB PnP Mode.
mov
out
mov
out
ret
SetupWDT
al, 07h
2eh, al
al, 07h
2fh, al
ENDP
;Select logical device for Watch Dog.
===============================================
===============================================
TimeBaseWDT
mov
out
mov
or
PROC
al, 72h
2eh, al
al, 10h ;Set WDT reset upon PWROK
al, 80h ;Here!! set 80h for second, set 00h for minute
82