Programming Example
The following is an example of a configuration program in Intel 8086 assembly language.
;----------------------------.
; ENTER CONFIGURATION MODE
|
;----------------------------'
MOV
MOV
OUT
DX,02EH
AX,055H
DX,AL
;----------------------------.
; CONFIGURE REGISTER CRE0,
; LOGICAL DEVICE 8
|
|
;----------------------------'
MOV
MOV
OUT
MOV
MOV
OUT
;
MOV
MOV
OUT
MOV
MOV
OUT
DX,02EH
AL,07H
DX,AL ;Point to LD# Config Reg
DX,02FH
AL, 08H
DX,AL;Point to Logical Device 8
DX,02EH
AL,E0H
DX,AL ; Point to CRE0
DX,02fH
AL,02H
DX,AL ; Update CRE0
;-----------------------------.
; EXIT CONFIGURATION MODE
;-----------------------------'
|
MOV
MOV
OUT
DX,02EH
AX,0AAH
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 – LPC47M10x Configuration Registers Summary
CONFIGURATION
REGISTER
INDEX
TYPE
HARD
VCC POR
VTR POR
SOFT
RESET
RESET
GLOBAL CONFIGURATION REGISTERS
0x02
0x03
W
R
0x00
-
0x00
-
0x00
-
-
-
Config Control
Reserved – reads
return 0
0x07
R/W
0x00
0x00
0x00
0x00
Logical Device
Number
0x20
0x21
R
R
0x59
0x00
0x59
0x00
0x59
0x00
0x59
0x00
Device ID - hard wired
Device Rev - hard
wired
Power Control
Power Mgmt
OSC
Configuration Port
Address Byte 0
(Low Byte)
0x22
0x23
0x24
0x26
R/W
R/W
R/W
R/W
0x00(Note 1)
0x00
0x44
Sysopt=0:
0x2E
0x00(Note 1)
0x00
0x44
Sysopt=0:
0x2E
0x00(Note 1)
0x00
0x44
-
0x00(Note 1)
-
-
-
Sysopt=1:
0x4E
Sysopt=1:
0x4E
0x27
R/W
Sysopt=0:
0x00
Sysopt=1:
0x00
Sysopt=0:
0x00
Sysopt=1:
0x00
-
-
Configuration Port
Address Byte 1
(High Byte)
0x28
0x2A
0x2B
R
R/W
R/W
-
-
-
-
-
-
-
-
Reserved
TEST 6
TEST 4
0x00
0x00
0x00
0x00
Page 144