—
Appendix
—
SPT-100A22TP01, SPT-100A22TP02 Reference Manual (Hardware)
- 86 -
(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
;-----------------------------------------------
; 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,03H
OUT DX,AL