资源描述:
《CM12864-12规格书 字库7920控制芯片.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、CM12864-12规格书12864中文字库说明书LCD12864点阵屏带ST7920控制器兼容LM3033DDWLM3033DFWLM3033CDWLM3033CFWOCMJ×8CCM12864-12BLWAA-5V(蓝底白字)CM12864-12SLWDA-5V(绿底黑字)CM12864-12FLWAA-5V(白底黑字)一.基本特征:(1)电压:3.0-3.3V/4.8-5V(2)STN反射/正视透射模式/半透(3)显式模式:蓝底白字(4)显式角度:6/12/9点钟直视(5)驱动方式:1/32Dvty;1/6Bias(6)工作
2、温度(Ta):-20℃~+70℃,存储温度:-20℃~+70℃(7)背光特征:LED背光(白色/黄绿色)(8)模块封装方式:COB(9)接口:串口/并口通信二.产品参数:三.限定参数:四.平面尺寸图:五.原理图:六.引脚描述:七.直流特性:八:接口时序:(并口)九.指令表:资料有什么疑问,技术支持!十.应用:十一.实物图片:十二.产品规格多样化:十三.C程序参考:(并口做参考用、对你有用记得给个好评)#include"Reg52.h"#definelcd_dataP1sbitlcdrs=P3^1;sbitlcdrw=P3^4;sb
3、iten=P3^5;sbitP17=P1^7;intg=0;codezf_code[]={0xb2,0xca,0xbe,0xa7,0xbf,0xc6,0xbc,0xbc,0xbb,0xb6,0xd3,0xad,0xc4,0xfa,0xec,0xf4,0xb2,0xca,0xbe,0xa7,0xbf,0xc6,0xbc,0xbc,0xbb,0xb6,0xd3,0xad,0xc4,0xfa,0xec,0xf4,0xb2,0xca,0xbe,0xa7,0xbf,0xc6,0xbc,0xbc,0xbb,0xb6,0xd3,0xad,0xc
4、4,0xfa,0xec,0xf4,0xb2,0xca,0xbe,0xa7,0xbf,0xc6,0xbc,0xbc,0xbb,0xb6,0xd3,0xad,0xc4,0xfa,0xec,0xf4,};voidwait(){unsignedchari,j,k,m;for(i=0;i<0x03;i++){for(j=0;j<0x0ff;j++){for(m=0;m<0x0ff;m++){k++;}}}}voiddelay(){unsignedinti,j;for(i=0;i<0x0ff;i++)j++;}W_DATA(unsignedc
5、hardb_set){unsignedcharin;while(1){lcdrs=0;lcdrw=1;en=1;in=P1;en=0;if((in&0x080)==0)break;}lcdrs=1;lcdrw=0;en=1;lcd_data=db_set;en=0;}w_com(unsignedchardb_set){unsignedcharin;while(1){lcdrs=0;lcdrw=1;en=1;in=P1;en=0;if((in&0x080)==0)break;}lcdrs=0;lcdrw=0;en=1;lcd_dat
6、a=db_set;en=0;}write_cgrom(unsignedchardata1,data2){unsignedinti;for(i=0;i<8;i++){W_DATA(data1);W_DATA(data1);delay();W_DATA(data2);W_DATA(data2);}}write_ddram(unsignedchardata3){unsignedinti;for(i=0;i<8;i++){W_DATA(0X00);W_DATA(data3);delay();}}voidinit(void){unsigne
7、dinti;for(i=0;i<1;i++){w_com(0x30);delay();}delay();w_com(0X0c);delay();w_com(0x01);delay();w_com(0x02);delay();w_com(0x80);}voidpicture4(){w_com(0x40);write_cgrom(0x0ff,0x0ff);w_com(0x80);write_ddram(0x00);w_com(0x90);write_ddram(0x00);w_com(0x88);write_ddram(0x00);w
8、_com(0x98);write_ddram(0x00);wait();wait();}voidpicture3(){unsignedinti,j=0x30;w_com(0x80);for(i=0;i<0x40;i++){W_DATA(j);del