
SMSC LPC47B27x
- 152 -
Rev. 08-10-04
DATASHEET
Configuration Mode
The system sets the logical device information and activates desired logical devices through the INDEX
and DATA ports. In configuration mode, the INDEX PORT is located at the CONFIG PORT address and
the DATA PORT is at INDEX PORT address + 1.
The desired configuration registers are accessed in two steps:
a. Write the index of the Logical Device Number Configuration Register (i.e., 0x07) to the INDEX PORT
and then write the number of the desired logical device to the DATA PORT
b. Write the address of the desired configuration register within the logical device to the INDEX PORT
and then write or read the configuration register through the DATA PORT.
Note: If accessing the Global Configuration Registers, step (a) is not required.
Exit Configuration Mode
To exit the Configuration State the system writes 0xAA to the CONFIG PORT. The chip returns to the
RUN State.
Note: Only two states are defined (Run and Configuration). In the Run State the chip will always be ready
to enter the Configuration State.
Programming Example
The following is an example of a configuration program in Intel 8086 assembly language.
;----------------------------.
; ENTER CONFIGURATION MODE |
;----------------------------'
MOV
DX,02EH
MOV
AX,055H
OUT
DX,AL
;----------------------------.
; CONFIGURE REGISTER CRE0, |
; LOGICAL DEVICE 8 |
;----------------------------'
MOV
DX,02EH
MOV
AL,07H
OUT
DX,AL ;Point to LD# Config Reg
MOV
DX,02FH
MOV
AL, 08H
OUT
DX,AL;Point to Logical Device 8
;
MOV
DX,02EH
MOV
AL,E0H
OUT
DX,AL ; Point to CRE0
MOV
DX,02fH
MOV
AL,02H
OUT
DX,AL ; Update CRE0
;-----------------------------.
; EXIT CONFIGURATION MODE |
;-----------------------------'
MOV
DX,02EH
MOV
AX,0AAH
OUT
DX,AL
Notes: HARD RESET: nPCI_RESET pin asserted
SOFT RESET: Bit 0 of Configuration Control register set to one
All host accesses are blocked for 500μs after Vcc POR (see Power-up Timing Diagram)
Table 62 – LPC47B27x Configuration Registers Summary
INDEX
TYPE
HARD
RESET
GLOBAL CONFIGURATION REGISTERS
0x02
W
0x00
0x00
0x03
R
-
-
VCC POR
TR POR
SOFT
RESET
CONFIGURATION
REGISTER
-
-
-
Config Control
Reserved – reads
return 0
Logical Device
Number
0x07
R/W
0x00
0x00
0x00
0x00