w83627sf Winbond Electronics Corp America, w83627sf Datasheet - Page 98

no-image

w83627sf

Manufacturer Part Number
w83627sf
Description
Winbond I/o
Manufacturer
Winbond Electronics Corp America
Datasheet
9.2.2 Configurate the configuration registers
The chip selects the logical device and activates the desired logical devices through Extended Function
Index Register(EFIR) and Extended Function Data Register(EFDR). EFIR is located at the same address
as EFER, and EFDR is located at address (EFIR+1).
First, write the Logical Device Number (i.e.,0x07) to the EFIR and then write the number of the desired
logical device to the EFDR. If accessing the Chip(Global) Control Registers, this step is not required.
Secondly, write the address of the desired configuration register within the logical device to the EFIR and
then write (or read) the desired configuration register through EFDR.
9.2.3 Exit the extended function mode
To exit the extended function mode, one w rite of 0xAA to 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.
9.2.4 Software programming example
The following example is written in Intel 8086 assembly language. It assumes that the EFER is located
at 2Eh, so EFIR is located at 2Eh and EFDR is located at 2Fh. If HEFRAS (CR26 bit 6) is set, 4Eh can
be directly replaced by 4Eh and 2Fh replaced by 4Fh.
;-----------------------------------------------------------------------------------
; Enter the extended function mode ,interruptible double-write
;-----------------------------------------------------------------------------------
MOV
MOV
OUT
OUT
;-----------------------------------------------------------------------------
; Configurate logical device 1, configuration register CRF0 |
;-----------------------------------------------------------------------------
MOV
MOV
OUT
MOV
DX,2EH
AL,87H
DX,AL
DX,AL
DX,2EH
AL,07H
DX,AL
DX,2FH
; point to Logical Device Number Reg.
- 91 -
|
Publication Release Date: Nov. 2000
PRELIMINARY
W83627SF
Revision 0.60

Related parts for w83627sf