Watchdog timer – DFI DS912-OT Manual User Manual

Page 117

Advertising
background image

117

B

Watchdog Timer

NEWIODELAY
mov

dx,

SuperIo_DAT_Port

in

al,

dx

NEWIODELAY
endM

mSuperio_LDN_Select Macro

LDN

mSuperio_Set_Reg

07h,

LDN

endM

mSuperio_Set_Reg Macro RegIndex, SetValue
mov

dx,

SuperIo_CFG_Port

mov

al,

RegIndex

out

dx,

al

NEWIODELAY
mov

dx,

SuperIo_DAT_Port

mov

al,

SetValue

out

dx,

al

NEWIODELAY
endM

NEWIODELAY Macro

out

0EBh, al ;Dummy I/O output for delay

endM

.code

start:
call

W83627Hx_WDT

mov

ah,

4ch

int

21h

W83627Hx_WDT Proc near
;LDN8
;CRF5[3] :RW 0/1 = WDTO Second/Minute
;CRF5[2] :RW 0/1 = Keyboard Reset Low/High when WDTO Timeout

;CRF6[7:0]:RW 00h = Disable , 01h~0FFh = 1~255 Sec/Min.

;CRF7[7] :RW 0/1 = Disable/Enable Mouse interrupt reset WDTO counting.

;CRF7[6] :RW 0/1 = Disable/Enable Keyboard interrupt reset WDTO counting.

;CRF7[5] :WO 1 = Force WDTO time out(Auto clear).

;CRF7[4] :RW 0/1 = WDTO time status TimeOut/Counting.

;CRF7[3:0]:RW 0~7 = Low IRQ for WDTO (Typical is 2, means SMI).

mSuperio_Enter_Confi g

mSuperio_LDN_Select

08h

Advertising
This manual is related to the following products: