74
PT-S959SDLX / PT-S959SDLXC Series User’s Manual
<WDT Initial>
===============
.MODEL SMALL
.STACK 100h
.386p
.Code
IO_Port EQU 2Eh
;--- The WDTT value of an example is 5 seconds
;--- If the WDTT value is 0, the WDT is stop.
WDTT EQU 5
BEGIN:
;--- Init NCT610xD IO ---
mov dx,IO_Port
mov al,087h
out dx,al
out dx,al
;--- Set Logical Device 8 ---
mov ch,007h
mov cl,008h
call Set_IO
;--- WDT Function Active ---
mov ch,030h
call Get_IO
or cl,001h
call Set_IO
;--- Set WDT Timer ---
mov ch,0F1h
mov cl,WDTT
call Set_IO
;--- Close NCT610xD IO ---
mov dx,IO_Port
mov al,0AAh
out dx,al
;--- End Program ---
mov ah,4ch
int 21h
; ----------------------------------------
; ch = Index
; cl = Data
; ----------------------------------------
Get_IO Proc Near
mov dx,IO_Port
mov al,ch