6. Watch-Dog-Timer (WDT) Setting
34
SPC-8450-LVA
(2) Example programming
The following example is written in Intel8086 assembly language.
;===============
;<WDT Initial>
;===============
;-----------------------------------
;Enter the extended function mode
;-----------------------------------
MOV DX,2EH
MOV AL,87H
OUT DX,AL
OUT DX,AL
;-----------------------------------
;Set WDT function at pin89
;-----------------------------------
MOV DX,2EH
MOV AL,2BH
OUT DX,AL
MOV DX,2FH
MOV AL,0DH
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
;---------------------------------------------------
;Activate logical device WDT(number 8)
;---------------------------------------------------
MOV DX,2EH
MOV AL,30H
OUT DX,AL
MOV DX,2FH
MOV AL,01H
OUT DX,AL
;-----------------------------------
;Set timer unit : second
;-----------------------------------
MOV DX,2EH
MOV AL,F5H
OUT DX,AL
MOV DX,2FH
MOV AL,00H
OUT DX,AL
Summary of Contents for SPC-8450-LVA
Page 7: ...vi SPC 8450 LVA...
Page 31: ...3 Hardware Installations 24 SPC 8450 LVA...
Page 37: ...4 Jumper Setting 30 SPC 8450 LVA...