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

F81218 参数 Datasheet PDF下载

F81218图片预览
型号: F81218
PDF下载: 下载PDF文件 查看货源
内容描述: ISA / LPC 6 UART数据表 [ISA/LPC to 6 UART Datasheet]
分类和应用: PC
文件页数/大小: 64 页 / 1414 K
品牌: FINTEK [ FEATURE INTEGRATION TECHNOLOGY INC. ]
 浏览型号F81218的Datasheet PDF文件第21页浏览型号F81218的Datasheet PDF文件第22页浏览型号F81218的Datasheet PDF文件第23页浏览型号F81218的Datasheet PDF文件第24页浏览型号F81218的Datasheet PDF文件第26页浏览型号F81218的Datasheet PDF文件第27页浏览型号F81218的Datasheet PDF文件第28页浏览型号F81218的Datasheet PDF文件第29页  
F81218  
6. Register Description  
Registers are programmed by port 0x4E and 0x4F. 0x4E is the index port and 0x4F is the data port .  
To enable configuration registers programming, entry key must output twice to index port  
continuously. The entry key is decided by power on setting pins RTS2#/PS_CONF_KEY1 and  
RTS3#/PS_CONF_KEY0 as following:  
RTS2#/PS_CONF_KEY1  
RTS3#/PS_CONF_KEY0  
Entry key  
0x77 ( default )  
0xA0  
0
0
1
1
0
1
0
1
0x87  
0x67  
To exit configuration registers programming, output 0xAA to index port.  
Sample code for configuration:  
1. Clock in used 48MHz, UART 1~6 address (0x3f8, 0x2f8, 0x3e8, 0x2e8, 0x3e0, 0x2e0), IRQ(3,  
4, 5 ,9 , 10 , 11, Entry key is 0x77:  
outportb(0x4e, 0x77);  
outportb(0x4e, 0x77); //Entry configuration mode  
outportb(0x4e, 0x25); //Select register index 0x25  
outportb(0x4f, 0x01); //Set bit 0 to 1 select clock input to 48MHz  
outportb(0x4e, 0x07); //Select register index 0x07  
outportb(0x4f, 0x00); //Select LDN 0  
outportb(0x4e, 0x60); //Select LDN 0 register index 0x60  
outportb(0x4f, 0x03); //Set UART 1 base address high byte to 0x03  
outportb(0x4e, 0x61); //Select LDN 0 register index 0x61  
outportb(0x4f, 0xf8); //Set UART 1 base address low byte to 0xf8  
outportb(0x4e, 0x70); //Select LDN 0 register index 0x70  
outportb(0x4f, 0x03); //Set UART 1 interrupt channel to IRQ 3  
outportb(0x4e, 0x30); //Select LDN 0 register index 0x30  
outportb(0x4f, 0x01); //Enable UART 1  
outportb(0x4e, 0x07); //Select register index 0x07  
outportb(0x4f, 0x01); //Select LDN 1  
outportb(0x4e, 0x60); //Select LDN 1 register index 0x60  
-20-  
August, 2007  
V0.33P  
 复制成功!