beautypg.com

Appendix b - watchdog sample code, Appendix b – DFI KS230-CD Manual User Manual

Page 69

background image

69

Appendix B

www.dfi .com

Appendix B Watchdog Sample Code

Appendix B - Watchdog Sample Code

;Software programming example:

;---------------------------------------------

;(1) Enter Super IO Confi guration mode

;---------------------------------------------

MOV DX,2EH

MOV AL,87H

OUT DX,AL

OUT DX,AL

;-------------------------------------------------------------------------------------------

;(2) Confi guration Logical Device 7, register CRF5/CRF6 (WDT Control /WDT

timer)

;-------------------------------------------------------------------------------------------

MOV DX,2EH

MOV

AL,07H

;Ready to Program Logical Device

OUT DX,AL

MOV DX,2FH

MOV

AL,07H

;Select Logical Device 7

OUT DX,AL

MOV DX,2EH

MOV

AL, F6H

;Select watchdog timer register

OUT DX,AL

MOV DX,2FH

MOV

AL,10H

;Set watchdog timer value

OUT DX,AL

MOV DX,2EH

MOV

AL, F5H

;Select watchdog Control Register

OUT DX,AL

MOV DX,2FH

MOV

AL,61H

;Set Watchdog Control Value

OUT DX,AL

;----------------------------------------------------------------

;(1) Exit extended function mode

;----------------------------------------------------------------

MOV DX,2EH

MOV AL,AAH

OUT DX,AL

This manual is related to the following products: