STC12C5410AD AD的測試LCD12864顯示程序
STC12C5410AD AD的測試LCD12864顯示程序
#include STC12C5410AD.H>
#include "stdio.h"
#include "stdlib.h"
#include "math.h"
#include "absacc.h"
#include "intrins.h"
#include "string.h"
#define Rssp_On 0x3f
#define Rssp_Off 0x3e
#define Col_Add 0x40
#define Page_Add 0xb8
#define Start_Line 0xc0
sbit Rs = P1^7; //Data or Instrument Select
sbit RW = P1^5; //Write or Read
sbit Ce = P1^6; //6800 mode Enable single
#define Lcd_Bus P2
sbit Cs1 = P1^3; //Master chip enable
sbit Cs2 = P1^4; //Slave chip enable
unsigned char adbuf;
unsigned char code han[]=
{
/*-- 文字: 值 --*/
/*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
0x80,0x40,0xF0,0x2F,0x02,0x04,0xE4,0xA4,0xB4,0xAF,0xA6,0xA4,0xE4,0x04,0x00,0x00,
0x00,0x00,0xFF,0x00,0x40,0x40,0x7F,0x4A,0x4A,0x4A,0x4A,0x4A,0x7F,0x40,0x40,0x00,
/*-- 文字: 電 --*/
/*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
0x00,0x00,0xF8,0x48,0x48,0x48,0x48,0xFF,0x48,0x48,0x48,0x48,0xF8,0x00,0x00,0x00,
0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0x3F,0x44,0x44,0x44,0x44,0x4F,0x40,0x70,0x00,
/*-- 文字: 壓 --*/
/*-- 宋體12; 此字體下對應的點陣為:寬x高=16x16 --*/
0x00,0x00,0xFE,0x02,0x42,0x42,0x42,0x42,0xFA,0x42,0x42,0x42,0x62,0x42,0x02,0x00,
0x20,0x18,0x27,0x20,0x20,0x20,0x20,0x20,0x3F,0x20,0x21,0x2E,0x24,0x20,0x20,0x00,
/*-- 文字: 專 --*/
/*-- 宋體-方正超大字符集11; 此字體下對應的點陣為:寬x高=16x16 --*/
0x00,0x00,0x80,0x90,0x90,0xF0,0x9C,0x90,0x90,0x90,0x90,0x88,0x40,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x03,0x02,0x12,0x22,0x72,0x0A,0x06,0x02,0x00,0x00,0x00,0x00,
/*-- 文字: 注 --*/
/*-- 宋體-方正超大字符集11; 此字體下對應的點陣為:寬x高=16x16 --*/
0x20,0x40,0x84,0xE8,0x20,0x20,0x20,0x22,0x24,0xE8,0x20,0x20,0x20,0x00,0x00,0x00,
0x00,0x38,0x46,0x01,0x00,0x42,0x42,0x42,0x42,0x7F,0x42,0x42,0x42,0x42,0x00,0x00,
/*-- 文字: 于 --*/
/*-- 宋體-方正超大字符集11; 此字體下對應的點陣為:寬x高=16x16 --*/
0x00,0x80,0x84,0x84,0x84,0x84,0x84,0xFC,0x84,0x84,0x84,0x84,0x84,0x80,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x40,0x40,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
/*-- 文字: 消 --*/
/*-- 宋體-方正超大字符集11; 此字體下對應的點陣為:寬x高=16x16 --*/
0x00,0x20,0x40,0x84,0x60,0x00,0xC8,0x30,0x40,0x3E,0x40,0x30,0x48,0xC0,0x00,0x00,
0x00,0x00,0x7C,0x03,0x00,0x00,0x7F,0x09,0x09,0x09,0x09,0x89,0x89,0x7F,0x00,0x00,
/*-- 文字: 費 --*/
/*-- 宋體-方正超大字符集11; 此字體下對應的點陣為:寬x高=16x16 --*/
0x00,0x00,0xE8,0xA8,0xA8,0xE8,0x9C,0xA8,0xA8,0xFC,0xA8,0xA8,0xB8,0x80,0x00,0x00,
0x00,0x80,0x84,0x9E,0x85,0x44,0x24,0x1C,0x24,0x25,0x24,0x5E,0x42,0x01,0x00,0x00,
/*-- 文字: 類 --*/
/*-- 宋體-方正超大字符集11; 此字體下對應的點陣為:寬x高=16x16 --*/
0x00,0x20,0x20,0x20,0xA8,0x50,0x20,0xFC,0x20,0x50,0xAC,0xA0,0x20,0x00,0x00,0x00,
0x80,0x82,0x8A,0x49,0x48,0x28,0x19,0x06,0x18,0x28,0x28,0x48,0x49,0x84,0x00,0x00,
/*-- 文字: 控 --*/
/*-- 宋體-方正超大字符集11; 此字體下對應的點陣為:寬x高=16x16 --*/
0x00,0x20,0x20,0xFC,0x20,0x20,0x30,0x90,0x54,0x1C,0x10,0x50,0xB0,0x10,0x00,0x00,
0x00,0x44,0x82,0x7F,0x01,0x01,0x81,0x84,0x84,0x7C,0x84,0x84,0x84,0x41,0x00,0x00,
/*-- 文字: 制 --*/
/*-- 宋體-方正超大字符集11; 此字體下對應的點陣為:寬x高=16x16 --*/
0x00,0x60,0x9C,0x90,0x90,0xFC,0x90,0x90,0x50,0x80,0xF8,0x00,0x00,0xFC,0x00,0x00,
0x00,0x00,0x3E,0x02,0x02,0x7F,0x22,0x3E,0x02,0x00,0x0F,0x40,0x40,0x3F,0x00,0x00,
};
萬能遙控器相關文章:萬能遙控器代碼
評論