
User’s Manual
WIN Enterprises, Inc.
Sept., 2010
65
MOV AL,0AH
OUT DX,AL ; Time-out occurs after 10 seconds
;----------------------------------------------------------------------------------------
; Exit extended function mode
;----------------------------------------------------------------------------------------
DEC DX
MOV AL,AAH
OUT DX,AL
4. Example program 2
Enable watchdog timer and set 2 minutes as timeout interval and set WDTO#
signal as the time-out event to control LAN by-pass or activate hardware reset
through JP4. Please refer to jumper setting section for more detail information.
;---------------------------------------------------------------------------------
;Enter the extended function mode, interruptible double-write
;---------------------------------------------------------------------------------
MOV DX,2EH ; Unlock W83627EHG
MOV AL,87H
OUT DX,AL
OUT DX,AL
;---------------------------------------------------------------------------------
; Configure logical device 8
;---------------------------------------------------------------------------------
MOV AL,07H
OUT DX,AL ; Point to Logical Device Number Reg.
INC DX
MOV AL,08H
OUT DX,AL ; Select logical device 8
;---------------------------------------------------------------------------------
; Set minute as counting unit
;---------------------------------------------------------------------------------
DEC DX
MOV AL,F5H
OUT DX,AL ; Select CRF5