beautypg.com

Contec SEH-9450-LAS User Manual

Page 40

background image

6. Watch-Dog-Timer (WDT) Setting

SEH-9450-LAS

33

;Exit the extended function mode

;------------------------------------------

MOV DX,2EH

MOV AL,AAH

OUT DX,AL

;================================

;

;================================

;---------------------------------------------

;Enter the extended function mode

;---------------------------------------------

MOV DX,2EH

MOV AL,87H

OUT DX,AL

OUT DX,AL

;------------------------------------------------

;Select logical device WDT(number 8)

;------------------------------------------------

MOV DX,2EH

MOV AL,07H

OUT DX,AL

MOV DX,2FH

MOV AL,08H

OUT DX,AL

;------------------------------------------------------

;Set time of WDT and start to count down

;------------------------------------------------------

MOV DX,2EH

MOV AL,F6H

OUT DX,AL

MOV DX,2FH

;------------------------------------------------------------------

----------------

;The data of an example is 15 seconds.(01H=1sec.- FFH=255sec.)

MOV AL,0FH ; 0FH = 15Sec.

;------------------------------------------------------------------

-----------------

OUT DX,AL

;-----------------------------------

;Exit the extended function mode

;-----------------------------------

MOV DX,2EH

MOV AL,AAH

OUT DX,AL

;==============

;

;==============

;-----------------------------------

;Enter the extended function mode

;-----------------------------------