首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > WinCE >

显示IC hx8357b 初始化有关问题

2012-04-16 
显示IC hx8357b 初始化问题下面是厂商提供的初始化过程#if 1 //HIMAX 2Delayms(10)WMLCDCOM(0x11)//Slee

显示IC hx8357b 初始化问题
下面是厂商提供的初始化过程
#if 1 //HIMAX 2

Delayms(10);
WMLCDCOM(0x11);//Sleep Out 
Delayms(120); 

WMLCDCOM(0xEE);//Set EQ 
WMLCDDATA(0x02); 
WMLCDDATA(0x01); 
WMLCDDATA(0x02); 
WMLCDDATA(0x01); 

WMLCDCOM(0xED);//Set DIR TIM 
WMLCDDATA(0x00); 
WMLCDDATA(0x00); 
WMLCDDATA(0x9A); 
WMLCDDATA(0x9A); 
WMLCDDATA(0x9B); 
WMLCDDATA(0x9B); 
WMLCDDATA(0x00); 
WMLCDDATA(0x00); 
WMLCDDATA(0x00); 
WMLCDDATA(0x00); 
WMLCDDATA(0xAE); 
WMLCDDATA(0xAE); 
WMLCDDATA(0x01); 
WMLCDDATA(0xA2); 
WMLCDDATA(0x00); 

WMLCDCOM(0xB4);//Set RM, DM 
WMLCDDATA(0x00);// 

WMLCDCOM(0xC0); //Set Panel Driving
WMLCDDATA(0x10); //REV SM GS
WMLCDDATA(0x3B); // NL[5:0] 
WMLCDDATA(0x00); //SCN[6:0] 
WMLCDDATA(0x02); //NDL 0 PTS[2:0]
WMLCDDATA(0x11); //PTG ISC[3:0] 

WMLCDCOM(0xC1);//
WMLCDDATA(0x10);//line inversion

WMLCDCOM(0xC8);//Set Gamma 
WMLCDDATA(0x00); //KP1,KP0
WMLCDDATA(0x46); //KP3,KP2
WMLCDDATA(0x12); //KP5,KP4
WMLCDDATA(0x20); //RP1,RP0
WMLCDDATA(0x0c); //VRP0 01
WMLCDDATA(0x00); //VRP1
WMLCDDATA(0x56); //KN1,KN0
WMLCDDATA(0x12); //KN3,KN2
WMLCDDATA(0x67); //KN5,KN4
WMLCDDATA(0x02); //RN1,RN0
WMLCDDATA(0x00); //VRN0
WMLCDDATA(0x0c); //VRN1 01

WMLCDCOM(0xD0);//Set Power 
WMLCDDATA(0x44);//DDVDH :5.28
WMLCDDATA(0x42); // BT VGH:15.84 VGL:-7.92
WMLCDDATA(0x06);//VREG1 4.625V

WMLCDCOM(0xD1);//Set VCOM 
WMLCDDATA(0x43); //VCOMH
WMLCDDATA(0x16);

WMLCDCOM(0xD2); 
WMLCDDATA(0x04); 
WMLCDDATA(0x22); //12

WMLCDCOM(0xD3); 
WMLCDDATA(0x04); 
WMLCDDATA(0x12); 

WMLCDCOM(0xD4); 
WMLCDDATA(0x07); 
WMLCDDATA(0x12); 

WMLCDCOM(0xE9); //Set Panel
WMLCDDATA(0x00);

WMLCDCOM(0xC5); //Set Frame rate
WMLCDDATA(0x08); //61.51Hz

WMLCDCOM(0X0036);
WMLCDDATA(0X000a);

WMLCDCOM(0X003A);
WMLCDDATA(0X0005);

WMLCDCOM(0X002A);
WMLCDDATA(0X0000);
WMLCDDATA(0X0000);
WMLCDDATA(0X0001);
WMLCDDATA(0X003F);

WMLCDCOM(0X002B);
WMLCDDATA(0X0000);
WMLCDDATA(0X0000);
WMLCDDATA(0X0001);
WMLCDDATA(0X00E0);
Delayms(120);


WMLCDCOM(0x35);
WMLCDDATA(0x00);//TE ON

WMLCDCOM(0x29); //Display On
Delayms(5);

#endif

有高手做过么,一个command对应多个data,datasheet中对应的command确实有对应个参数。

[解决办法]
不明白LZ想问啥
[解决办法]
楼主能说的清楚点.大家也好给你回复.
具体问题和你的目的.

热点排行