资源描述:
《基于pic16f73单片机的5110液晶显示程序》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、#include#defineuintunsignedint__CONFIG(0x3FB2);//配置位#definesceRC6//{PORTC&=0xbf;}RC6片选#defineresRC7//{PORTC&=0x7f;}RC7复位,0复位#definedcRC5//{PORTC&=0xdf;}RC51写数据,0写指令#definesdinRC4//{PORTC&=0xef;}RC4数据#definesclkRC3//{PORTC&=0xf7;}RC3时钟constunsignedcharshuzi[]={/*--文字:0--*//*--宋
2、体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,/*--文字:1--*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,/*--文字:2--*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0x70
3、,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,/*--文字:3--*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00,/*--文字:4--*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,
4、0x07,0x04,0x24,0x24,0x3F,0x24,0x00,/*--文字:5--*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00,/*--文字:6--*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00,/
5、*--文字:7--*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,/*--文字:8--*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00,/*--文字:9--*//*--宋体12;此字体下对应的点阵为:宽x高=8
6、x16--*/0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00,/*--文字:a--10*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0x00,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x19,0x24,0x22,0x22,0x22,0x3F,0x20,/*--文字:b--11*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x08,0xF8,0x00,0x80,0x80,
7、0x00,0x00,0x00,0x00,0x3F,0x11,0x20,0x20,0x11,0x0E,0x00,/*--文字:c--12*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00,0x00,0x0E,0x11,0x20,0x20,0x20,0x11,0x00,/*--文字:d--13*//*--宋体12;此字体下对应的点阵为:宽x高=8x16--*/0x00,0x00,0x00,0x80,0x80,0x88,0xF8,0x00,0x00,0x0E,0x11,0x
8、20,0x20,0x10