English
Language : 

W83627DHG Datasheet, PDF (38/268 Pages) Winbond – WINBOND LPC I/O
W83627DHG
6.1.3 Exit the Extended Function Mode
To exit the Extended Function Mode, writing 0xAA to the EFER is required. Once the chip exits the
Extended Function Mode, it is in the normal running mode and is ready to enter the configuration mode.
6.1.4 Software Programming Example
The following example is written in Intel 8086 assembly language. It assumes that the EFER is located
at 2Eh, so the EFIR is located at 2Eh and the EFDR is located at 2Fh. If the HEFRAS (CR26 bit 6) is
set, 2Eh can be directly replaced by 4Eh and 2Fh replaced by 4Fh.
;-----------------------------------------------------
; Enter the Extended Function Mode
;-----------------------------------------------------
MOV DX, 2EH
MOV AL, 87H
OUT DX, AL
OUT DX, AL
;-----------------------------------------------------------------------------
; Configure Logical Device 1, Configuration Register CRF0
;-----------------------------------------------------------------------------
MOV DX, 2EH
MOV AL, 07H
OUT DX, AL
; point to Logical Device Number Reg.
MOV DX, 2FH
MOV AL, 01H
OUT DX, AL
; select Logical Device 1
;
MOV DX, 2EH
MOV AL, F0H
OUT DX, AL
; select CRF0
MOV DX, 2FH
MOV AL, 3CH
OUT DX, AL
; update CRF0 with value 3CH
;----------------------------------------------------------------------------
; Exit the Extended Function Mode
;----------------------------------------------------------------------------
MOV DX, 2EH
MOV AL, AAH
OUT DX, AL
Publication Release Date: Aug, 22, 2007
-26-
Version 1.4