T6963c驱动 c程序 pic16f877aWord格式文档下载.docx
《T6963c驱动 c程序 pic16f877aWord格式文档下载.docx》由会员分享,可在线阅读,更多相关《T6963c驱动 c程序 pic16f877aWord格式文档下载.docx(23页珍藏版)》请在冰豆网上搜索。
//I/O口定义
bitpLcdCd@(unsigned)&
PORTD*8+0;
//低电平有效
bitpLcdRd@(unsigned)&
PORTD*8+1;
bitpLcdWr@(unsigned)&
PORTD*8+2;
#defineLcdDataPortPORTC//P1
voidsDelay(unsignedcharrTemp);
voidsInitPort(void);
#defineGraphic1
#defineTXT0
#defineLcmLengthDots240
#defineLcmWidthDots128//64
#defineLineChar30//240/8=30
ucharrCount1;
constunsignedcharCharTable[][16]=
{
/*--文字:
0--*/
/*--新宋体12;
此字体下对应的点阵为:
宽x高=8x16--*/
0x00,0x00,0x00,0x18,0x24,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x24,0x18,0x00,0x00,
1--*/
0x00,0x00,0x00,0x10,0x70,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x7C,0x00,0x00,
2--*/
0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x04,0x04,0x08,0x10,0x20,0x42,0x7E,0x00,0x00,
3--*/
0x00,0x00,0x00,0x3C,0x42,0x42,0x04,0x18,0x04,0x02,0x02,0x42,0x44,0x38,0x00,0x00,
4--*/
0x00,0x00,0x00,0x04,0x0C,0x14,0x24,0x24,0x44,0x44,0x7E,0x04,0x04,0x1E,0x00,0x00,
5--*/
0x00,0x00,0x00,0x7E,0x40,0x40,0x40,0x58,0x64,0x02,0x02,0x42,0x44,0x38,0x00,0x00,
6--*/
0x00,0x00,0x00,0x1C,0x24,0x40,0x40,0x58,0x64,0x42,0x42,0x42,0x24,0x18,0x00,0x00,
7--*/
0x00,0x00,0x00,0x7E,0x44,0x44,0x08,0x08,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00,
8--*/
0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x24,0x18,0x24,0x42,0x42,0x42,0x3C,0x00,0x00,
9--*/
0x00,0x00,0x00,0x18,0x24,0x42,0x42,0x42,0x26,0x1A,0x02,0x02,0x24,0x38,0x00,0x00,
:
Index=10--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,
/--*/
0x00,0x00,0x01,0x02,0x02,0x04,0x04,0x08,0x08,0x10,0x10,0x20,0x20,0x40,0x40,0x00,
%Index=12--*/
0x00,0x00,0x00,0x44,0xA4,0xA8,0xA8,0xA8,0x54,0x1A,0x2A,0x2A,0x2A,0x44,0x00,0x00,
NIndex=13--*/
0x00,0x00,0x00,0xC7,0x62,0x62,0x52,0x52,0x4A,0x4A,0x4A,0x46,0x46,0xE2,0x00,0x00,
oIndex=14--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x42,0x42,0x42,0x42,0x42,0x3C,0x00,0x00,
.Index=15--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00,
#--*/
0x00,0x00,0x00,0x24,0x24,0x24,0xFE,0x48,0x48,0x48,0xFE,0x48,0x48,0x48,0x00,0x00,
};
constcharHZTable[][32]=//rom
//--------------------------------------------------------------------------------------------
//--试验频率次分钟占空比类型常开闭路数检测正粘连断温度触点继续停止状态转换℃------
//---01234567891011121314151617181920212223242526272829303132333435
试--*/
宽x高=16x16--*/
0x00,0x20,0x40,0x28,0x20,0x24,0x30,0x24,0x27,0xFE,0x00,0x20,0xE0,0x20,0x27,0xE0,
0x21,0x20,0x21,0x10,0x21,0x10,0x21,0x0A,0x29,0xCA,0x36,0x06,0x20,0x02,0x00,0x00,
验--*/
0x00,0x00,0xF8,0x40,0x08,0x40,0x48,0xA0,0x48,0x90,0x49,0x0E,0x4B,0xF0,0x7C,0x00,
0x04,0x84,0x06,0x44,0x35,0x48,0xC5,0x48,0x04,0x10,0x17,0xFE,0x08,0x00,0x00,0x00,
频--*/
0x08,0x00,0x08,0xFE,0x4E,0x20,0x48,0x40,0x48,0xFC,0xFE,0x84,0x00,0xA4,0x08,0xA4,
0x4A,0xA4,0x4A,0xA4,0x84,0xA4,0x08,0x50,0x10,0x48,0x20,0x86,0xC3,0x02,0x00,0x00,
率--*/
0x02,0x00,0x01,0x00,0x7F,0xFE,0x41,0x00,0x22,0x28,0x17,0xD0,0x04,0x80,0x11,0x10,
0x22,0x48,0x47,0xC4,0x01,0x20,0xFF,0xFE,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,
/*
次--*/
0x01,0x00,0x41,0x00,0x25,0x00,0x25,0xFE,0x2A,0x44,0x0A,0x48,0x14,0x40,0x10,0x40,
0x20,0xC0,0xE0,0xA0,0x41,0x20,0x42,0x10,0x44,0x08,0x18,0x0E,0x60,0x04,0x00,0x00,
分--*/
0x08,0x80,0x0C,0x80,0x08,0x40,0x10,0x20,0x10,0x30,0x20,0x18,0x40,0x0E,0x9F,0xE4,
0x04,0x20,0x04,0x20,0x04,0x20,0x04,0x20,0x08,0x20,0x10,0xA0,0x20,0x40,0x40,0x00,
钟--*/
0x10,0x20,0x10,0x20,0x20,0x20,0x3D,0xFC,0x41,0x24,0x7D,0x24,0x91,0x24,0x11,0x24,
0xFD,0xFC,0x10,0x20,0x10,0x20,0x10,0x20,0x10,0x20,0x14,0x20,0x18,0x20,0x10,0x20,
占--*/
0x02,0x00,0x02,0x00,0x02,0x00,0x03,0xFC,0x02,0x00,0x02,0x00,0x02,0x00,0x3F,0xF0,
0x20,0x10,0x20,0x10,0x20,0x10,0x20,0x10,0x20,0x10,0x3F,0xF0,0x20,0x10,0x00,0x00,
空--*/
0x02,0x00,0x01,0x00,0x7F,0xFE,0x40,0x02,0x84,0x44,0x08,0x20,0x10,0x10,0x20,0x08,
0x1F,0xF0,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x7F,0xFC,0x00,0x00,
比--*/
0x20,0x80,0x20,0x80,0x20,0x80,0x20,0x80,0x20,0x80,0x3E,0x8E,0x20,0xF0,0x20,0x80,
0x20,0x80,0x20,0x80,0x20,0x80,0x24,0x82,0x28,0x82,0x30,0x82,0x20,0x7E,0x00,0x00,
类--*/
0x21,0x08,0x11,0x10,0x09,0x20,0x7F,0xFE,0x03,0x80,0x0D,0x60,0x31,0x18,0xC1,0x04,
0x01,0x00,0xFF,0xFE,0x01,0x00,0x02,0x80,0x04,0x40,0x08,0x30,0x30,0x0E,0xC0,0x04,
型--*/
0x00,0x04,0x7F,0x84,0x12,0x24,0x12,0x24,0xFF,0xE4,0x12,0x24,0x12,0x24,0x22,0x24,
0x22,0x04,0x41,0x14,0x01,0x08,0x3F,0xFC,0x01,0x00,0x01,0x00,0xFF,0xFE,0x00,0x00,
常--*/
0x11,0x10,0x0D,0x18,0x09,0x20,0x7F,0xFE,0x40,0x04,0x8F,0xE8,0x08,0x20,0x0F,0xE0,
0x01,0x00,0x3F,0xF8,0x21,0x08,0x21,0x08,0x21,0x28,0x21,0x10,0x01,0x00,0x01,0x00,
开--*/
0x00,0x00,0x7F,0xFE,0x04,0x20,0x04,0x20,0x04,0x20,0x04,0x20,0xFF,0xFE,0x04,0x20,
0x04,0x20,0x04,0x20,0x08,0x20,0x08,0x20,0x10,0x20,0x20,0x20,0x40,0x20,0x00,0x00,
闭--*/
0x20,0x00,0x1B,0xFC,0x08,0x04,0x20,0x84,0x20,0x84,0x20,0x84,0x2F,0xF4,0x20,0x84,
0x21,0x84,0x22,0x84,0x2C,0x84,0x20,0x84,0x22,0x84,0x21,0x04,0x20,0x14,0x20,0x08,
路--*/
0x00,0x80,0x78,0x80,0x48,0xFC,0x49,0x88,0x4A,0x48,0x7C,0x50,0x50,0x20,0x10,0x58,
0x5D,0x86,0x53,0xFC,0x51,0x08,0x51,0x08,0x5D,0x08,0xE1,0xF8,0x01,0x08,0x00,0x00,
数--*/
0x08,0x20,0x49,0x30,0x2A,0x20,0x1C,0x20,0xFF,0x7E,0x1C,0x44,0x2B,0x44,0x48,0xC4,
0x08,0x28,0xFF,0x28,0x12,0x10,0x34,0x10,0x0C,0x28,0x32,0x4E,0xC0,0x84,0x00,0x00,
检--*/
0x10,0x40,0x10,0x40,0x10,0xA0,0xFD,0x10,0x12,0x0E,0x38,0x00,0x35,0xF8,0x50,0x00,
0x50,0x88,0x92,0x4C,0x11,0x48,0x11,0x50,0x10,0x20,0x17,0xFE,0x10,0x00,0x00,0x00,
测--*/
0x40,0x02,0x27,0xC2,0x24,0x42,0x84,0x52,0x45,0x52,0x55,0x52,0x15,0x52,0x25,0x52,
0x25,0x52,0x25,0x52,0xC5,0x52,0x41,0x02,0x42,0x82,0x42,0x42,0x44,0x4A,0x48,0x04,
正--*/
0x00,0x00,0x7F,0xFE,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x10,0x80,0x10,0xFC,
0x10,0x80,0x10,0x80,0x10,0x80,0x10,0x80,0x10,0x80,0xFF,0xFE,0x00,0x00,0x00,0x00,
粘--*/
0x10,0x40,0x10,0x40,0x10,0x40,0x94,0x40,0x54,0x7E,0x58,0x40,0xFE,0x40,0x30,0x40,
0x39,0xFC,0x55,0x04,0x55,0x04,0x51,0x04,0x91,0x04,0x11,0x04,0x11,0xFC,0x11,0x04,
连--*/
0x40,0x80,0x20,0x80,0x37,0xFC,0x21,0x00,0x01,0x40,0x02,0x40,0xF7,0xF8,0x12,0x40,
0x10,0x40,0x1F,0xFE,0x10,0x40,0x10,0x40,0x10,0x40,0x28,0x00,0x47,0xFE,0x00,0x00,
断--*/
0x04,0x00,0x44,0x0E,0x65,0x70,0x55,0x40,0x56,0x40,0x44,0x40,0x7F,0x7E,0x4C,0x48,
0x56,0x48,0x55,0x48,0x64,0x48,0x44,0x88,0x44,0x88,0x7F,0x08,0x02,0x08,0x00,0x08,
温--*/
0x40,0x00,0x27,0xF0,0x24,0x10,0x07,0xF0,0x94,0x10,0x54,0x10,0x17,0xF0,0x20,0x00,
0x2F,0xFC,0xC9,0x24,0x49,0x24,0x49,0x24,0x49,0x24,0x49,0x24,0x5F,0xFE,0x40,0x00,
度--*/
0x01,0x00,0x00,0x80,0x3F,0xFE,0x22,0x20,0x22,0x20,0x2F,0xFC,0x22,0x20,0x23,0xE0,
0x20,0x00,0x27,0xF8,0x22,0x10,0x21,0x20,0x20,0xC0,0x41,0x30,0x46,0x0E,0x98,0x04,
触--*/
0x20,0x10,0x3F,0x10,0x21,0x10,0x42,0x10,0x7F,0x7C,0xC9,0x54,0x7F,0x54,0x49,0x54,
0x49,0x54,0x7F,0x7C,0x49,0x10,0x49,0x14,0x49,0x12,0x49,0x1E,0x85,0xF2,0x02,0x00,
点--*/
0x01,0x00,0x01,0x00,0x01,0xF8,0x01,0x00,0x01,0x10,0x1F,0xF8,0x10,0x10,0x10,0x10,
0x10,0x10,0x1F,0xF0,0x10,0x10,0x01,0x10,0x28,0x88,0x24,0x44,0x44,0x44,0x00,0x00,
继--*/
0x20,0x20,0x32,0x20,0x22,0x24,0x43,0x24,0x4A,0xA8,0xFA,0x20,0x13,0xFE,0x22,0x70,
0x42,0x68,0xFA,0xA4,0x02,0xA4,0x03,0x20,0x1A,0x20,0xE2,0x00,0x03,0xFE,0x00,0x00,
续--*/
0x10,0x40,0x18,0x40,0x11,0xFC,0x20,0x40,0x4B,0xFE,0xF1,0x24,0x10,0xA8,0x22,0xA0,
0x41,0x20,0xF7,0xFE,0x00,0x20,0x00,0x50,0x18,0x48,0xE0,0x84,0x01,0x04,0x00,0x00,
停--*/
0x08,0x40,0x0C,0x20,0x0B,0xFE,0x10,0x00,0x11,0xF8,0x31,0x08,0x51,0xF8,0x90,0x00,
0x17,0xFE