欢迎访问ic37.com |
会员登录 免费注册
发布采购

FDC37CXFR 参数 Datasheet PDF下载

FDC37CXFR图片预览
型号: FDC37CXFR
PDF下载: 下载PDF文件 查看货源
内容描述: 即插即用兼容超I / O控制器,提供快速IR [Plug and Play Compatible Ultra I/O Controller with Fast IR]
分类和应用: 控制器
文件页数/大小: 258 页 / 898 K
品牌: SMSC [ SMSC CORPORATION ]
 浏览型号FDC37CXFR的Datasheet PDF文件第166页浏览型号FDC37CXFR的Datasheet PDF文件第167页浏览型号FDC37CXFR的Datasheet PDF文件第168页浏览型号FDC37CXFR的Datasheet PDF文件第169页浏览型号FDC37CXFR的Datasheet PDF文件第171页浏览型号FDC37CXFR的Datasheet PDF文件第172页浏览型号FDC37CXFR的Datasheet PDF文件第173页浏览型号FDC37CXFR的Datasheet PDF文件第174页  
Note: Only two states are defined (Run and  
Configuration). In the Run State the chip will  
always be ready to enter the Configuration  
State.  
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.  
Programming Example  
The following is an example of a configuration  
program in Intel 8086 assembly language.  
Enter Configuration Mode  
To place the  
chip  
into  
the Configuration  
;--------------------------------------------------.  
State the Config Key is sent to the chip's  
CONFIG PORT. The config key consists of two  
successive writes of 0x55 data to the CONFIG  
PORT. Once the initiation key is received  
correctly the chip enters into the Configuration  
State (The auto Config ports are enabled).  
; ENTER CONFIGURATION MODE  
|
;--------------------------------------------------'  
MOV  
MOV  
CLI  
OUT  
OUT  
STI  
DX,3F0H  
AX,055H  
; disable interrupts  
DX,AL  
DX,AL  
Configuration Mode  
; enable interrupts  
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.  
;--------------------------------------------------.  
; CONFIGURE REGISTER CRE0,  
; LOGICAL DEVICE 8  
|
|
;--------------------------------------------------'  
MOV  
MOV  
OUT  
MOV  
MOV  
OUT  
;
DX,3F0H  
AL,07H  
DX,AL ; Point to LD# Config Reg  
DX,3F1H  
AL, 08H  
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.  
DX,AL ; Point to Logical Device 8  
MOV  
MOV  
OUT  
MOV  
MOV  
OUT  
DX,3F0H  
AL,E0H  
DX,AL ; Point to CRE0  
DX,3F1H  
AL,02H  
DX,AL ; Update CRE0  
;-------------------------------------------------.  
; EXIT CONFIGURATION MODE  
;-------------------------------------------------'  
|
Note: if accessing the Global Configuration  
Registers, step (a) is not required.  
MOV  
MOV  
OUT  
DX,3F0H  
AX,0AAH  
DX,AL  
Exit Configuration Mode  
To exit the Configuration State the system  
writes 0xAA to the CONFIG PORT. The chip  
returns to the RUN State.  
170  
 复制成功!