资源描述:
《lcd12232驱动程序》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、/******************************************************************************Copyright2007Allrightsreserved.文件名:12232.c模块名称:SED1520驱动12232液晶驱动功能概要:取代版本:0.0.1修改人:pulan完成日期:2007.07.08升级说明:createCPU:stc89c58主频:11.0592M液晶型号:生产厂家:驱动芯片:硬件连接:12232液晶-----------------------------
2、----------------------------------
3、DB0-----P0.0
4、DB4-----P0.4
5、WR-------P2.2
6、A0--------P2.1
7、
8、DB1-----P0.1
9、DB5-----P0.5
10、RD-------P2.4
11、Vo悬空
12、
13、DB2-----P0.2
14、DB6-----P0.6
15、CS-------P2.5
16、
17、DB3-----P0.3
18、DB7-----P0.7
19、RST-------P2.3
20、------------------------------------------------------
21、---------******************************************************************************/#include#defineucharunsignedchar#defineuintunsignedint#defineDATAP0//数据sbitE1=P2^5;sbitE2=P2^4;sbitRW=P2^2;sbitA0=P2^1;unsignedcharcodeBmpt1[]={/*--调入了一幅图像:E:新建文件夹Wait_1.bmp-
22、-*//*--宽度x高度=19x30--*//*--宽度不是8的倍数,现调整为:宽度x高度=19x32--*/0x00,0x00,0x00,0x60,0xE0,0xE0,0xE0,0xE0,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0C,0x13,0x27,0xDF,0x3F,0x3F,0xDF,0x27,0x13,0x0C,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xF0,0xC
23、C,0xC2,0xC1,0x40,0x40,0x40,0x40,0x41,0x42,0x4C,0x70,0x80,0x00,0x00,0xC0,0xC0,0xC0,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC0,0xC0};unsignedcharcodeBmpt2[]={/*--调入了一幅图像:E:新建文件夹Wait_2.bmp--*//*--宽度x高度=19x30--*//*--宽度不是8的倍数,现调整为:宽度x高度=19x32--
24、*/0x00,0x00,0x00,0x60,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0xE0,0xE0,0xE0,0xE0,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0C,0x12,0x2E,0xDE,0xFE,0xBE,0xDE,0x26,0x12,0x0C,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x70,0x4C,0x42,0x61,0x60,0x61,0x75,0x70,0xC1,0xC2,0xCC,0xF0,0
25、x80,0x00,0x00,0xC0,0xC0,0xC0,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC1,0xC0,0xC0};unsignedcharcodeBmpt3[]={/*--调入了一幅图像:E:新建文件夹Wait_3.bmp--*//*--宽度x高度=19x30--*//*--宽度不是8的倍数,现调整为:宽度x高度=19x32--*/0x00,0x00,0x00,0x60,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0
26、xA0,0xA0,0xE0,0xE0,0xE0,0xE0,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0C,0x10,0x20,0xD0,