7.2.4 PROGRAMMING EXAMPLE
The following is a configuration register programming example written in Intel 8086 assembly language.
;-----------------------------.
; ENTER CONFIGURATION STATE |
;-----------------------------‘
MOV
MOV
OUT
DX,3F0H
AX,055H
DX,AL
;-----------------------------.
; CONFIGURE REGISTERS CR0-CRx |
;-----------------------------‘
MOV
MOV
OUT
MOV
MOV
OUT
;
DX,3F0H
AL,00H
DX,AL
;Point to CR0
;Update CR0
DX,3F1H
AL,3FH
DX,AL
MOV
MOV
OUT
MOV
MOV
OUT
;
DX,3F0H
AL,01H
DX,AL
;Point to CR1
;Update CR1
DX,3F1H
AL,9FH
DX,AL
; Repeat for all CRx registers
;
;-----------------------------.
; EXIT CONFIGURATION STATE
|
;-----------------------------‘
MOV
MOV
OUT
DX,3F0H
AX,AAH
DX,AL
7.2.5 CONFIGURATION SELECT REGISTER (CSR)
The Configuration Select Register can only be accessed when the SP37E760 is in the configuration state. The CSR
is located at the INDEX PORT address and must be initialized with configuration register index before the register can
be accessed using the DATA PORT.
7.3 Configuration Registers Description
The configuration registers are set to their default values at power up (Table 24) and are not affected by RESET,
except where noted in the register descriptions that follow.
Table 24 - Configuration Registers
DEFAULT INDEX
DB7
Valid
DB6
DB5
DB4
DB3
DB2
Reserved
PP PWR
DB1
Reserved
Reserved
Reserved
DB0
28H
9CH
88H
CR00
CR01 Lock CRx
CR02
Reserved
Reserved
Reserved
Reserved
PP MODE
UART1
PWR
UART2
PWR
70H
CR03 ADRX/
IRQ_B
CR04 Reserved EPP Type MIDI 2
CR05
Reserved
ADRX
IRQ_B
Reserved
Reserved
PWRGD
00H
00H
MIDI 1
PP Ext. Modes
Reserved
SMSC DS – SP37E760
Rev. 04/13/2001