手机显示屏驱动培训

上传人:mg****85 文档编号:50070824 上传时间:2018-08-06 格式:PPT 页数:17 大小:339KB
返回 下载 相关 举报
手机显示屏驱动培训_第1页
第1页 / 共17页
手机显示屏驱动培训_第2页
第2页 / 共17页
手机显示屏驱动培训_第3页
第3页 / 共17页
手机显示屏驱动培训_第4页
第4页 / 共17页
手机显示屏驱动培训_第5页
第5页 / 共17页
点击查看更多>>
资源描述

《手机显示屏驱动培训》由会员分享,可在线阅读,更多相关《手机显示屏驱动培训(17页珍藏版)》请在金锄头文库上搜索。

1、Lcd Moudle Driver Training Lcd 介绍 硬件接口 软件处理流程LCD 介绍 液晶的特性 手机中常用的LCD 的产品液晶的特性 旋光性 双折射性 LCD,几乎都是利用了液晶的这两种性质制 造而成。 手机中常用的LCD 的产品 STN 特点是宽视角,大容量显示,缺点是响 应速度慢(CSTN Color STN) TFT 高对比度,高响应,宽视角,大容量显 示,是主流产品 65K color 1pixel 16bit 260k color 1pixel 18bit硬件接口 串口(serial peripheral interface) 并口(high-speed para

2、llel bus interfaces)串口(serial peripheral interface ) Low cost,lcd controller 性能低 超低端手机选用,一般用的不太多 Pin description RST reset SDI Serial input data. SDO Serial output data. SCLK Serial clock input并口(parallel bus interfaces) 成本较串口高,lcd controller 性能高 一般同时支持(SPI)pin IM3:0 Selects the System interface mod

3、e.SPI Mode 68 Moderead and write 共用,一根线select 80 Moderead line write line 各一 Pin descriptionRSIBresetDB15:0 data lineCSB chipset selectRS Selects the register . E_WRB write strobe signalRW_RDB read strobe signal软件处理流程 Address Reset Lcd controller initialize Refresh display screen Sleep in Sleep outA

4、ddress Baseband的片选,获的地址#define LCD_DRV_CS_BASE 0x01800000 /*CS4as the lcd cs*/ #define LCD_DRV_CS_DATA_OFFSET 1/*ADD0 as the rs */ 根据RS Pin获得相应的寄存器和数据的地址Low : Register Index High : Control data RS 接A0#define LCD_DRV_ADDR_REG(*(volatile UINT16*)(LCD_DRV_CS_BASE)#define LCD_DRV_ADDR_DATA(*(volatile UI

5、NT16*)(LCD_DRV_CS_BASE + LCD_DRV_CS_DATA_OFFSET) #define LCD_DRV_WRITE_COMM(Addr, Data)LCD_DRV_ADDR_REG= (UINT16)Addr; LCD_DRV_ADDR_DATA= (UINT16)DataReset Initializes the LSI when low. Must be reset after power-on. 通常连接到BB端的一个gpio上Lcd controller initialize 通过上一步得到的地址,对lcd相应的寄存器,发 送相关的命令参数,配置lcd 初始化

6、的序列一般都由LCD厂商提供。 寄存器设置的方法 / Set internalOSCfreq,use default LCD_DRV_WRITE_COMM(0x0061, 0x0018); /* Power control 1 set SLP bit = 1*/ LCD_DRV_WRITE_COMM(0x0010, 0x1a0e);POWER CONTROL 1 (R10h)R/W RSIB15IB14IB13IB12IB11IB10IB9IB8IB7IB6IB5 IB4 IB3IB2IB1IB0W1DSTBXSAP2SAP1SAP0BT2BT1BT0DC2DC1DC0AP2AP1AP0SLP

7、STBRefresh display screen 设置刷屏的范围,不同的屏设置不同 / Horizontalwindow address LCD_DRV_WRITE_REG(0x0043); LCD_DRV_WRITE_REG(usStartx); LCD_DRV_WRITE_REG(usEndx); / Verticalwindow address LCD_DRV_WRITE_REG(0x0042); LCD_DRV_WRITE_REG(usStarty); LCD_DRV_WRITE_REG(usEndy); 写数据用个for循环,调用下面的命令写入数据LCD_DRV_WRITE_DATA(UINT16)*disp_buf_addr);Sleep in 当手机在待机状态时,为了节约功耗,要把 lcd进入睡眠模式 设置相关的寄存器 /* Power control 1 set SLP bit = 1*/ LCD_DRV_WRITE_COMM(0x0010,0x1a0e);Sleep out 当手机来电或者别的动作,退出待机状态要 求显示屏幕时,要把lcd module唤醒,退出 睡眠模式 设置相关的寄存器 /* Power control 1 set SLP bit = 0*/ LCD_DRV_WRITE_COMM(0x0010,0x1a0c);Thank you!

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号