System Installation
WADE-8044 User’s Manual
3-5
Below are some example codes, which demonstrate the use of WDT.
; Entry Super I/O Config
MOV
DX,002Eh
;01. Setup Super I/O Port 2Eh
MOV
AL,87h
;02. Setup Entry Key 87h
OUT
DX,AL
;03. Sent Entry Key Twice
OUT DX,AL
;---------------------------------------------------------------------------------------------------------------
; Set Super I/O Pin 77 Function
MOV
AL,02Dh
;04. Setup Super I/O WDTO pin define
OUT
DX,AL
;05. Assign Access Register 2Dh
MOV
DX,02Fh
;06. Assign Data Port(02Fh), read register back
IN
AL,DX
;07. From Data Port(2Fh) , read register back
AND
AL,0FEh
;08. Clear bit0 to set Super I/O Pin 77 as WDTO
OUT
DX,AL
;09. Write value to Super I/O offset 2Dh
;---------------------------------------------------------------------------------------------------------------
; Switch Logical Device
MOV
DX,02Eh
;10. Assign setup Index Port to Access Data
MOV
AL,07
;11. Prepare to change Logical Device
OUT
DX,AL
;12. Assign Access Register 07h
MOV
AL,08
;13. Switch to Logical Device 08 to set WDTO function
MOV
DX,02Fh
;14. Prepare to set value to Data Port
OUT
DX,AL
;15. Setup value write to Super I/O offset 07H
;---------------------------------------------------------------------------------------------------------------
; Setting WDTO Function
MOV
AL,030h
;16. Prepare to enable WDT function
MOV
DX,02Eh
;17. Asssign Setup Index Port , Access Data
OUT
DX,AL
;18. Assign Setup Access Register 30h
MOV
AL,01
;19. Setup WDT function to enabled
MOV
DX,02Fh
;20. Sent Value From Data Port
OUT
DX,AL
;21. Write Setup Value to Super I/O offset 30h
MOV
AL,0F5h
;22. Prepare to set register F5h of WDT function
MOV
DX,02Eh
;23. Access Data From Index Port.
OUT
DX,AL
;24. Setup Data Access Register At F5H.
MOV
AL,02h
;25. WDTO Output Low pluse to the KBRST# Pin Enable
MOV
DX,02Fh
;26. Prepare to set value to Data Port
OUT
DX,AL
;27. Write Setup Value to register F5h of WDT function
MOV
AL,0F6h
;28. Prepare to set register F6h of WDT function
MOV
DX,02Eh
;29. Access Data From Index Port
OUT
DX,AL
;30. Set value to register F6h of WDT function
MOV
AL,0AAh
;31. Leave Super I/O Config’s Command 0AAh
MOV
DX,02Eh
;32. Access Data From Index Port
OUT
DX,AL
;33. Sent 0AAh
,
Leave From Super I/O Config