beautypg.com

NEXCOM ICES 268 User Manual

Page 96

background image

Copyright © 2013 NEXCOM International Co., Ltd. All Rights Reserved.

82

ICEK 268-T2 Starter Kit User Manual

Appendix A: Watchdog Timer

===============================================
SetupWDT PROC
mov dx, 2eh
mov al, 087h
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, 0F5h
out 2eh, al
mov al, 04h ; Here!! set 04h for second, set 0Ch for minute(WDT output
through WDTO)
out 2fh, al
ret
TimeBaseWDT ENDP
===============================================
TimeCountWDT PROC
mov al, 0F6h ;WDT Time-out register.
out 2eh, al
mov al, 03h ;Here!! Set count 3.
out 2fh, al
ret

TimeCountWDT ENDP
===============================================
ExitSetup PROC
mov al, 0AAh
out 2eh, al
ret
ExitSetup ENDP
===============================================