FDC37M60X SMSC Corporation, FDC37M60X Datasheet - Page 123

no-image

FDC37M60X

Manufacturer Part Number
FDC37M60X
Description
ENHANCED SUPER I/O CONTROLLER WITH INFRARED SUPPORT
Manufacturer
SMSC Corporation
Datasheet
CONFIGURATION SEQUENCE
To program the configuration registers, the
following sequence must be followed:
1. Enter Configuration Mode
2. Configure the Configuration Registers
3. Exit Configuration Mode.
Enter Configuration Mode
To
Configuration State the Config Key is sent to
the chip's CONFIG PORT. The config key
consists of 0x55 written to the CONFIG PORT.
correctly the chip enters into the Configuration
State (The auto Config ports are enabled).
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
accessed in two steps:
a. Write the index of the Logical Device
b. Write
Note: if accessing the Global Configuration
Registers, step (a) is not required.
Once the configuration key is received
Number Configuration Register (i.e., 0x07)
to the INDEX PORT and then write the
number of the desired logical device to the
DATA PORT
configuration register within the logical
device to the INDEX PORT and then write
or read the configuration register through
the DATA PORT.
desired
place
the
configuration
the
address
chip
of
registers
the
into
desired
are
the
123
Exit Configuration Mode
To exit the Configuration State the
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,3F0H
MOV AX,055H
OUT DX,AL
;----------------------------.
; CONFIGURE REGISTER CRE0,
; LOGICAL DEVICE 8
;----------------------------'
MOV DX,3F0H
MOV AL,07H
OUT DX,AL ; Point to nLD Config Reg
MOV DX,3F1H
MOV AL, 08H
OUT DX,AL; Point to Logical Device
8
;
MOV DX,3F0H
MOV AL,E0H
OUT DX,AL ; Point to CRE0
MOV DX,3F1H
MOV AL,02H
OUT DX,AL ; Update CRE0
;----------------------------.
; EXIT CONFIGURATION MODE
;----------------------------'
MOV DX,3F0H
MOV AX,0AAH
OUT DX,AL
system
|
|
|
|

Related parts for FDC37M60X