#include "../../INCLUDE/API.h"
#include "lcm.h"
#include "mp321app.h"
//#include "../LCD/Include/utillcd.h"
#if (defined(_PRIMARY_LCM_UNITONE22) || defined(_SECONDARY_LCM_UNITONE22))
//=================================================
//
//
//=================================================
void LCM_SerialCommand(U16 wData1,U16 wData2)
{
U32 count=0x10000;
LCM_WRITE_ADR=0x0111;
LCM_WRITE_DAT=wData1;
LCM_WRITE_ADR=0x110;
while((LCM_WRITE_DAT&0x8000)&&count)
{
count--;
}
LCM_WRITE_DAT=wData2;
}
void UNITONE22_LCM_Init(U8 bTargetLCM)
{
MP321_Release(bTargetLCM);
UNITONE22_LCM_PowerOn();
UNITONE22_LCM_DisplayOn();
}
void UNITONE22_LCM_PowerOn(void)
{
LCM_WriteCmd(0x00,0x01);
#if 0
mov r5,#001h
mov r6,#001h
mov r0,#004h
mov r1,#074h
lcall serial_cmd
#endif
LCM_SerialCommand(0x0474,0x0101);
#if 0
mov r5,#001h
mov r6,#002h
mov r0,#002h
mov r1,#0deh
lcall serial_cmd
#endif
LCM_SerialCommand(0x02DE,0x0102);
#if 0
mov r5,#001h
mov r6,#001h
mov r0,#00ch
mov r1,#074h
lcall serial_cmd
#endif
LCM_SerialCommand(0x0C74,0x0101);
#if 0
;-----------------------
mov r3,#001h
mov r4,#000h
lcall control_cmd
mov r3,#000h
mov r4,#050h
lcall control_data
;-----------------------
#endif
LCM_WriteCmd(0x0100,0x0050);
#if 0
mov r5,#001h
mov r6,#000h
mov r0,#008h
mov r1,#00ch
lcall serial_cmd
#endif
LCM_SerialCommand(0x080C,0x0100);
#if 0
mov r5,#001h
mov r6,#002h
mov r0,#001h
mov r1,#02eh
lcall serial_cmd
#endif
LCM_SerialCommand(0x012E,0x0102);
#if 0
mov r5,#001h
mov r6,#001h
mov r0,#004h
mov r1,#0b2h
lcall serial_cmd
lcall wait
#endif
LCM_SerialCommand(0x04B2,0x0101);
__TIMER_DELAY(50);
#if 0
mov r5,#001h
mov r6,#001h
mov r0,#004h
mov r1,#0f0h
lcall serial_cmd
lcall wait
#endif
LCM_SerialCommand(0x04F0,0x0101);
__TIMER_DELAY(50);
#if 0
mov r5,#001h
mov r6,#003h
mov r0,#000h
mov r1,#008h
lcall serial_cmd
#endif
LCM_SerialCommand(0x0008,0x0103);
#if 0
mov r5,#001h
mov r6,#006h
mov r0,#009h
mov r1,#0c0h
lcall serial_cmd
lcall wait
lcall wait
#endif
LCM_SerialCommand(0x09c0,0x0106);
__TIMER_DELAY(50);
}
void UNITONE22_LCM_DisplayOn(void)
{
#if 0
mov r5,#001h
mov r6,#000h
mov r0,#00ch
mov r1,#00ah
lcall serial_cmd
#endif
LCM_SerialCommand(0x0c0a,0x0100);
#if 0
mov r3,#001h
mov r4,#000h
lcall control_cmd
mov r3,#001h
mov r4,#010h
lcall control_data
#endif
LCM_WriteCmd(0x0100,0x0110);
#if 0
mov r3,#000h
mov r4,#007h
lcall control_cmd
mov r3,#000h
mov r4,#001h
lcall control_data
lcall wait
#endif
LCM_WriteCmd(0x0007,0x0001);
#if 0
mov r3,#000h
mov r4,#007h
lcall control_cmd
mov r3,#000h
mov r4,#012h
lcall control_data
#endif
LCM_WriteCmd(0x0007,0x0012);
#if 0
mov r5,#001h
mov r6,#000h
mov r0,#00ch
mov r1,#008h
lcall serial_cmd
#endif
LCM_SerialCommand(0x0C08,0x0100);
#if 0
mov r3,#000h
mov r4,#007h
lcall control_cmd
mov r3,#000h
mov r4,#003h
lcall control_data
#endif
LCM_WriteCmd(0x0007,0x0003);
#if 0
mov r3,#000h
mov r4,#007h
lcall control_cmd
mov r3,#000h
mov r4,#013h
lcall control_data
#endif
LCM_WriteCmd(0x0007,0x0013);
#if 0
mov r3,#000h
mov r4,#007h
lcall control_cmd
mov r3,#001h
mov r4,#013h
lcall control_data
#endif
LCM_WriteCmd(0x0007,0x0113);
//=================other setting==============
#if 0
mov r3,#000h
mov r4,#001h
lcall control_cmd
mov r3,#001h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x0001,0x0100);
#if 0
mov r3,#000h
mov r4,#002h
lcall control_cmd
mov r3,#007h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x0002,0x0700);
#if 0
mov r3,#000h
mov r4,#003h
lcall control_cmd
mov r3,#011h
mov r4,#030h
lcall control_data
#endif
LCM_WriteCmd(0x0003,0x1130);
#if 0
mov r3,#000h
mov r4,#004h
lcall control_cmd
mov r3,#000h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x0004,0x0000);
#if 0
mov r3,#000h
mov r4,#005h
lcall control_cmd
mov r3,#000h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x0005,0x0000);
#if 0
mov r3,#000h
mov r4,#008h
lcall control_cmd
mov r3,#003h
mov r4,#003h
lcall control_data
#endif
LCM_WriteCmd(0x0008,0x0303);
#if 0
mov r3,#000h
mov r4,#009h
lcall control_cmd
mov r3,#014h
mov r4,#02ch
lcall control_data
#endif
LCM_WriteCmd(0x0009,0x142C);
#if 0
mov r3,#000h
mov r4,#00bh
lcall control_cmd
mov r3,#000h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x000b,0x0000);
#if 0
mov r3,#000h
mov r4,#00ch
lcall control_cmd
mov r3,#000h
mov r4,#001h
lcall control_data
#endif
LCM_WriteCmd(0x000c,0x0001);
#if 0
mov r3,#000h
mov r4,#00dh
lcall control_cmd
mov r3,#000h
mov r4,#010h
lcall control_data
#endif
LCM_WriteCmd(0x000d,0x0010);
#if 0
mov r3,#000h
mov r4,#00eh
lcall control_cmd
mov r3,#002h
mov r4,#010h
lcall control_data
#endif
LCM_WriteCmd(0x000E,0x0210);
#if 0
mov r3,#000h
mov r4,#00fh
lcall control_cmd
mov r3,#000h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x000f,0x0000);
#if 0
mov r3,#000h
mov r4,#010h
lcall control_cmd
mov r3,#000h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x0010,0x0000);
#if 0
mov r3,#000h
mov r4,#011h
lcall control_cmd
mov r3,#000h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x0011,0x0000);
#if 0
mov r3,#000h
mov r4,#012h
lcall control_cmd
mov r3,#000h
mov r4,#002h
lcall control_data
#endif
LCM_WriteCmd(0x0012,0x002);
#if 0
mov r3,#000h
mov r4,#013h
lcall control_cmd
mov r3,#000h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x0013,0x0000);
#if 0
mov r3,#000h
mov r4,#015h
lcall control_cmd
mov r3,#000h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x0015,0x0000);
#if 0
mov r3,#000h
mov r4,#016h
lcall control_cmd
mov r3,#000h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x0016,0x0000);
#if 0
mov r3,#000h
mov r4,#017h
lcall control_cmd
mov r3,#000h
mov r4,#000h
lcall control_data
#endif
LCM_WriteCmd(0x0017,0x0000);
#if 0
mov r3,#000h
mov r4,#018h
lcall control_cmd
mov r3,#000h
mov r4,#005h
lcall control_data
#endif
LCM
没有合适的资源?快使用搜索试试~ 我知道了~
Lcd.rar_LCD driver PDA_UPD161704_pda lcd
共66个文件
svn-base:28个
h:14个
c:13个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 2 下载量 65 浏览量
2022-09-22
17:25:45
上传
评论
收藏 44KB RAR 举报
温馨提示
多个厂家的LCD 驱动程序,适合移植到手机、pmp,pda 等平台中。
资源推荐
资源详情
资源评论
收起资源包目录
Lcd.rar (66个子文件)
Lcd
INCLUDE
LCM_WIS_T200P00H00.h 3KB
TV_ENCODER_ROHM.h 3KB
LCM_Unitone22.h 3KB
LCM_Toshiba22.h 3KB
LCM_AU20.h 3KB
LCM_VP_S6B33B2.H 3KB
LCM_None.h 3KB
LCM.h 2KB
LCM_S1D19105D00B.H 3KB
LCM_EPSON_L5F30363.H 3KB
utillcd.h 1KB
lcm_n200.h 150B
.svn
all-wcprops 2KB
prop-base
props
tmp
prop-base
props
text-base
text-base
LCM_WIS_T200P00H00.h.svn-base 3KB
LCM_Toshiba22.h.svn-base 3KB
LCM.h.svn-base 2KB
LCM_S1D19105D00B.H.svn-base 3KB
LCM_EPSON_L5F30363.H.svn-base 3KB
LCM_Unitone22.h.svn-base 3KB
LCM_AU20.h.svn-base 3KB
LCM_None.h.svn-base 3KB
LCM_Unitone18.h.svn-base 3KB
utillcd.h.svn-base 1KB
LCM_VP_S6B33B2.H.svn-base 3KB
TV_ENCODER_ROHM.h.svn-base 3KB
lcm_n200.h.svn-base 150B
LCM_uPD161704.H.svn-base 3KB
entries 2KB
format 2B
LCM_Unitone18.h 3KB
LCM_uPD161704.H 3KB
SOURCE
LCM_WIS_T200P00H00.c 4KB
LCM_AU20.c 4KB
LCM_VP_S6B33B2.C 4KB
LCM_S1D19105D00B.C 5KB
ROHM_BU9972GU.c 824B
LCM_Unitone18.c 2KB
LCM.c 947B
UtilLcd.c 5KB
LCM_uPD161704.C 4KB
LCM_Toshiba22.c 2KB
LCM_Unitone22.c 11KB
.svn
all-wcprops 2KB
prop-base
props
tmp
prop-base
props
text-base
text-base
LCM_WIS_T200P00H00.c.svn-base 4KB
LCM_EPSON_L5F30363.C.svn-base 4KB
LCM_None.c.svn-base 806B
LCM_uPD161704.C.svn-base 4KB
ROHM_BU9972GU.c.svn-base 824B
LCM.c.svn-base 947B
LCM_Unitone22.c.svn-base 11KB
UtilLcd.c.svn-base 5KB
LCM_VP_S6B33B2.C.svn-base 4KB
LCM_S1D19105D00B.C.svn-base 5KB
LCM_AU20.c.svn-base 4KB
LCM_Toshiba22.c.svn-base 2KB
LCM_Unitone18.c.svn-base 2KB
entries 2KB
format 2B
LCM_EPSON_L5F30363.C 4KB
LCM_None.c 806B
project.p 204B
.svn
all-wcprops 218B
prop-base
props
tmp
prop-base
props
text-base
text-base
project.p.svn-base 204B
entries 414B
format 2B
www.pudn.com.txt 218B
共 66 条
- 1
资源评论
- yjiu20082023-11-27资源很实用,对我启发很大,有很好的参考价值,内容详细。
- hongrenhui2023-04-12发现一个宝藏资源,资源有很高的参考价值,赶紧学起来~
周楷雯
- 粉丝: 80
- 资源: 1万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功