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

F81216 参数 Datasheet PDF下载

F81216图片预览
型号: F81216
PDF下载: 下载PDF文件 查看货源
内容描述: LPC 4 UART数据表 [LPC to 4 UART Datasheet]
分类和应用: PC
文件页数/大小: 37 页 / 755 K
品牌: FINTEK [ FEATURE INTEGRATION TECHNOLOGY INC. ]
 浏览型号F81216的Datasheet PDF文件第17页浏览型号F81216的Datasheet PDF文件第18页浏览型号F81216的Datasheet PDF文件第19页浏览型号F81216的Datasheet PDF文件第20页浏览型号F81216的Datasheet PDF文件第22页浏览型号F81216的Datasheet PDF文件第23页浏览型号F81216的Datasheet PDF文件第24页浏览型号F81216的Datasheet PDF文件第25页  
F81216  
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,IRQ(3, 4, 5 ,9, 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  
outportb(0x4f, 0x02); //Set UART 2 base address high byte to 0x02  
outportb(0x4e, 0x61); //Select LDN 1 register index 0x61  
outportb(0x4f, 0xf8); //Set UART 2 base address low byte to 0xf8  
outportb(0x4e, 0x70); //Select LDN 1 register index 0x70  
-17-  
August, 2007  
V0.32P  
 复制成功!