6. Watch-Dog-Timer (WDT) Setting
38
SPC-8520-LA , SPC-8521-LA
(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
Содержание SPC-8520-LA
Страница 7: ...vi SPC 8520 LA SPC 8521 LA...
Страница 13: ...1 Introduction 6 SPC 8520 LA SPC 8521 LA...
Страница 19: ...2 System Reference 12 SPC 8520 LA SPC 8521 LA...
Страница 41: ...4 Jumper Setting 34 SPC 8520 LA SPC 8521 LA...
Страница 43: ...5 Board Resources 36 SPC 8520 LA SPC 8521 LA...
Страница 76: ...7 BIOS Setup SPC 8520 LA SPC 8521 LA 69 Description Choice...