beautypg.com

Programming example – NEXCOM NISE 2000 User Manual

Page 83

background image

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

70

NISE 2000, NISE 2010, NISE 2020 User Manual

Appendix B: Watchdog Timer Setting

Programming Example

;------------------------------------------------------------------
;Enter the Extended Function Mode
;------------------------------------------------------------------
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
nop
nop

OUT DX, AL
;------------------------------------------------------------------
;Configuration Logical Device 7,
;set second or minute mode
;set counter
;------------------------------------------------------------------
MOV DX, 2EH
MOV AL, 07H
OUT DX, AL ;set logical number
MOV DX, 2FH
MOV AL, 07H ;Select Logical Device 7
OUT DX, AL

;set second or minute mode
MOV DX, 2EH
MOV AL, 72H
OUT DX, AL ;Select index 72h
MOV DX, 2FH
MOV AL, 90H ;Second mode(MOV AL, 10H is minute mode)
OUT DX, AL
;set counter
MOV DX, 2EH
MOV AL, 73H
OUT DX, AL ;Select CRF6h
MOV DX, 2FH
MOV AL, 0F0H ;240 (second/minute) (0xF0=240)
OUT DX, AL
;------------------------------------------------------------------
Exit the Extended Function Mode
;------------------------------------------------------------------

MOV DX, 02H
MOV AL, 02H
OUT DX, AL

This manual is related to the following products: