资源描述:
《诺基亚lcd5110最详细的中文说明测试程序字模软》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、/**************************************************************//*文件名:诺基亚5110液晶显示汉字程序*功能说明:用STC单片机在5110液晶上显示"宁波北仑恒晶电子"8个汉字*当前编译器版本:Keil4*单片机型号:STC89C52RC*开发环境:Keil4*晶震频率:12M外部晶体振荡器*出处:宁波北仑恒晶电子科技有限公司*编写者:代品川*日期:2012年5月11日*备注:提取字模用"Pctolcd2002完美版"软件,字模选项中的设置为列行式+逆向+每行显示16*8+C51格式,可随意更改文字内容本
2、公司供应段码,笔段式LCD开模定制提供技术支持,承接单片机控制板的开发*公司网站:www.hengtaimcu.com*联系人:代工*电话:15267845422*声明:本程序为测试程序,因用此程序造成的损失,本公司概不负责(禁止商业用途)*//******************************************************************/#include#include#defineucharunsignedchar#defineuintunsignedintucharflag,flag1;un
3、signedcharbuff[14]="0123456789abcd";unsignedcharbuff1[14]="1000000";sbitRST_5110=P1^4;//lowactivesbitCE_5110=P1^3;//lowactivesbitDC_5110=P1^2;//0=command,1=datasbitSDI_5110=P1^1;//riseedgeenablesbitSCK_5110=P1^0;//clock#defineDATA1//数据命令#defineCMD0//指令命令/************************字模********
4、************************/unsignedcharcodeasc2[][6]={{0x00,0x00,0x00,0x00,0x00,0x00},//sp{0x00,0x00,0x00,0x2f,0x00,0x00},//!{0x00,0x00,0x07,0x00,0x07,0x00},//"{0x00,0x14,0x7f,0x14,0x7f,0x14},//#{0x00,0x24,0x2a,0x7f,0x2a,0x12},//${0x00,0x62,0x64,0x08,0x13,0x23},//%{0x00,0x36,0x49,0x55,0x22,
5、0x50},//&{0x00,0x00,0x05,0x03,0x00,0x00},//'{0x00,0x00,0x1c,0x22,0x41,0x00},//({0x00,0x00,0x41,0x22,0x1c,0x00},//){0x00,0x14,0x08,0x3E,0x08,0x14},//*{0x00,0x08,0x08,0x3E,0x08,0x08},//+{0x00,0x00,0x00,0xA0,0x60,0x00},//,{0x00,0x08,0x08,0x08,0x08,0x08},//-{0x00,0x00,0x60,0x60,0x00,0x00},//.
6、{0x00,0x20,0x10,0x08,0x04,0x02},///{0x00,0x3E,0x51,0x49,0x45,0x3E},//0{0x00,0x00,0x42,0x7F,0x40,0x00},//1//{0x20,0x10,0x1A,0x20,0x40,0x80},{0x00,0x42,0x61,0x51,0x49,0x46},//2{0x00,0x21,0x41,0x45,0x4B,0x31},//3{0x00,0x18,0x14,0x12,0x7F,0x10},//4{0x00,0x27,0x45,0x45,0x45,0x39},//5{0x00,0x3C
7、,0x4A,0x49,0x49,0x30},//6{0x00,0x01,0x71,0x09,0x05,0x03},//7{0x00,0x36,0x49,0x49,0x49,0x36},//8{0x00,0x06,0x49,0x49,0x29,0x1E},//9{0x00,0x00,0x36,0x36,0x00,0x00},//:{0x00,0x00,0x56,0x36,0x00,0x00},//;{0x00,0x08,0x14,0x22,0x41,0x00},//<{0x00,0x14,0x14,0x14,0x14,0x14}