NEXCOM NISE 3140 User Manual
Page 86
Copyright © 2009 NEXCOM International Co., Ltd. All Rights Reserved.
73
NISE 3140, NISE 3140E, NISE 3140P2, NISE 3140P2E User Manual
Appendix C: Watchdog Timer Setting
===============================================
SetupWDT
PROC
mov
dx, 2eh
mov
al, 087h
out
dx, al
nop
nop
mov
al, 01h
out
dx, al
nop
nop
mov
al, 55h
out
dx, al
nop
nop
out
dx, al
;Write operations to special address port
(2E) for entering MB PnP Mode.
mov
al, 07h
out
2eh, al
mov
al, 08h ;Select logical device for Watch Dog.
out
2fh, al
ret
SetupWDT
ENDP
===============================================
TimeBaseWDT
PROC
mov
al, 72h
out
2eh, al
mov
al, 40h ;Set WDT reset upon KBRST#
or
al, 00h ;Here!! set 00h for second, set 80h for minute
out
2fh, al
ret
TimeBaseWDT
ENDP
===============================================
TimeCountWDT PROC
mov
al, 73h ;WDT Time-out register.
out
2eh, al
mov
al, 03h ;Here!! Set count 3.
out
2fh, al
ret
TimeCountWDT ENDP
===============================================
ExitSetup PROC
mov
dx, 2eh
mov
al, 0AAh
out
dx, al
ExitSetup ENDP
===============================================