beautypg.com

C: w, Ppendix, Atchdog – NEXCOM NISE 3100eP2 User Manual

Page 75: Imer, Etting

background image

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

62

NISE 3100e, NISE 3100eP2, NISE 3150e User Manual

Appendix C: Watchdog Timer Setting

A

ppendix

C: W

AtChdog

t

imer

S

etting

;*Enter the MB PnP mode with 0x87, 0x01, 0x55, 0x55
mov

dx, 2eh

mov

al, 87h

out

dx, al

mov

dx, 2eh

mov

al, 01h

out

dx, al

mov

dx, 2eh

mov

al, 55h

out

dx, al

mov

dx, 2eh

mov

al, 55h

out

dx, al

;*Set LDN=0x07 point to the WDT function
mov

dx, 2eh

mov

al, 07h

out

dx, al

mov

dx, 2fh

mov

al, 07h

out

dx, al

;*Setup configuration register 0x72, if set 0c0h is second, set 40h is

minute(WDT output through KRST)
mov

dx, 2eh

mov

al, 72h

out

dx, al

mov

dx, 2fh

mov

al, 0c0h

out

dx, al

;*Setup WDT time-out value. this demo code is used to program the tim-
out value with 4 sec.
mov

dx, 2eh

mov

al, 73h

out

dx, al

mov

dx, 2fh

mov

al, 4

out

dx, al

;*Exit the MB PnP Mode
mov

dx, 2eh

mov

al, 02h

out

dx, al

mov

dx, 2fh

mov

al, 02h

out

dx, al