English
Language : 

SP37E760 Datasheet, PDF (46/78 Pages) SMSC Corporation – 3.3 V I/O CONTROLLER FOR EMBEDDED APPLICATIONS
7.2.4 PROGRAMMING EXAMPLE
The following is a configuration register programming example written in Intel 8086 assembly language.
;-----------------------------.
; ENTER CONFIGURATION STATE |
;-----------------------------‘
MOV DX,3F0H
MOV AX,055H
OUT DX,AL
;-----------------------------.
; CONFIGURE REGISTERS CR0-CRx |
;-----------------------------‘
MOV DX,3F0H
MOV AL,00H
OUT DX,AL
;Point to CR0
MOV DX,3F1H
MOV AL,3FH
OUT DX,AL
;Update CR0
;
MOV DX,3F0H
MOV AL,01H
OUT DX,AL
;Point to CR1
MOV DX,3F1H
MOV AL,9FH
OUT DX,AL
;Update CR1
;
; Repeat for all CRx registers
;
;-----------------------------.
; EXIT CONFIGURATION STATE |
;-----------------------------‘
MOV DX,3F0H
MOV AX,AAH
OUT 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.
DEFAULT
28H
9CH
88H
70H
00H
00H
INDEX DB7
CR00 Valid
CR01 Lock CRx
CR02 UART2
PWR
CR03 ADRX/
IRQ_B
CR04 Reserved
CR05
Table 24 - Configuration Registers
DB6
DB5
DB4
DB3
DB2
Reserved
Reserved Reserved
Reserved
PP MODE PP PWR
Reserved
UART1
PWR
Reserved
ADRX
IRQ_B
EPP Type MIDI 2 MIDI 1
Reserved
Reserved
DB1
DB0
Reserved
Reserved
Reserved
Reserved PWRGD
PP Ext. Modes
SMSC DS – SP37E760
Rev. 04/13/2001