7. Watch-Dog-Timer (WDT) Setting
SPI-8451-LLVA, SPI-8452-LLVA, SPI-8451-LVA 73
;------------------------------------------
;Exit the extended function mode
;------------------------------------------
MOV DX,2EH
MOV AL,AAH
OUT DX,AL
;================================
;<WDT START : counter set and a start >
;================================
;---------------------------------------------
;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