131
B
Watchdog Timer
MOV
DX,SIO_DATA
;BIT1 DIS/EN WDTO# OUTPUT LOW PULSE TO
KBRST#PIN(0=DIS, 1=ENABLE)
IN
AL,DX
;BIT3 COUNTER MODE SLEECT (0=SECOND
MODE, 1=MINUTE MODE)
OR
AL,02H
OUT
DX,AL
MOV
DX,SIO_CON_PORT
MOV
AL,0F6H
;WATCH DOG COUNTER
OUT
DX,AL
MOV
DX,SIO_DATA
MOV
AL,0AH
;SET COUNTER (EX 10 SEC)
OUT
DX,AL
MOV
DX,SIO_CON_PORT
MOV
AL,0F7H
;WATCH DOG COUNTER
OUT
DX,AL
MOV
DX,SIO_DATA
MOV
AL,00H
;Clear WDTO
OUT
DX,AL
mov
DX,SIO_CON_PORT ;SUPERIO EXIT CONFIG
mov
al, 0AAh
out
dx, al
;================ RETURN DOS ===================
mov
ah,4ch ;return dos
int
21h
end begin