Appendix a: watchdog timer – NEXCOM NViS 2280 User Manual

Page 91

Advertising
background image

Copyright © 2012 NEXCOM International Co., Ltd. All rights reserved

78

NViS 2280 User Manual

Appendix A: Watchdog Timer

WDT Programming Guide

NViS 2280 Watch Dog Function Configuration Sequence Description:

Appendix A: Watchdog Timer

Step1. See “SetupWDT” procedure
#Setup Watchdog Timer Environment

Step2. See “TimeBaseWDT” procedure
#Initial Watchdog Timer.
Users can select second or minute.

Step3. See “TimeCountWDT”
procedure
#Set Watchdog Timer Time-out Value.

Users can set time-out value.

Step4: See ExitSetup procedure
#Exit Setup Environment

(ref)

Star
t

End

===============================================
SetupWDT PROC

mov

dx, 2eh

mov

al, 087h

out

dx, al

nop
nop

out

dx, al

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, 02h ;Set WDT reset upon KBRST#

or

al, 00h ;Here!! set 00h for second, set 08h for minute

Advertising