寻找sed1335的资料。
本人目前打算做一个320*240的lcd显示,迫切需要sed1335的资料。在网上找到了,下载后才发现没有我要的那部分资料,就是那些控制命令;如文字显示模式:16*16还是24*24,怎么控制光标的位置,怎么送显示等等,这些控制命令在下载的资料上没有,哪位有给我送一份。E-mail:zhzzh18@163.com
不胜感谢 我在图书馆找到的几个资料。发给小章后他说有用。我就传上来了。
点击此处下载armok0175027.rar 那些资料对我来说太有用了,我打算用m16和sed1335做个320*240的lcd显示,找了好多地方都没比这个更详细的了。
太谢谢了。 用meg16l的sed1335,仅供zhzzh18 小章参考
ICCAVR-MEGA16L-UART-DEMO显示程序 2.0
作者:cyk8 2004.12.3
1、应包含头文件slavr.h
2、在工程选项中的Additional Lib中填入slavr
使编译器使用附加库文件libslavr.a
3、数据线D0~D7接PORTC
WR------>用PD4代替
RD------>用PD3代替
A0------>用PD6代替
RESET接RESET
CS接地
4,通讯协议:
主机发送的控制指令采用6个字符组成的字符串格式“(X/Y/S/C/G/T)”+数据1,数据2,数据3,数据4+“#”,
主机共发7B,7C,7D,7E,7F,
a.第一个发的是X,Y,SAD,C,G,TH的ASCⅡ
X--->58H(X)
Y--->59H(Y)
SAD->53H(S)
C--->43H(C)
G--->47H(G)
TH-->54H(T)
b.7B,7C,7D,7E四个数据
c.最后一个7F=#23H(ASCⅡ="#"表示结束符号)
---------------------------------------------------------*/
#include<ioM16V.h>
#include <stdlib.h>
#include <macros.h>
#include <slavr.h>
//宏定义//
#define Uchar unsigned char
#define Uint unsigned int
#define paraP9 0x28 // 相对于320 X 240
#define BasePart1 0x00
#define BasePart2 0x40
#define BasePart3 0x80
#define BasePart4 0x00
#define SystemSet 0x40
#define Scroll 0x44
#define DispOn 0x59
#define DispOff 0x58
#define Ovlay 0x5b
#define HdotScr 0x5a
#define CsrForm 0x5d
#define CgramAdr 0x5c
#define CsrDirR 0x4c
#define CsrDirL 0x4d
#define CsrDirU 0x4e
#define CsrDirD 0x4f
#define CsrW 0x46
#define CsrR 0x47
#define mWrite 0x42
#define mRead 0x43
#define A0_H PORTD |=0x40
#define A0_L PORTD &=0xbf
#define RD_H PORTD |=0x08
#define WR_H PORTD |=0x10
#define WR_L PORTD &=0xef
#define LcmRdataPort A0_H
#define LcmStatusPort A0_L
unsigned char RX_data={0}; //串口接收的数据
unsigned char RX_counter=0; //串口接收到的字节数计数器
void UART_init (void);
void putchar (unsigned char c);
void puts (unsigned char *s);
void UART_rx (void);
void delay_nms (unsigned int n);
const Uchar*ptr; //液晶字符指针变量
Uchar ParaSysTable8[]= {
0x30,0x87,0x07,0x27,0x42,0xf0,0x28,0x00 // P1-P8参数
};
Uchar ParaScrTableA[]= {
0x00,BasePart1,0xF0,0x00,BasePart2,0xF0,0x00,BasePart3,0x00,BasePart4
};
void PutCdotInAlpha( Uchar Ox, Uchar Oy, Uchar Cnumber );
void PutWordInAlpha(void);
void TextDisp( Uchar Ox,Uchar Oy, const Uchar*ptr );
void LcmInition( void );
void LcmClear( void );
void SelfInit( void );
void delay(Uint t);
void RollLaft( void );
void Rollright( void );
void RollDown( void );
void RollUp( void );
void BuildCgram( Uchar Base, Uchar EndlCode );
void PutWordInAlpha(void);
void PutWordInGraph( void );
void PutWord24InGraph( void );
void Linexy(Uint x0,Uchar y0,Uint xt,Uchar yt,Uchar att);
void Sample3( void );
void Point(Uint Px, Uchar Py, Uchar attr );
/*微秒级延时函数(mS)本延时函数实际为delay_us(int time)中的int time=1->实际等于2us */
void delay_us(int time)
{
do
{
time--;
}
while (time>1);
}
/* 毫秒级延时函数 */
void delay_ms(unsigned int time)
{
while(time!=0)
{
delay_us(500);
time--;
}
}
void sed1335_write_command(Uchar commandcode)
{
PORTA=commandcode;
//E_L;
A0_H; //PORTC |=0x08; //A0=1(PC3=1);
RD_H;//PORTC |=0x20; //read=1(PC5=1);
WR_L;//PORTC &=0xbf; //write=0(PC6=0);
WR_H;//PORTC |=0x40; //write=1(PC6=1);
//E_H;
}
void sed1335_write_data(Uchar data)
{
PORTA=data;
//E_L;
A0_L;//PORTC &=0xf7; //A0=0(PC3=0);
RD_H;//PORTC |=0x20; //read=1(PC5=1);
WR_L;//PORTC &=0xbf; //write=0(PC6=0);
WR_H;//PORTC |=0x40; //write=1(PC6=1);
//E_H;
}
//CPU初始化//
void SelfInit( void )
{
DDRA=0xff;
PORTA = 0x00;
DDRB=0xff;
PORTB = 0x00;
DDRC = 0xff;
PORTC = 0x00;
DDRD = 0xff;
PORTD = 0xff;
}
//液晶初始化//
void LcmInition( void )
{
Uint i1;
delay_ms(50);
delay_ms(50);
sed1335_write_command(SystemSet);
sed1335_write_data(0x30);
sed1335_write_data(0x87);
sed1335_write_data(0x07);
sed1335_write_data(0x27);
sed1335_write_data(0x42);
sed1335_write_data(0xf0);
sed1335_write_data(0x28);
sed1335_write_data(0x00);
sed1335_write_command(Scroll);
sed1335_write_data(0x00);
sed1335_write_data(0x00);
sed1335_write_data(0xf0);
sed1335_write_data(0x00);
sed1335_write_data(0x40);
sed1335_write_data(0xf0);
sed1335_write_data(0x00);
sed1335_write_data(0x00);
sed1335_write_data(0x00);
sed1335_write_data(0x00);
sed1335_write_command(HdotScr);
sed1335_write_data(0x00);
sed1335_write_command(Ovlay);
sed1335_write_data(0x0d);
delay_ms(100);
i1=32768;
sed1335_write_command(CsrDirR);
sed1335_write_command(CsrW);
sed1335_write_data(0x00);
sed1335_write_data(0x00);
sed1335_write_command(mWrite);
while(i1--) {
sed1335_write_data(0x00);
}
sed1335_write_command(DispOn);
sed1335_write_data(0x15);
}
//ASCⅡ字符数组定义(0x30开始)//
const Uchar ASC_MSK32 = {
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x06,
0x0C,0x18,0x18,0x18,0x30,0x30,0x30,0x30,
0x30,0x30,0x30,0x30,0x30,0x18,0x18,0x18,
0x0C,0x06,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x30,
0x18,0x0C,0x0C,0x04,0x06,0x06,0x06,0x06,
0x06,0x06,0x06,0x06,0x06,0x04,0x0C,0x0C,
0x18,0x30,0xE0,0x00,0x00,0x00,0x00,0x00,/*"0"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x1F,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x03,0x1F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0xC0,0xF8,0x00,0x00,0x00,0x00,0x00,/*"1"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x08,
0x10,0x20,0x20,0x30,0x30,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x02,0x04,0x08,0x10,
0x20,0x3F,0x3F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x38,
0x18,0x0C,0x0C,0x0C,0x0C,0x0C,0x18,0x10,
0x20,0x40,0x80,0x00,0x00,0x04,0x04,0x04,
0x0C,0xF8,0xF8,0x00,0x00,0x00,0x00,0x00,/*"2"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x18,
0x30,0x30,0x30,0x30,0x00,0x00,0x00,0x03,
0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x30,
0x30,0x18,0x07,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x70,
0x30,0x18,0x18,0x18,0x18,0x30,0x60,0xC0,
0x70,0x18,0x08,0x0C,0x0C,0x0C,0x0C,0x08,
0x18,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,/*"3"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0x01,0x02,0x06,0x04,0x08,
0x08,0x10,0x20,0x20,0x7F,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x70,
0x70,0xF0,0x70,0x70,0x70,0x70,0x70,0x70,
0x70,0x70,0x70,0x70,0xFE,0x70,0x70,0x70,
0x70,0x70,0x70,0xFE,0x00,0x00,0x00,0x00,/*"4"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x0F,
0x08,0x08,0x08,0x10,0x10,0x13,0x14,0x18,
0x10,0x00,0x00,0x00,0x00,0x30,0x30,0x20,
0x20,0x10,0x0F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFC,
0x00,0x00,0x00,0x00,0x00,0xE0,0x30,0x18,
0x08,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x18,
0x18,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,/*"5",0*/
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,
0x04,0x08,0x18,0x18,0x10,0x30,0x31,0x36,
0x3C,0x38,0x30,0x30,0x30,0x30,0x18,0x18,
0x0C,0x06,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x08,
0x0C,0x0C,0x00,0x00,0x00,0x00,0xF0,0x18,
0x0C,0x06,0x06,0x06,0x06,0x06,0x06,0x04,
0x0C,0x18,0xE0,0x00,0x00,0x00,0x00,0x00,/*"6"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1F,
0x38,0x30,0x20,0x20,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0x01,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFC,
0x08,0x10,0x10,0x20,0x20,0x40,0x40,0x80,
0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"7"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x0C,
0x18,0x30,0x30,0x30,0x38,0x1C,0x0E,0x07,
0x0D,0x18,0x30,0x60,0x60,0x60,0x60,0x60,
0x30,0x18,0x07,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x30,
0x18,0x0C,0x0C,0x0C,0x0C,0x18,0x10,0xE0,
0xE0,0x70,0x38,0x1C,0x0C,0x0C,0x0C,0x0C,
0x18,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,/*"8"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x18,
0x30,0x30,0x60,0x60,0x60,0x60,0x60,0x60,
0x30,0x18,0x0F,0x00,0x00,0x00,0x00,0x30,
0x30,0x30,0x0F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x20,
0x10,0x18,0x08,0x0C,0x0C,0x0C,0x0C,0x1C,
0x3C,0x6C,0x8C,0x0C,0x18,0x18,0x18,0x30,
0x60,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,/*"9"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- :--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- ;--*/
0x00,0x00,0x00,0x00,0x00,0x0F,0x04,0x04,
0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,
0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,
0x04,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xF0,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0xF0,0x00,0x00,0x00,0x00,0x00,0x00, /*"Ⅱ",<*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,
0x00,0x00,0x00,0x7F,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xFE,0x00,0x00,
0x00,0x00,0x00,0xFE,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*"=",0*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- >--*/
0x00,0x00,0x00,0x00,0x00,0x0F,0x04,0x04,
0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,
0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,
0x04,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xF0,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0xF0,0x00,0x00,0x00,0x00,0x00,0x00, /*"Ⅱ",?*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- @--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x03,
0x03,0x02,0x06,0x04,0x04,0x04,0x0C,0x08,
0x08,0x08,0x1F,0x10,0x10,0x10,0x30,0x20,
0x20,0x60,0xF8,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,
0x80,0x80,0xC0,0xC0,0xC0,0xC0,0x60,0x60,
0x60,0x60,0xF0,0x30,0x30,0x30,0x30,0x18,
0x18,0x18,0x3E,0x00,0x00,0x00,0x00,0x00, /*"A"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x1F,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x7F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x38,
0x1C,0x0C,0x0C,0x0C,0x0C,0x18,0x30,0xE0,
0x18,0x0C,0x04,0x06,0x06,0x06,0x06,0x06,
0x0C,0x18,0xF0,0x00,0x00,0x00,0x00,0x00, /*"B"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x06,
0x08,0x18,0x30,0x30,0x20,0x60,0x60,0x60,
0x60,0x60,0x60,0x60,0x60,0x30,0x30,0x30,
0x18,0x0C,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xE4,0x1C,
0x0C,0x04,0x02,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x02,0x04,
0x0C,0x18,0xE0,0x00,0x00,0x00,0x00,0x00, /*"C"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x7F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x70,
0x18,0x0C,0x0C,0x0C,0x06,0x06,0x06,0x06,
0x06,0x06,0x06,0x06,0x06,0x0C,0x0C,0x08,
0x18,0x70,0xC0,0x00,0x00,0x00,0x00,0x00, /*"D"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x1F,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x7F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x0C,
0x04,0x06,0x02,0x00,0x10,0x10,0x30,0xF0,
0x30,0x10,0x10,0x00,0x00,0x00,0x02,0x02,
0x04,0x0C,0xFC,0x00,0x00,0x00,0x00,0x00, /*"E"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x1F,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x7E,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x0E,
0x02,0x03,0x01,0x00,0x08,0x08,0x18,0xF8,
0x18,0x08,0x08,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"F"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0E,
0x08,0x18,0x30,0x30,0x20,0x60,0x60,0x60,
0x60,0x60,0x60,0x60,0x60,0x30,0x30,0x18,
0x18,0x0C,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xC8,0x38,
0x08,0x08,0x04,0x04,0x00,0x00,0x00,0x00,
0x00,0x00,0x3F,0x0C,0x0C,0x0C,0x0C,0x0C,
0x0C,0x10,0xE0,0x00,0x00,0x00,0x00,0x00,/*"G"*/
0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x30,
0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,
0x3F,0x30,0x30,0x30,0x30,0x30,0x30,0x30,
0x30,0x30,0xFC,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0xF8,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x7E,0x00,0x00,0x00,0x00,0x00,/*"H"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x1F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0xF8,0x00,0x00,0x00,0x00,0x00,/*"I"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x70,0x70,0x71,0x3F,
0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x60,
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,
0x60,0x60,0x60,0x60,0x60,0x60,0x60,0x60,
0x60,0x60,0x60,0x60,0x60,0xC0,0x80,0x00,/*"J"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x18,
0x18,0x18,0x18,0x18,0x18,0x19,0x19,0x1B,
0x1D,0x1C,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x7E,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x18,
0x10,0x20,0x60,0x40,0x80,0x80,0x80,0x80,
0xC0,0xC0,0xE0,0x60,0x70,0x30,0x38,0x18,
0x0C,0x0C,0x3F,0x00,0x00,0x00,0x00,0x00,/*"K"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x7F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x02,
0x04,0x0C,0xFC,0x00,0x00,0x00,0x00,0x00,/*"L"*/
0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x38,
0x38,0x38,0x38,0x2C,0x2C,0x2C,0x2C,0x2E,
0x26,0x26,0x26,0x26,0x23,0x23,0x23,0x23,
0x23,0x21,0xF9,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x1C,
0x1C,0x1C,0x3C,0x2C,0x2C,0x2C,0x6C,0x4C,
0x4C,0x4C,0x4C,0x8C,0x8C,0x8C,0x8C,0x0C,
0x0C,0x0C,0x3F,0x00,0x00,0x00,0x00,0x00,/*"M"*/
0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x38,
0x3C,0x2C,0x2C,0x2E,0x26,0x27,0x23,0x23,
0x21,0x21,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0xF8,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x08,
0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x88,
0x88,0xC8,0xC8,0xE8,0x68,0x78,0x38,0x38,
0x38,0x18,0x18,0x00,0x00,0x00,0x00,0x00,/*"N"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0C,
0x18,0x10,0x30,0x30,0x60,0x60,0x60,0x60,
0x60,0x60,0x60,0x60,0x60,0x30,0x30,0x10,
0x18,0x0C,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x30,
0x18,0x08,0x0C,0x0C,0x06,0x06,0x06,0x06,
0x06,0x06,0x06,0x06,0x06,0x04,0x0C,0x08,
0x18,0x30,0xC0,0x00,0x00,0x00,0x00,0x00,/*"O"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x1F,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x7E,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x18,
0x0C,0x06,0x06,0x06,0x06,0x06,0x0C,0x18,
0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"P"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x0C,
0x18,0x30,0x30,0x30,0x60,0x60,0x60,0x60,
0x60,0x60,0x60,0x60,0x60,0x27,0x34,0x38,
0x18,0x0C,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x30,
0x18,0x08,0x0C,0x04,0x06,0x06,0x06,0x06,
0x06,0x06,0x06,0x06,0x06,0x86,0xCC,0x4C,
0x68,0x70,0xE0,0x32,0x3E,0x1C,0x00,0x00,/*"Q"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x1F,
0x19,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x7E,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0x38,
0x1C,0x0C,0x0C,0x0C,0x0C,0x18,0x30,0xE0,
0xC0,0xC0,0xE0,0x60,0x60,0x70,0x30,0x30,
0x38,0x18,0x1E,0x00,0x00,0x00,0x00,0x00,/*"R"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x0C,
0x18,0x30,0x30,0x30,0x30,0x18,0x1E,0x07,
0x01,0x00,0x00,0x00,0x00,0x20,0x20,0x10,
0x18,0x1C,0x13,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xE4,0x1C,
0x0C,0x04,0x04,0x00,0x00,0x00,0x00,0xC0,
0xF0,0x78,0x1C,0x0E,0x06,0x06,0x06,0x06,
0x0C,0x18,0xF0,0x00,0x00,0x00,0x00,0x00,/*"S"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x31,
0x21,0x41,0x41,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x07,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x84,
0x86,0x82,0x82,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0xE0,0x00,0x00,0x00,0x00,0x00,/*"T"*/
0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x30,
0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,
0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,
0x10,0x1C,0x07,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x08,
0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,
0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,
0x10,0x20,0xC0,0x00,0x00,0x00,0x00,0x00,/*"U"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x18,
0x18,0x18,0x0C,0x0C,0x0C,0x0C,0x06,0x06,
0x06,0x07,0x03,0x03,0x03,0x01,0x01,0x01,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x04,
0x04,0x04,0x08,0x08,0x08,0x08,0x10,0x10,
0x10,0x30,0x20,0x20,0x20,0xC0,0xC0,0xC0,
0xC0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,/*"V"*/
0x00,0x00,0x00,0x00,0x00,0x00,0xFB,0x61,
0x61,0x61,0x31,0x30,0x31,0x31,0x31,0x31,
0x32,0x1A,0x1A,0x1A,0x1C,0x1C,0x1C,0x0C,
0x08,0x08,0x08,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xCF,0x86,
0x84,0x84,0x84,0x84,0xC4,0xC8,0xC8,0xC8,
0xC8,0x48,0x68,0x70,0x70,0x70,0x70,0x30,
0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,/*"W"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x18,
0x1C,0x0C,0x0C,0x0E,0x06,0x07,0x03,0x03,
0x01,0x01,0x02,0x02,0x04,0x04,0x08,0x08,
0x10,0x10,0x7C,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x10,
0x10,0x20,0x20,0x40,0x40,0x80,0x80,0x80,
0x80,0xC0,0xC0,0xE0,0x60,0x60,0x30,0x30,
0x18,0x18,0x3E,0x00,0x00,0x00,0x00,0x00,/*"X"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x38,
0x18,0x18,0x0C,0x0C,0x0E,0x06,0x06,0x03,
0x03,0x03,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x07,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x3E,0x08,
0x08,0x10,0x10,0x30,0x20,0x20,0x40,0x40,
0x40,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0xE0,0x00,0x00,0x00,0x00,0x00,/*"Y",17*/
0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x18,
0x10,0x20,0x20,0x00,0x00,0x00,0x01,0x01,
0x03,0x03,0x07,0x06,0x0E,0x0C,0x1C,0x18,
0x38,0x30,0x7F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x18,
0x18,0x30,0x70,0x60,0xE0,0xC0,0xC0,0x80,
0x80,0x00,0x00,0x00,0x00,0x00,0x04,0x04,
0x08,0x18,0xF8,0x00,0x00,0x00,0x00,0x00,/*"Z"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- [--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- \--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- ]--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*-- --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* /*-- ^--*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*"-"*/
0x00,0x00,0x00,0x01,0x03,0x06,0x04,0x04,
0x04,0x06,0x03,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xC0,0xE0,0x30,0x10,0x10,
0x10,0x30,0xE0,0xC0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"。",`*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x0F,0x18,0x30,
0x30,0x00,0x01,0x0E,0x38,0x30,0x60,0x60,
0x60,0x30,0x1F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x60,0x30,
0x30,0x30,0xF0,0x30,0x30,0x30,0x30,0x30,
0x32,0xF2,0x1C,0x00,0x00,0x00,0x00,0x00,/*"a"*/
0x00,0x00,0x00,0x00,0x00,0x08,0x78,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x1B,0x1C,
0x1C,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x1C,0x1E,0x13,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xF0,0x18,0x0C,
0x06,0x06,0x06,0x06,0x06,0x06,0x06,0x04,
0x0C,0x18,0xE0,0x00,0x00,0x00,0x00,0x00,/*"b"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0x0E,0x18,
0x18,0x30,0x30,0x30,0x30,0x30,0x30,0x18,
0x18,0x0C,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xE0,0x30,0x18,
0x18,0x18,0x00,0x00,0x00,0x00,0x04,0x04,
0x08,0x10,0xE0,0x00,0x00,0x00,0x00,0x00,/*"c",2*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x07,0x0C,0x18,
0x18,0x30,0x30,0x30,0x30,0x30,0x30,0x10,
0x18,0x0C,0x07,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x08,0x78,0x18,
0x18,0x18,0x18,0x18,0x18,0xD8,0x38,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x38,0x5E,0x90,0x00,0x00,0x00,0x00,0x00,/*"d"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0x0C,0x18,
0x10,0x30,0x30,0x3F,0x30,0x30,0x30,0x18,
0x18,0x0E,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xE0,0x30,0x18,
0x08,0x0C,0x0C,0xFC,0x00,0x00,0x00,0x04,
0x08,0x18,0xE0,0x00,0x00,0x00,0x00,0x00,/*"e"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x01,0x03,0x03,0x03,0x03,0x3F,0x03,0x03,
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x1F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0xC3,
0x03,0x03,0x00,0x00,0x00,0xF8,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,/*"f"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0x0C,0x08,
0x18,0x18,0x18,0x08,0x0C,0x0F,0x18,0x18,
0x0F,0x0F,0x10,0x30,0x30,0x30,0x1C,0x07,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xEE,0x36,0x18,
0x18,0x18,0x18,0x18,0x30,0xE0,0x00,0x00,
0xF0,0xFC,0x0E,0x06,0x06,0x06,0x1C,0xF0,/*"g"*/
0x00,0x00,0x00,0x00,0x00,0x08,0x78,0x18,
0x18,0x18,0x18,0x18,0x18,0x19,0x1B,0x1C,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x7E,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xF0,0x18,0x0C,
0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,
0x0C,0x0C,0x3F,0x00,0x00,0x00,0x00,0x00,/*"h"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,
0x01,0x00,0x00,0x00,0x00,0x1F,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x1F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,
0xC0,0x00,0x00,0x00,0x80,0x80,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0xF8,0x00,0x00,0x00,0x00,0x00,/*"i"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x0F,
0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x1C,
0x1C,0x00,0x00,0x00,0x08,0xF8,0x18,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x18,0x18,0x18,0x30,0x60,0xC0,/*"j"*/
0x00,0x00,0x00,0x00,0x00,0x08,0x78,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x19,0x1B,0x1C,0x18,0x18,0x18,
0x18,0x18,0x7E,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x7C,0x30,0x60,
0xC0,0x80,0x80,0x80,0xC0,0xE0,0x60,0x30,
0x38,0x18,0x3E,0x00,0x00,0x00,0x00,0x00,/*"k"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x1F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0xF8,0x00,0x00,0x00,0x00,0x00,/*"l"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x10,0x77,0x39,0x31,
0x31,0x31,0x31,0x31,0x31,0x31,0x31,0x31,
0x31,0x31,0x7B,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x38,0xCC,0x8C,
0x8C,0x8C,0x8C,0x8C,0x8C,0x8C,0x8C,0x8C,
0x8C,0x8C,0xDE,0x00,0x00,0x00,0x00,0x00,/*"m"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x08,0x78,0x1B,0x1C,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x18,0x7E,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xF0,0x18,0x0C,
0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,
0x0C,0x0C,0x3F,0x00,0x00,0x00,0x00,0x00,/*"n"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0x0E,0x08,
0x18,0x30,0x30,0x30,0x30,0x30,0x30,0x18,
0x18,0x0C,0x03,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xE0,0x38,0x0C,
0x0C,0x06,0x06,0x06,0x06,0x06,0x06,0x0C,
0x0C,0x18,0xE0,0x00,0x00,0x00,0x00,0x00,/*"o"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x08,0x79,0x1A,0x1C,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x1C,0x1E,0x19,0x18,0x18,0x18,0x18,0x7E,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xF0,0x18,0x0C,
0x04,0x06,0x06,0x06,0x06,0x06,0x06,0x0C,
0x0C,0x18,0xE0,0x00,0x00,0x00,0x00,0x00,/*"p"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0x0C,0x18,
0x18,0x30,0x30,0x30,0x30,0x30,0x30,0x10,
0x18,0x0C,0x07,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xC4,0x3C,0x1C,
0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,
0x1C,0x3C,0xCC,0x0C,0x0C,0x0C,0x0C,0x3F,/*"q"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x06,0x7E,0x06,0x06,
0x07,0x07,0x06,0x06,0x06,0x06,0x06,0x06,
0x06,0x06,0x7F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x3C,0x66,0x86,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,/*"r"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x07,0x0C,0x18,
0x18,0x18,0x0E,0x07,0x01,0x00,0x20,0x20,
0x30,0x38,0x37,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xE4,0x1C,0x0C,
0x04,0x00,0x00,0xC0,0xF0,0x38,0x0C,0x0C,
0x0C,0x18,0xF0,0x00,0x00,0x00,0x00,0x00,/*"s"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x01,0x01,0x03,0x07,0x3F,0x03,0x03,
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xF8,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,
0x04,0x88,0xF0,0x00,0x00,0x00,0x00,0x00,/*"t"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x08,0x78,0x18,0x18,
0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
0x18,0x0C,0x07,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x04,0x3C,0x0C,0x0C,
0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,
0x1C,0x2F,0xC8,0x00,0x00,0x00,0x00,0x00,/*"u"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x7E,0x18,0x18,
0x1C,0x0C,0x0C,0x0E,0x06,0x06,0x07,0x03,
0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x3C,0x18,0x10,
0x10,0x20,0x20,0x40,0x40,0x40,0x80,0x80,
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"v"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xFB,0x71,0x30,
0x31,0x31,0x19,0x19,0x1A,0x1A,0x0E,0x0E,
0x0E,0x04,0x04,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xEF,0xC6,0xC4,
0xC4,0xC4,0xC8,0xC8,0x68,0x68,0x70,0x70,
0x70,0x20,0x20,0x00,0x00,0x00,0x00,0x00,/*"w"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x3F,0x0E,0x0E,
0x07,0x03,0x03,0x01,0x01,0x02,0x06,0x04,
0x08,0x18,0x7C,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x7C,0x10,0x20,
0x20,0x40,0x80,0xC0,0xC0,0xE0,0x60,0x30,
0x30,0x18,0x7E,0x00,0x00,0x00,0x00,0x00,/*"x"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x7E,0x18,0x18,
0x0C,0x0C,0x0C,0x06,0x06,0x03,0x03,0x03,
0x01,0x01,0x01,0x01,0x01,0x01,0x32,0x3C,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x3E,0x18,0x10,
0x10,0x10,0x20,0x20,0x20,0x40,0x40,0x40,
0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,/*"y"*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x3F,0x30,0x20,
0x20,0x00,0x01,0x01,0x03,0x07,0x0E,0x0C,
0x1C,0x38,0x3F,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xF8,0x30,0x70,
0x60,0xC0,0xC0,0x80,0x00,0x00,0x04,0x04,
0x0C,0x18,0xF8,0x00,0x00,0x00,0x00,0x00,/*"z"*/
};
/*==============================================================================
; 文本方式下的16x16汉字显示方法
; 在文本方式下显示汉字, 需要在SED1335 等显示RAM 内建立一个自定义字符库
; CGRAM,然后通过在相应的单元写入相应的字符代码来实现汉字的显示.
; SED1335 等的字符代码对应的是8x8 点阵的字符块, 而一个汉字需要四个8x8
; 点阵的字符块组合显示, 所以在建立汉字的CGRAM 时, 需要四个字符代码管理一个
; 汉字, 一般是按左上部, 左下部, 右上部和右下部四部分分配代码. 比如在演示程
; 序中建立 "清华" 两个汉字的CGRAM,那么这两个汉字的代码为80H(81H,82H,83H)和
; 84H(85H,86H,87H).
=============================================================================*/
// 下面是建立自定义字库CGRAM子程序,调用前先设置数据量(字节数)COUNT1
typedef struct typFNT_GB16 // 汉字字模数据结构
{
signed char Index;
char Msk;
};
struct typFNT_GB16Cdotlib[]={
"模", 0x11,0x10,0x11,0x10,0x17,0xFE,0x11,0x10,
0xFD,0x10,0x13,0xF8,0x32,0x08,0x3B,0xF8,
0x56,0x08,0x53,0xF8,0x90,0x40,0x1F,0xFE,
0x10,0x40,0x10,0xB0,0x17,0x0E,0x00,0x00,
"拟", 0x10,0x00,0x10,0x08,0x10,0x88,0x12,0x48,
0xFE,0x68,0x12,0x28,0x16,0x08,0x1A,0x08,
0x32,0x08,0xD2,0x08,0x12,0x48,0x12,0x88,
0x13,0x14,0x12,0x22,0x70,0xC2,0x00,0x00,
"定", 0x02,0x00,0x01,0x04,0x7F,0xFE,0x40,0x04,
0x80,0x08,0x00,0x20,0x3F,0xF0,0x01,0x00,
0x01,0x00,0x11,0x20,0x11,0xF0,0x11,0x00,
0x11,0x00,0x29,0x00,0xC7,0xFE,0x00,0x00,
"位", 0x09,0x00,0x0C,0xC0,0x10,0x40,0x17,0xFC,
0x20,0x00,0x34,0x10,0x52,0x18,0x52,0x10,
0x91,0x10,0x11,0x20,0x11,0x20,0x10,0x20,
0x10,0x40,0x1F,0xFE,0x10,0x00,0x00,0x00,/*"位",0*/
"机", 0x40,0x00,0x43,0xE0,0x42,0x20,0xFA,0x20,
0x42,0x20,0x42,0x20,0xE2,0x20,0xD2,0x20,
0x52,0x20,0x42,0x20,0x44,0x20,0x44,0x28,
0x48,0x28,0x48,0x28,0x50,0x18,0x40,0x00,/*"机",0*/
};
// 24x24点阵汉字,每个汉字72字节,每行3字节
const Uchar Cdot24lib[]={\
0x07,0xC7,0x9E,0x08,0x48,0x61,0x08,0x78,
0x60,0x18,0x40,0x00,0x60,0x40,0x00,0x40,
0x40,0x60,0x40,0x38,0x00,0x40,0x20,0x00,
0x39,0xE1,0xF0,0x12,0x10,0x00,0x12,0x09,
0xF0,0x21,0x08,0x00,0x40,0x90,0x00,0x40,
0x7E,0x0F,0x40,0x40,0x00,0x20,0x40,0x00,
0x18,0x40,0x00,0x08,0x70,0x01,0x08,0x40,
0x20,0x08,0x40,0x60,0x08,0x41,0x98,0x07,
0xFE,0x07,0x00,0x00,0x00,0x00,0x00,0x00,/*"模",0*/
0x00,0x00,0x00,0x07,0xDE,0x1F,0x08,0x63,
0x20,0x08,0x43,0xA0,0x38,0x43,0xE0,0x60,
0x2C,0x60,0x40,0x18,0x30,0x40,0x18,0x10,
0x40,0x24,0x08,0x38,0x64,0x08,0x08,0x22,
0x08,0x38,0x11,0x11,0x40,0x11,0xE1,0x40,
0x11,0x61,0x40,0x61,0xE1,0x40,0x40,0x11,
0x38,0x40,0x10,0x78,0x40,0x10,0x40,0x40,
0xE0,0x40,0x43,0x00,0x40,0x7C,0x08,0x60,
0xCE,0x18,0x3F,0x87,0xEF,0x00,0x00,0x00,/*"拟",1*/
0x00,0x00,0x00,0x00,0x1F,0x80,0x00,0x20,
0x40,0x1F,0xE0,0x7F,0x60,0x00,0x00,0x40,
0x00,0x00,0x40,0x00,0x00,0x43,0xFF,0xFE,
0x44,0x00,0x02,0x44,0x00,0x02,0x3F,0xC0,
0x03,0x06,0x30,0x7C,0x04,0x10,0x7F,0x04,
0x10,0x00,0x08,0x10,0x00,0x18,0x20,0x00,
0x10,0x20,0x7F,0x20,0x00,0x7F,0x40,0x00,
0x00,0x40,0x00,0x00,0x40,0x80,0x00,0x41,
0x70,0x00,0x3E,0x0F,0xFF,0x00,0x00,0x00,/*"定",2*/
0x00,0x00,0x00,0x03,0xE1,0xF0,0x02,0x12,
0x18,0x04,0x1C,0x08,0x04,0x7C,0x0F,0x08,
0xC0,0x00,0x08,0x80,0x00,0x18,0x80,0x00,
0x10,0x80,0x00,0x30,0x5F,0xFF,0x20,0x31,
0xB0,0x20,0x20,0xA0,0x20,0x20,0xE0,0x20,
0x20,0x40,0x18,0x10,0x40,0x08,0x10,0x41,
0x08,0x18,0xC1,0x08,0x6F,0x81,0x08,0x80,
0x00,0x08,0x80,0x00,0x08,0x80,0x00,0x08,
0x80,0x00,0x07,0xFF,0xFF,0x00,0x00,0x00,/*"位",3*/
0x00,0x00,0x00,0x07,0x80,0x00,0x08,0x5F,
0xFE,0x08,0x60,0x03,0x08,0x60,0x01,0x38,
0x70,0x01,0x40,0x08,0x01,0x40,0x08,0x41,
0x40,0x08,0x41,0x40,0x50,0x41,0x31,0xB0,
0x41,0x13,0x08,0x41,0x23,0x04,0x41,0x41,
0x84,0x41,0x40,0xF8,0x43,0x40,0x70,0x44,
0x40,0x60,0x44,0x38,0x60,0xC0,0x08,0x60,
0xC0,0x08,0x40,0xC0,0x08,0x41,0x40,0x08,
0x63,0x60,0x07,0xFE,0x1F,0x00,0x00,0x00,/*"机",4*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0xC0,0x00,0x61,0xFF,0xF0,
0x7D,0x86,0x00,0x09,0xE6,0x40,0x01,0xFF,
0xE0,0xE1,0x60,0x60,0xFD,0x3F,0xC0,0x01,
0x20,0x40,0x01,0x3F,0xC0,0x1B,0x06,0x00,
0xF3,0x36,0xC0,0xEE,0x66,0x60,0x1C,0xE6,
0x78,0x00,0x1E,0x38,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"源",5*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x01,0x80,0x06,0x01,0x80,
0x06,0x01,0x80,0x3F,0xC1,0x88,0x0C,0x3F,
0xFC,0x0B,0x39,0xDC,0x1B,0x19,0x8C,0x3F,
0xD9,0x9C,0x03,0x1F,0xFC,0x67,0xD9,0x8C,
0xFF,0x39,0x8C,0x43,0x19,0x98,0x03,0x1F,
0xF8,0x03,0x18,0x18,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"轴",6*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x3F,0x9F,0xF8,
0x3B,0xFF,0xF0,0x18,0x98,0x00,0x18,0x98,
0x00,0x1F,0x9F,0xF0,0x16,0x18,0x30,0x37,
0xD8,0x30,0x36,0x1F,0xF0,0x36,0x18,0x10,
0x36,0xD8,0x00,0x3F,0xB8,0x00,0x7C,0x1F,
0xFE,0x60,0x1E,0x3E,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"距",7*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x18,0x00,0x00,0x38,0x00,
0x00,0x38,0x00,0x00,0x38,0x00,0x0F,0xFF,
0xF0,0x0C,0x38,0x00,0x00,0x3C,0x00,0x00,
0x36,0x00,0x00,0x63,0x00,0x00,0xE3,0xC0,
0x03,0xC1,0xF0,0x7F,0x80,0xFE,0x7F,0x00,
0x7E,0x1C,0x00,0x3C,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"大",8*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0x00,0x00,0x03,0x08,0xC0,
0x03,0x0F,0xE0,0x1F,0xCC,0xC0,0x3F,0xEC,
0xC0,0x07,0x0C,0xC0,0x07,0x0C,0xC0,0x0F,
0xCC,0xC0,0x1F,0x4C,0xC0,0x77,0x18,0xC0,
0x77,0x18,0xE0,0x07,0x78,0x7F,0x07,0x70,
0x3E,0x07,0x00,0x1C,0x02,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"机",9*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x60,0x00,0x07,0xC7,0xF0,
0x00,0xB6,0x30,0x01,0x96,0x20,0x03,0x36,
0x20,0x0C,0x67,0xE0,0x08,0x98,0x00,0x00,
0x18,0x00,0x7F,0xFF,0xFE,0x60,0x98,0x3C,
0x01,0xD9,0x80,0x03,0x99,0xC0,0x0E,0x18,
0xE0,0x18,0x18,0x10,0x00,0x18,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"架",10*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x06,0x00,0x10,0x0E,0x00,
0x38,0x3F,0xC0,0x3E,0xF1,0x80,0x01,0xFF,
0xF8,0x00,0xE3,0x80,0x00,0x63,0x80,0x03,
0x7F,0xF0,0x0E,0x63,0x80,0x3C,0x7F,0xF0,
0x78,0x7F,0xF0,0x30,0x63,0x80,0x00,0x7F,
0xFE,0x00,0x60,0x7C,0x00,0x60,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"准",11*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x38,0x00,0x00,0x38,0x00,
0x0F,0xFF,0xF0,0x18,0x38,0x00,0x03,0xFF,
0x80,0x07,0xE1,0xC0,0x03,0xFF,0xC0,0x03,
0x01,0xC0,0x03,0xFF,0x80,0x03,0x01,0x80,
0x03,0xFF,0x80,0x03,0x01,0x80,0x7F,0xFF,
0xFE,0x70,0x00,0xFE,0x00,0x00,0x0C,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"直",12*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x0C,0x44,0x00,0x0F,0xE7,0xF0,
0x08,0x64,0x10,0x0F,0xC7,0xF0,0x08,0x71,
0x00,0x0C,0x7F,0x80,0x0F,0xFF,0xF0,0x01,
0xCF,0x00,0x07,0x83,0xF0,0x7E,0x20,0x7E,
0x3F,0xEF,0xFE,0x0C,0x24,0x24,0x0C,0x66,
0x60,0x0F,0xE7,0xE0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"器",13*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0x80,0x60,0x01,0x80,0x70,
0x0F,0xF0,0x60,0x0E,0x30,0x60,0x0F,0xFF,
0xFE,0x06,0x3C,0x6E,0x07,0xF2,0x60,0x3F,
0xF7,0x60,0x3F,0xF1,0xE0,0x01,0xB0,0x60,
0x0F,0x30,0x60,0x7E,0x30,0x60,0x71,0xFD,
0xE0,0x00,0xE3,0xC0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"射",14*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0C,0x40,0x03,0x8C,0xC0,
0x03,0x0D,0x80,0x06,0x0C,0x60,0x0C,0xBF,
0xE0,0x39,0xFC,0x00,0x3F,0x0D,0xF0,0x04,
0x3F,0x80,0x09,0xE6,0x60,0x1E,0x07,0xC0,
0x00,0x67,0x80,0x07,0x8F,0xC0,0x3E,0x39,
0xFE,0x78,0x00,0xFC,0x00,0x00,0x18,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"线",15*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x04,0x10,0x3F,0xEF,0xF8,
0x33,0x68,0x38,0x1B,0x63,0xC0,0x1F,0xE1,
0xC0,0x13,0x6F,0xFE,0x1F,0xEF,0xFE,0x13,
0x20,0xCE,0x1F,0xE0,0xCC,0x3F,0xC0,0xC0,
0x03,0x30,0xC0,0x07,0xE0,0xC0,0x7F,0x21,
0xC0,0x70,0x1F,0xC0,0x00,0x07,0x80,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"野",16*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0x00,0x18,0x07,0x00,
0x1E,0x0C,0xC0,0x0F,0x18,0x70,0x00,0x70,
0x38,0x60,0xFF,0xEC,0x7C,0x47,0x80,0x3E,
0x00,0x00,0x00,0x3F,0xF8,0x00,0x30,0x38,
0x03,0x30,0x18,0x1E,0x38,0x38,0x1C,0x3F,
0xF8,0x08,0x18,0x30,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"治",17*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0E,0x00,0x07,0x0E,0x00,
0x07,0xFF,0xF8,0x03,0x06,0x00,0x33,0x7F,
0xF0,0x3F,0x40,0x70,0x03,0x07,0x80,0x3F,
0x03,0x00,0x13,0x03,0x00,0x06,0x01,0x80,
0x0E,0x01,0x80,0x3C,0x03,0x80,0x78,0x63,
0x00,0x30,0x3F,0x00,0x00,0x0C,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"疗",18*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x1C,0x00,0x04,0x1E,0x00,
0x07,0xFF,0xF8,0x06,0x0C,0x00,0x06,0x0C,
0x00,0x06,0xFF,0xE0,0x06,0xFF,0xE0,0x06,
0x1F,0x00,0x0C,0x3F,0x80,0x0C,0x7D,0xE0,
0x1D,0xEC,0x7E,0x7B,0xCC,0x3E,0x70,0x0C,
0x1C,0x00,0x0C,0x00,0x00,0x0C,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*"床",19*/
};
/*==============================================================================
;------------ 文本方式下汉字写入子程序 ------------
; 该汉字字模是根据清华蓬远公司提供的PICKHZ.EXE软件从计算机中提取的汉字 16x16
点阵字模, 其排列顺序是: 前16字节为汉字左半部分(自上而下), 后16字节为汉字右
半部分(自上而下). 下面提供的在文本方式下汉字的写入子程序可以在文本显示区任意
地方写入汉字. 程序如下:
==============================================================================*/
void PutWordInAlpha( void ) {
// return; // 首先建立CGRAM,
sed1335_write_command( Ovlay ); // 显示合成方式设置.代码0x5b
sed1335_write_data( 0x01 ); // 设置参数:显示3区为文本属性,二重xor合成
BuildCgram( 0,8 ); // 调建立CGRAM子程序设置写入字模量八个汉字模
// 开始调用显示cgram内所建立的汉字模
PutCdotInAlpha(0,8,0x80); // 调文本方式下汉字写入子程序,88H= "模"
PutCdotInAlpha(2,8,0x84); // 调文本方式下汉字写入子程序,8cH= "拟"
PutCdotInAlpha(4,8,0x88); // 调文本方式下汉字写入子程序,90H= "定"
PutCdotInAlpha(6,8,0x8c); // 调文本方式下汉字写入子程序,94H= "位"
PutCdotInAlpha(8,8,0x90); // 调文本方式下汉字写入子程序,90H= "机"
//PutCdotInAlpha(10,8,0x94); // 调文本方式下汉字写入子程序,84H= "试"
delay_ms(50);
}
/*============================================================================
汉字写入子程序(文本方式)
在文本方式下显示汉字, 首先要建立汉字Cgram, 要定义汉字代码.
在文本方式下写汉字需要写入4 个代码以组成一个汉字
每8字节组成一个点阵Ascii小区,4个小区组合成一个汉字所以需要4个代码
============================================================================*/
void PutCdotInAlpha( Uchar Ox, Uchar Oy, Uchar Cnumber ) {
Uint tempPtr;
Uchar tempCount;
tempPtr = (Uint)Oy * paraP9 + Ox;
sed1335_write_command( CsrDirD ); // CSRDIR 代码(下移)
for(tempCount=0;tempCount<2;tempCount++) {
sed1335_write_command( CsrW ); // CSRW 代码,光标指针设置
sed1335_write_data( (Uchar)(tempPtr &0xff) ); // 设置光标地址CSR
sed1335_write_data( tempPtr /256 + BasePart3 );
sed1335_write_command( mWrite ); // 代码0x42,数据写入指令
sed1335_write_data( Cnumber++ ); // 写入汉字代码
sed1335_write_data( Cnumber++ ); // 写入汉字代码
tempPtr++; // 修正光标地址
}
}
/*============================================
建立 cgram,将显示字符送入cgram中
入口参数约定:Base.... 起始
=============================================*/
void BuildCgram( Uchar Base, Uchar EndlCode ) {
Uchar iCgram,ii,ij;
sed1335_write_command( CgramAdr ); // CGRAMADR 代码
sed1335_write_data( 0 ); // 设置SAG=0C000H
sed1335_write_data( 0x70 ); // 汉字模在cgram中的编码0x70~0x73
sed1335_write_command( CsrW ); // CSRW 代码,光标指针设置
sed1335_write_data( 0 ); // 设置CSR=0C400H(字符代码=80H)
sed1335_write_data( 0x74 ); // 汉字模在cgram中的编码0x70~0x73
sed1335_write_command( CsrDirR ); // CSRDIR 代码
sed1335_write_command( mWrite ); // 代码0x42,数据写入指令
for (ii=0;ii<EndlCode;ii++){
for (ij=0;ij<2;ij++){
for (iCgram=0;iCgram<32;iCgram+=2)
sed1335_write_data( Cdotlib.Msk ); // 将制定的数据块写入 cgram
}
}
}
/*==============================================================================
; 汉字写入子程序(图形方式)。每次调用输出一个汉字
; 支持图形方式使用,完成汉字点阵码的输出。
; 携入参数: Ox,Oy....写入显示的左上角坐标,Ox是以字节单位,Oy以行扫描线单位
Ptr......汉字码,库内的排列编码,大型程序时请改用unsigned int类型
; 无返回数据。
==============================================================================*/
void PutCdotInGraph( Uint Ox, Uchar Oy, Uint Cnumber, Uchar DotWidth ) {
Uint tempPtr,Optr;
Uchar tempCount1,tempCount2,nByte;
Optr = (Uint)Oy * paraP9 + Ox;
nByte = DotWidth/8;
sed1335_write_command( CsrDirD ); // 自动右移。
tempPtr = (Uint)Cnumber * DotWidth*nByte;
for (tempCount1=0;tempCount1<nByte;tempCount1++) {
sed1335_write_command( CsrW ); // 光标定位指令
sed1335_write_data( (Uchar)(Optr &0xff) ); // 设置光标地址CSR
sed1335_write_data( (Uchar)(Optr /256 ) );
sed1335_write_command( mWrite ); // ram写指令
switch(DotWidth){
case 16: for(tempCount2=0;tempCount2<DotWidth;tempCount2++) {
sed1335_write_data( Cdotlib.Msk ); // 写入数据
}
break;
case 24: for(tempCount2=0;tempCount2<DotWidth;tempCount2++) {
sed1335_write_data( Cdot24lib ); // 写入数据
tempPtr += nByte;
}
break;
}
tempPtr = Cnumber * DotWidth*nByte + tempCount1 + 1;
Optr++;
}
}
//; 图形方式下汉字显示方法,x方向2字节一个汉字
void PutWordInGraph( void ) {
//x坐标以半个汉字定位左起0开始计算
//y坐标以像素行定位,顶部0开始计算
//汉字码以点阵码列表所对应32字节位单位进界,从0开始计算
PutCdotInGraph( 8, 30, 0, 16 ); // 调汉字写入子程序,0=设置汉字代码
PutCdotInGraph( 10, 30, 1, 16 ); // 调汉字写入子程序,1=设置汉字代码
PutCdotInGraph( 12, 30, 2, 16 ); // 调汉字写入子程序
PutCdotInGraph( 14, 30, 3, 16 ); // 调汉字写入子程序
PutCdotInGraph( 16, 30, 4, 16 ); // 调汉字写入子程序,0=设置汉字代码
PutCdotInGraph( 18, 30, 5, 16 ); // 调汉字写入子程序,1=设置汉字代码
delay_ms(50);
}
void PutWord24InGraph( void ) {
//x坐标以半个汉字定位左起0开始计算
//y坐标以像素行定位,顶部0开始计算
//汉字码以点阵码列表所对应32字节位单位进界,从0开始计算
PutCdotInGraph( 19, 7, 0, 24 ); // 调汉字写入子程序
PutCdotInGraph( 22, 6, 1, 24 ); // 调汉字写入子程序
PutCdotInGraph( 25, 6, 2, 24 ); // 调汉字写入子程序
PutCdotInGraph( 28, 6, 3, 24 ); // 调汉字写入子程序
PutCdotInGraph( 31, 6, 4, 24 ); // 调汉字写入子程序
delay_ms(50);
}
//---------------------------
// 读参数及显示数据子程序
Uchar ReadDataLcm( void ) {
return LcmRdataPort;
}
/*============================================================================
光标位定位,用于在1区图形方式下。
输入参数约定: x...水平方向字节单位坐标,即可以以半个汉字宽度设定水平坐标。
y...垂直方向以行线定位的坐标,可以定位到点单位。
左上角约定坐标为( 0, 0 )
============================================================================*/
void Locatexy(Uchar x,Uchar y, Uchar attribs) {
Uint temp;
temp = (Uint)y*paraP9+x;
if(attribs)temp += BasePart2*256; // 如果需要就指向第二区,加上第二区首地址
sed1335_write_command( CsrW ); // 光标Locate,定位
sed1335_write_data( (Uchar)(temp & 0xff) ); // 写入参数CSRL设置参数光标指针低8位
sed1335_write_data( (Uchar)(temp /256 ) ); // 写入参数CSRH设置参数光标指针高8位
}
/*=============================================================================
ASCII(16*32) 及 汉字(16*16) 混合字符串显示函数
输入参数约定:
x,y显示字符串的左上角xy坐标.x..8点一字节位置; y..一条扫描线定位
*ptr...字符串指针,本函数所指的是flash字串
att....显示区标志,0...第一区;1...第二区
返回参数:输出字串长度,留意汉字一个算两个
其它假定:调用时汉字必须在字库数组中已经存在,否则将输出不正确的结果
==============================================================================*/
Uchar dprintf32(Uchar x,Uchar y, char*ptr, Uchar att)
{
Ucharc1,c2;
Uchar i,j,uLen,uRow,uCol,temp,address;
Uintk;
uRow = x;
uCol = y;
uLen=0;
address=(Uchar)y*paraP9+x;
sed1335_write_command( CsrDirD ); // 光标移动方向定义:自动下移
Locatexy(uRow,uCol,att); //起点定位
while ( (Uchar)ptr!= 0 ){uLen++;}; //探测字串长度
i=0;
while(i<uLen)
{
c1 = ptr;
c2 = ptr;
//ascii字符与汉字内码的区别在于128做分界,大于界线的为汉字码
if(c1 <=128) // ASCII
{
if (c1 >= 0x10) {
sed1335_write_command( mWrite ); // 写数据(命令)
for(j=0;j<32;j++) sed1335_write_data( ASC_MSK32[(c1-0x30)*64 +j ]);
uRow++;
Locatexy(uRow,uCol,att);
sed1335_write_command( mWrite ); // 写数据(命令)
for(j=0;j<32;j++) sed1335_write_data( ASC_MSK32[(c1-0x30)*64 +j+32 ]);
}
uRow++; // 列数加1
Locatexy(uRow,uCol,att);
}
else // 中文
{
for(j=0;j<sizeof(Cdotlib)/sizeof(Cdotlib);j++) // 查找定位
{
if((c1 == Cdotlib.Index) && (c2 == Cdotlib.Index))
break;
}
for(k=0;k<2;k++) // 分16行输出
{
Locatexy(uRow+k,uCol,att);
sed1335_write_command( mWrite ); // 写数据(命令)
for(temp=0;temp<16;temp++) sed1335_write_data( Cdotlib.Msk);
}
uRow +=2; // 光标右移一大格
i++;
}
if(uRow >= 40) // 光标后移
{
uCol += 32; // Y坐标
uRow = 0; // X坐标
if( uCol >= 240 ) uCol = 0;
}
Locatexy((uRow+0),(uCol+0),att);
i++;
}
return uLen; //返回字串长度,汉字按2字节计算
}
//串口初始化//
void UART_init(void)
{UCR = BIT(RXCIE)| BIT(RXEN) |BIT(TXEN);
//UCSRB = BIT(RXCIE)| BIT(RXEN) |BIT(TXEN); //允许串口发送和接收,并响应接收完成中断
UBRR = 25; //时钟4Mhz,波特率9600
UCSRC = BIT(URSEL)|BIT(UCSZ1)|BIT(UCSZ0); //8位数据+1位stop位
}
//串口接收中断函数//
//收到0,发0:OK,显示REW=0
//收到1,发1:OK,显示REW=1
//收到>=2,发>=2:OK,显示REWM=2
#pragma interrupt_handler UART_rx: iv_USART_RX
void UART_rx(void)
{ Uchartemp;
temp = UDR;
switch (temp)
{
case '0': { LcmInition(); //液晶初始化
delay_ms(100);
dprintf32(12,96,"REW=0",0);
puts("0:ok"); //字符串发送函数
delay_ms(2000);
}break;
case '1': {LcmInition(); //液晶初始化
delay_ms(100);
dprintf32(12,96,"REW=1",0);
puts("1:ok");
delay_ms(2000);
}break;
default:
{LcmInition(); //液晶初始化
delay_ms(100);
dprintf32(12,96,"REWM=2",0);
puts(">=2:ok");
delay_ms(2000);
} }
RX_data = UDR;
if (RX_data=='s')
{
RX_data=RX_data;
RX_counter=0;
}
RX_counter++; //接收的字节数计数
}
void puts(unsigned char *s) //字符串发送函数
{
while (*s)
{
putchar(*s);
s++;
}
}
void putchar(unsigned char c) //字符输出函数
{
while (!(UCSRA&(1 << UDRE))); //判断上次发送有没有完成
UDR = c;
}
//循环显示函数//
void LOOP_DISP(void)
{ //LcmInition();
dprintf32(4,0, "MD500_<",0); // 图形方式下中英文混合字符串的显示
PutWord24InGraph();
PutCdotInGraph( 2, 36, 5, 24 ); // 调汉字写入子程序
PutCdotInGraph( 5, 36, 6, 24 ); // 调汉字写入子程序
PutCdotInGraph( 8, 36, 7, 24 ); // 调汉字写入子程序
dprintf32(12,32, "SAD=1300^cm",0); // 图形方式下中英文混合字符串的显示
PutCdotInGraph( 2, 67, 8, 24 ); // 调汉字写入子程序
PutCdotInGraph( 5, 67, 9, 24 ); // 调汉字写入子程序
PutCdotInGraph( 8, 67, 10, 24 ); // 调汉字写入子程序
dprintf32(12,64, "^G^=^360`",0); // `=度,^=空格,-=_,图形方式下中英文混合字符串的显示
PutCdotInGraph( 2, 99, 11, 24 ); // 调汉字写入子程序
PutCdotInGraph( 5, 99, 12, 24 ); // 调汉字写入子程序
PutCdotInGraph( 8, 99, 13, 24 ); // 调汉字写入子程序
dprintf32(12,96, "^C^=^125`",0); // 图形方式下中英文混合字符串的显示
PutCdotInGraph( 2, 145, 14, 24 ); // 调汉字写入子程序
PutCdotInGraph( 5, 145, 15, 24 ); // 调汉字写入子程序
PutCdotInGraph( 8, 145, 16, 24 ); // 调汉字写入子程序
dprintf32(12,128,"^X^=^400^mm",0); // 图形方式下中英文混合字符串的显示
dprintf32(12,160,"^Y^=^400^mm",0); // 图形方式下中英文混合字符串的显示
PutCdotInGraph( 2, 199, 17, 24 ); // 调汉字写入子程序
PutCdotInGraph( 5, 199, 18, 24 ); // 调汉字写入子程序
PutCdotInGraph( 8, 199, 19, 24 ); // 调汉字写入子程序
dprintf32(12,196,"TH^=^^35^cm",0); // 图形方式下中英文混合字符串的显示
delay_ms(150);
}
void main(void)
{delay_ms(100);
SelfInit(); //CPU初始化
delay_ms(100);
LcmInition(); //液晶初始化
delay_ms(100);
UART_init(); //串口初始化//
SEI(); //开中断
LOOP_DISP();
while(1)
{ //LOOP_DISP();
//puts("ok"); //字符串发送函数
//delay_ms(100);
LOOP_DISP();
puts("no-date"); //循环发送N:ok
}
}
-----此内容被cyk8于2005-09-30,16:18:59编辑过 能不能介绍一下你的思路(这个比较过分),看程序比较方便,
跟我看了一些例子比较,你的思路独特
问两个问题:
1、为什么用通讯
2、跟双龙的lcd库函数有什么联系? 答zhzzh18 小章
1,通信与你无关
2,跟双龙的lcd库函数也无关
3,该程序是我用作通信测试,sed1335的显示程序只是里面一段,抱歉没时间整理给你
4,其实这个程序原来是晓奇大峡用在C51里,我移植过来的,有些东西也没有真正吃透,好在原 程序的注解比较详细,可以帮助你理解.
5.也可以看本网站的范例sed1335(也是我发的),比较详细.
-----此内容被cyk8于2005-09-30,19:28:44编辑过 请问怎样才能显示图片?全屏显示(显示地图)
楼上大侠给个思路? cyk8 发表于 2005-9-30 16:13 static/image/common/back.gif
用meg16l的sed1335,仅供zhzzh18 小章参考
ICCAVR-MEGA16L-UART-DEMO显示程序 2.0
...
问下你玩过EL160.120.39这款屏幕吗?也是用SED1335控制器控制的,只是我现在总是不能将SED1335显示缓存清零,导致屏幕一上电就有很多乱码,但是光标是显示的,合成方式也是正常的,就是不显示数据。
页:
[1]