Haz una pregunta
  Foros de Electrónica » Diseño digital » Microcontroladores y sistemas embebidos
Foros Registrarse ¿Olvidaste tu contraseña?

Temas similares

22/10/2010 #41

Avatar de dragondgold

Respuesta: GLCD o LCD GRAFICOS - Resumen de datos y herramientas
Alguno sabe que controladora lleva el LCD Gráfico WO12864A de la marca Winstar y si se lo puedo controlar con las librerías que trae incorporadas el CCS?

gracias y saludos!!
09/11/2010 #42


Hola sonemati. mira yo soy medio nuevo en esto de los lcd tambien pero si se algo. si ya manejaste los 2x16 o 2x20, bueno ya tienes bastante idea y la base, pero yo creo que antes de trabajar con los glcd color, deberias de trabajar con los dispays graficos monocromo, por ejemplo un 128x64 monocromo.
si lo manejas a este GLCD te sera mas facil comprender los GLCD color. pero no un salto tan brusco desde y LCD de caracteres.


por otro lado dejo un mensaje a todos. no se alejen del foro, ya que hacer rato no retoman el tema, jeje estaria lindo poder comprender bien varias cositas.

yo estoy trabajando con un GLCD manejado con un microcontrolador HC908 de motorola, pero me gustaria ponerle un T6963c, pero nose bien como hacerlo, y el otro tema mio es que no lo consigo aqui en mi provincia. yo soy de Tucuman Argentina. otra cosa que quisiera saber hacerca del t6963c es si como tengo que hacer para trabajar por ejemplo con un GLCD de 320x320. desde ya gracias a todos por su colaboracion.
09/11/2010 #43

Avatar de danrod

.....mira compañero ..la Toshiba T6963c.... es de fácil manejo... una vez entendí las rutinas que muestra SHERAR en este post..pude manejarla completamente... descargalas y puebalas....Te recomiendo tambien que revies un documento en español ..un tutorial de esta pantalla que esta en este mismo post..
SALUDOS
23/03/2011 #44


Hola que tal ps yo tambien ando viendo sobre las glcd y espero q alguien me pueda ayudar en como controlarlar mediante un fpga (nexys 2 o basys) y si usa librerias o algo asi para poder programarla atraves de este lenguaje, espero que me puedan ayudar
25/03/2011 #45

Avatar de COSMICO

Saludo amigos.
Hasta hoy me toco lcd grafico, y es de referencia YB12864ZB y controlador, ST 7920
Alguien sabe con que otro controlador es compatible este, y una libreria para usarlo
estoy loco con esto, pero recibo sugerencias.
Gracais y buena noche.
26/03/2011 #46

Avatar de asherar

COSMICO dijo: Ver Mensaje
Saludo amigos.
Hasta hoy me toco lcd grafico, y es de referencia YB12864ZB y controlador, ST 7920
Alguien sabe con que otro controlador es compatible este, y una libreria para usarlo
estoy loco con esto, pero recibo sugerencias.
Gracais y buena noche.
Dejame adivinar: es de 128 x 64 pixels

Buscando en Google se resuelve tu problema.
En un segundo encontré unos cuantos documentos, uno de ellos ESTE, de SiTronix.
26/03/2011 #47

Avatar de COSMICO

Gracias asherar.
Pero necesito mas especificamente saber si es compatible con el chip ks0108
para poder usar unas librerias del ccs c
26/03/2011 #48

Avatar de asherar

Fijate comparando los pinouts de ambas. El pinout al que me refiero es el del YB12864ZB y está ACÁ.
Luego, adaptar las bibliotecas es cosa de un par de tardes.
Si necesitás, yo del KS0108 creo que tengo todo lo necesario.

El doc que te enlacé antes se trata del circuito interno, para conectar el IC al LCD.
26/03/2011 #49

Avatar de COSMICO

ok gracias amigo, seria de gran ayuda la libreria.
26/03/2011 #50

Avatar de asherar

COSMICO dijo: Ver Mensaje
ok gracias amigo, seria de gran ayuda la libreria.
Búscala en este tema: http://www.forosdeelectronica.com/f2...-t6963c-11700/.

Acá hay algo del ST7920, pero todavía no las han podido hacer andar:
http://www.micropic.es/smf/index.php?topic=827.0

Transcribo parte del primer mensaje:
Hola que tal hace poco me he echo de un glcd, azul con letras blancas muy bonito la verdad, el lcd por la parte de atras esta rotulado como JHD529M1 y en otro lado tiene 12864F por la poca informacion que he encontrado al parecer cuenta con un controlador ST7920 segun el sig documento http://www.willar.com/upload/shop/JHD529M1.pdf.

el problema es que no he podido hacerlo funcionar y no he encontrado mas informacion por ningun lado sobre el uso de esta glcd me he baxado en el data del st7920 y modificando una libreria para el su control pero nomas no kiere.

aka les dejo lo k llevo

/************************************************** **
libreria para control de glcd con controlador
st7920 de 128x64
************************************************** ***/
#define MIPS 30

//definimos los bits de control
#define rw LATDbits.LATD2
#define di LATCbits.LATC14
#define e LATCbits.LATC13
#define rst LATFbits.LATF5

//definimos los bits de datos
#define b0 LATEbits.LATE0
#define b1 LATEbits.LATE1
#define b2 LATEbits.LATE2
#define b3 LATEbits.LATE3
#define b4 LATEbits.LATE4
#define b5 LATEbits.LATE5
#define b6 LATEbits.LATE8
#define b7 LATFbits.LATF0

//varibles de sistema
#define DI_FUNCTION 0
#define DI_DATA 1
#define RW_WRITE 0
#define RW_READ 1
#define nop()


typedef union data {

int reg;
struct {
unsigned d0 :1;
unsigned d1 :1;
unsigned d2 :1;
unsigned d3 :1;
unsigned d4 :1;
unsigned d5 :1;
unsigned d6 :1;
unsigned d7 :1;
};

} data ;

data DATA;

typedef union
{
int word;
char byte[2];
} Dots;

typedef struct
{
int refrescar :1;
Dots dots[32][12]; // Diemensiones máximas del display (x,y) = (191,31).
} GDRAM; // El punto (0,0) corresponde a la esquina superior izquierda.

GDRAM gdram;

void set_output(){
TRISE=0x00;
TRISF=0x00;
TRISC=0x00;
TRISD=0x00;
}

void set_input()
{
TRISE=0xff;
TRISFbits.TRISF0=0x01;
}

/****************************************/
/* DelayUs Microsegundos */
/****************************************/
void DelayUs(int v) // 40 MIPS
{
asm ("REPEAT #%0\n NOP" :: "i" (MIPS-16));
while ((v--)!=1) {
asm ("REPEAT #%0\n NOP" :: "i" (MIPS-7));
};
}

/****************************************/
/* DelayMs MiliSegundos */
/****************************************/
void DelayMs(int v)
{
//while (v != 0 ){ DelayUs(1000); v--;}
asm ("REPEAT #%0\n NOP" :: "i" (MIPS*250-5));
asm ("REPEAT #%0\n NOP" :: "i" (MIPS*250-5));
asm ("REPEAT #%0\n NOP" :: "i" (MIPS*250-6));
asm ("REPEAT #%0\n NOP" :: "i" (MIPS*250-6));
while ((v--)!=1) {
asm ("REPEAT #%0\n NOP" :: "i" (MIPS*250-4));
asm ("REPEAT #%0\n NOP" :: "i" (MIPS*250-3));
asm ("REPEAT #%0\n NOP" :: "i" (MIPS*250-3));
asm ("REPEAT #%0\n NOP" :: "i" (MIPS*250-3));
};
}

void put_data(data Data)
{
b0=Data.d0;
b1=Data.d1;
b2=Data.d2;
b3=Data.d3;
b4=Data.d4;
b5=Data.d5;
b6=Data.d6;
b7=Data.d7;
}

void glcd_readByte (char address,data Data)
{
set_input(); // Set PORTB to input
di = address;
nop();
rw = RW_READ; // Set for reading
nop();
e = 1; // Pulse the enable pin
nop();
Data.d0 = b0; // Get the data from the display's output register
Data.d1 = b1; // Get the data from the display's output register
Data.d2 = b2; // Get the data from the display's output register
Data.d3 = b3; // Get the data from the display's output register
Data.d4 = b4; // Get the data from the display's output register
Data.d5 = b5; // Get the data from the display's output register
Data.d6 = b6; // Get the data from the display's output register
Data.d7 = b7; // Get the data from the display's output register
e = 0;
}

void glcd_writeByte (char address, data Data)
{
//while ( bit_test (glcd_readByte(RS_FUNCTION), 7) ) ; // Whait Busy Flag = FALSE!
set_output(); // Set PORTB to output
di = address;
DelayUs(100);
rw = RW_WRITE; // Set for writing
DelayUs(100);
e = 0;
put_data(Data); // Put the data on the port
DelayUs(100);
e = 1; // Pulse the enable pin
DelayUs(100);
DelayMs(10);
e = 0;
}

void glcd_update ()
{
int v, h;

if (gdram.refrescar)
{
for (v=0; v<32; v++)
{
DATA.reg=0x80 | v;
glcd_writeByte (DI_FUNCTION,DATA); // Set Vertical Address.
DATA.reg=0x80 | 0;
glcd_writeByte (DI_FUNCTION,DATA ); // Set Horizontal Address.

for (h=0; h<12; h++)
{
DATA.reg=gdram.dots[v][h].byte[1];
glcd_writeByte (DI_DATA,DATA ); // Write High Byte.
DATA.reg=gdram.dots[v][h].byte[0];
glcd_writeByte (DI_DATA, DATA); // Write Low Byte.
}
}
gdram.refrescar = 0;
}
}

void glcd_fillScreen (char color)
{
int v, h;
int d;
d = (color == 1 ? 0xFFFFL : 0x0000L);
for (v=0; v<32; v++)
{
for (h=0; h<12; h++)
{
gdram.dots[v][h].word = d;
}
}
gdram.refrescar = 1;
}

void GLCD_Init(){
set_output();
rst=1;
di=DI_FUNCTION;
rw=RW_WRITE;
e=0;
rst=0;
DelayUs(10);
rst=1;
DelayMs(50);
DATA.reg=0x30;
glcd_writeByte (DI_FUNCTION, DATA); // Specify 8 bit interface and basic instruction set.
DelayMs (115);
glcd_writeByte (DI_FUNCTION, DATA); // Specify 8 bit interface and basic instruction set.
DelayMs (100);
DATA.reg=0x0F; //0c
glcd_writeByte (DI_FUNCTION, DATA); // Specify Display on, Cursor off and Blink off.
DelayMs (100);
DATA.reg=0x01;
glcd_writeByte (DI_FUNCTION, DATA); // Display clear.
DelayMs (100);
DATA.reg=0x06;
glcd_writeByte (DI_FUNCTION, DATA); // AC Increase (cursor move right), don't shift the display.
DelayMs (100);
/*DATA.reg=0x34;
glcd_writeByte (DI_FUNCTION, DATA); // Select extended instruction set.
DelayUs (72);
DATA.reg=0x36;
glcd_writeByte (DI_FUNCTION, DATA); // Graphic display ON.*/

/*glcd_fillScreen (1);
glcd_update (); */

DATA.reg=0x48;
glcd_writeByte(DI_DATA,DATA);
DelayMs(100);
}
Acá hay más código "encontrado por ahí":

/*************************************************
名 称:LCD12864_ST7920并行测试程序
试验功能:测试基于ST7920控制芯片的LCD12864的显示
并行方式连接;晶振11.0592M
编 写:JiangX.net
*************************************************/

#include <reg52.h>
#include <ziku.h>
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int //宏定义

/*****LCD接口定义*****/
sbit LCD_RS = P2^0; //1:输入数据 ;0:输入命令
sbit LCD_RW = P2^1; //1:读数据 0:写数据
sbit LCD_EN = P2^2; //LCM使能端
sbit LCD_PSB = P2^3; //串并口选择 1:并口模式; 0:串口模式;
#define LCD_DATA P0 //LCD总线端口

/*****LCD功能初始化指令*****/
#define CLEAR_SCREEN 0x01 //清屏指令:清屏且AC值为00H
#define AC_INIT 0x02 //AC设置为00H。且游标移到原点位置
#define CURSE_ADD 0x06 //设定游标移到方向及图像整体移动方向(默认游标右移,图像整体不动)
#define FUN_MODE 0x30 //工作模式:8位基本指令集
#define DISPLAY_ON 0x0c //显示开,显示游标,且游标位置反白
#define DISPLAY_OFF 0x08 //显示关
#define CURSE_DIR 0x14 //游标向右移动:AC=AC+1
#define SET_CG_AC 0x40 //设置AC,范围为:00H~3FH
#define SET_DD_AC 0x80

/*****汉字地址表*****/
uchar code addr_tab[]={ //便于根据汉字坐标求出地址
0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,//第一行汉字位置
0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,//第二行汉字位置
0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,//第三行汉字位置
0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,//第四行汉字位置
};

/*****nms)延时子程序*****/
void delayms(uint t) //约延时nms
{
uint i;
while(t--)
{
for(i=0;i<125;i++);
}
}

/*****等待LCD*****/
void WaitBusy(void) //延时一小段时间,等待LCD空闲
{
uchar i=5;
while(i--);
}

/*****写指令代码*****/
void Lcd_WriteCmd(uchar cmdcode)
{
LCD_RS = 0;
LCD_RW = 0;
LCD_EN = 1;
WaitBusy();
LCD_DATA = cmdcode;
LCD_EN = 0;
}

/*****写数据*****/
void Lcd_WriteData(uchar dispdata)
{
LCD_RS = 1;
LCD_RW = 0;
LCD_EN = 1;
WaitBusy();
LCD_DATA = dispdata;
LCD_EN = 0;
}

/*****初始化LCD*****/
void Lcd_Init()
{
LCD_PSB = 1;
delayms(50);
Lcd_WriteCmd(0x30); //选择基本指令集
delayms(1);
Lcd_WriteCmd(0x30); //选择8bit数据流
delayms(1);
Lcd_WriteCmd(0x0c); //开显示(无游标、不反白)
delayms(1);
Lcd_WriteCmd(0x01); //清除显示,并且设定地址指针为00H
delayms(20);
}

/*****显示汉字*****/
void hanzi_Disp(uchar x,uchar y,uchar code *s)
{ //xy为汉字坐标
Lcd_WriteCmd(addr_tab[8*x+y]); //写地址
while(*s>0)
{
Lcd_WriteData(*s); //写数据
s++;
}
}

/*****显示图片(显示Gdram内容)*****/
/*绘图显示的步骤
1 关闭绘图显示功能
2 先将垂直的坐标(Y)写入绘图RAM地址
3 再将水平的位元组坐标(X)写入绘图RAM地址
4 D15D8写入RAM
5 D7D0写入到RAM
6 打开绘图显示功能*/

//图片取模方式:横向取模,字节正序
void pic_Disp(uchar *pic) //显示Gdram内容(显示图片)
{
uchar x,y,i;
for(i=0;i<9;i=i+8)
for(y=0;y<32;y++)
{
for(x=0;x<8;x++)
{
Lcd_WriteCmd(0x36); //扩充指令,开绘图显示
Lcd_WriteCmd(0x80+y); //行地址
Lcd_WriteCmd(0x80+x+i); //列地址
Lcd_WriteData(*pic++); //写数据 D15D8
Lcd_WriteData(*pic++); //写数据 D7D0
Lcd_WriteCmd(0x30);
}
}
}

/*****整屏显示竖条*****/
//i=0时显示上面128×32,i=8时显示下面128×32
//i=0时显示上面128×32,i=8时显示下面128×32
void LcdFill_Vertical()
{
uchar x,y,i;
for(i=0;i<9;i=i+8)
for(y=0;y<0x20;y++)
{
for(x=0;x<8;x++)
{
Lcd_WriteCmd(0x36); //扩充指令 绘图显示
Lcd_WriteCmd(y+0x80); //行地址
Lcd_WriteCmd(x+0x80+i); //列地址
Lcd_WriteData(0x55); //写数据 D15D8
Lcd_WriteData(0x55); //写数据 D7D0
Lcd_WriteCmd(0x30);
}
}
}

/*****整屏显示横条*****/
void LcdFill_Level()
{
uchar x,y,i;
uchar k;
for(i=0;i<9;i+=8)
for(y=0;y<0x20;y++)
{
if((y%2)==1) k=0xff;
else k=0;
for(x=0;x<8;x++)
{
Lcd_WriteCmd(0x36); //扩充指令 绘图显示
Lcd_WriteCmd(y+0x80); //行地址
Lcd_WriteCmd(x+0x80+i); //列地址
Lcd_WriteData(k);
Lcd_WriteData(k);
Lcd_WriteCmd(0x30);
}
}
}

/*****整屏充满亮点或暗点*****/
//i=0时显示上面128×32,i=8时显示下面128×32
//i=0时显示上面128×32,i=8时显示下面128×32
void Lcd_Fill(uchar test)
{
uchar x,y,i;
for(i=0;i<9;i=i+8)
for(y=0;y<0x20;y++)
{
for(x=0;x<8;x++)
{
Lcd_WriteCmd(0x36); //扩充指令 绘图显示
Lcd_WriteCmd(y+0x80); //行地址
Lcd_WriteCmd(x+0x80+i); //列地址
Lcd_WriteData(test); //写数据 D15D8
Lcd_WriteData(test); //写数据 D7D0
Lcd_WriteCmd(0x30);
}
}
}

/*****主函数*****/
void main(void)
{
Lcd_Init();
while(1)
{
Lcd_Init();
hanzi_Disp(0,0,"ST7920型液晶模块
");
hanzi_Disp(1,1,"并行测试程序
");
hanzi_Disp(2,0,"
www.JiangX.net");
hanzi_Disp(3,3,"");
delayms(2000);

Lcd_Init();
// Lcd_Fill(0xff);
hanzi_Disp(1,2,"坏点检测");
delayms(500);

Lcd_Init();
Lcd_Fill(0xff);
delayms(1500);

Lcd_Init();
LcdFill_Vertical();
delayms(750);

Lcd_Init();
LcdFill_Level();
delayms(750);

Lcd_Init();
hanzi_Disp(1,2,"显示汉字");
delayms(500);

Lcd_Init();
hanzi_Disp(0,0,tangshi);
delayms(1500);

Lcd_Init();
hanzi_Disp(1,2,"显示图片");
delayms(500);

Lcd_Init();
pic_Disp(LCDsheji);
delayms(1000);

Lcd_Init();
pic_Disp(rmb);
delayms(1000);

Lcd_Init();
pic_Disp(qiche);
delayms(1000);

Lcd_Init();
pic_Disp(gongji);
delayms(1000);

Lcd_Fill(0x00); //清显示RAM
delayms(500);
}
}

以下是字库头文件:ziku.h
unsigned char code tangshi[]={"黄河远上白云间,羌笛何须怨杨柳,一片孤城万仞山。春风不度玉门关。"};
//图片取模方式:横向取模,字节正序
unsigned char code rmb[1024]=
{

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x08,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x07,0xFF,0x00,0x04,0xE7,0x80,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x1F,0xFF,0xC0,0x05,0x34,0xC0,
0x01,0xF8,0x00,0x38,0x7C,0x00,0x70,0x48,0x6C,0x01, 0xFF,0xFF,0xE0,0x07,0x1C,0x40,
0x03,0xDD,0x00,0x3E,0x7C,0x30,0x70,0xF8,0x7C,0x0F, 0xFF,0xFF,0xF0,0x07,0x1C,0x40,
0x07,0x76,0x00,0x28,0x58,0x5C,0x70,0x50,0x48,0x1F, 0xF0,0xFF,0xF8,0x05,0xF7,0x80,
0x07,0xFE,0x00,0x08,0x6C,0x06,0x78,0x5C,0x18,0x1F, 0xC0,0x1F,0xFE,0x04,0xEF,0x00,
0x03,0xFE,0x00,0x08,0x04,0x00,0x0C,0x10,0x00,0x3F, 0x80,0x07,0xFF,0x00,0x36,0x00,
0x07,0xCE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F, 0x80,0x07,0xFF,0x00,0xFF,0x00,
0x05,0x8F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F, 0x00,0x01,0xFF,0x80,0xFF,0x00,
0x02,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F, 0x00,0x03,0xFF,0x80,0xFF,0x80,
0x01,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3E, 0x00,0x03,0xFF,0x80,0xFF,0x80,
0x01,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C, 0x00,0x03,0xFF,0x80,0xFF,0x80,
0x01,0xF4,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x3C, 0x00,0x03,0xFF,0x81,0xFF,0x80,
0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x1F, 0x83,0x81,0xFF,0x80,0xF7,0x80,
0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x18, 0x43,0x01,0xFF,0x80,0xF7,0x00,
0x00,0x00,0x00,0x00,0x08,0x3E,0x01,0xF0,0x00,0x0C, 0x23,0x01,0xFF,0x00,0x7F,0x00,
0x00,0x00,0x00,0x00,0x7C,0xFD,0x87,0x7C,0x00,0x1F, 0x23,0xE1,0xFE,0x00,0x7F,0x00,
0x00,0x00,0x00,0x00,0x19,0xC3,0x86,0x1E,0x00,0x16, 0x23,0x20,0xF6,0x00,0x32,0x80,
0x00,0x00,0x00,0x00,0x19,0x81,0xCE,0x0F,0x00,0x1C, 0x61,0x00,0xEA,0x00,0x5E,0x00,
0x00,0x00,0x00,0x00,0x1B,0x80,0xFC,0x03,0x00,0x10, 0xC0,0x00,0xC0,0x00,0x08,0x00,
0x00,0x00,0x00,0x00,0x1D,0x00,0xFC,0x07,0x00,0x11, 0xC0,0x01,0xF0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x19,0x80,0xFC,0x07,0x00,0x18, 0x00,0x01,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x1F,0x80,0xFC,0x03,0x00,0x18, 0x00,0x03,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x1B,0x40,0xDE,0x06,0x00,0x18, 0xD8,0x01,0xE4,0x00,0x02,0x00,
0x00,0x00,0x00,0x00,0x19,0xE1,0xCF,0x0E,0x00,0x18, 0xE0,0x03,0xC4,0x00,0x03,0x80,
0x00,0x00,0x00,0x00,0x18,0xFF,0x97,0xFC,0x00,0x18, 0x80,0x07,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x3C,0x7F,0x03,0xF8,0x00,0x0D, 0x00,0x07,0xC0,0x00,0x03,0x80,
0x00,0x00,0x00,0x00,0x7E,0x38,0x00,0xE0,0x00,0x0D, 0xFC,0x03,0xF0,0x00,0x00,0x80,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C, 0xFE,0x43,0xE0,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0xD8,0x00,0x00,0x0C, 0xE0,0x03,0xE0,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x3E,0x7E,0x00,0x00,0x04, 0xF0,0x03,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xF6,0x6F,0x00,0x00,0x07, 0x80,0x07,0xF0,0x00,0x03,0x80,
0x00,0x00,0x00,0x00,0x06,0xD7,0xD9,0xE0,0x00,0x07, 0x80,0x07,0xD0,0x00,0x03,0x00,
0x00,0x00,0x00,0x00,0x0C,0xA9,0x32,0xE0,0x00,0x01, 0x80,0x0F,0xD8,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x1A,0x3A,0x80,0x00,0x01, 0xC0,0x1F,0xB8,0x00,0x03,0x80,
0x00,0x00,0x00,0x00,0x07,0x52,0x48,0xC0,0x00,0x00, 0xFF,0xFF,0x7C,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x18,0x2A,0x58,0x04,0x00,0x00, 0xFD,0xFC,0xFF,0x00,0x03,0x80,
0x00,0x00,0x00,0x00,0x1B,0x6A,0x78,0x44,0x00,0x01, 0xFB,0xF9,0xFF,0xC0,0x00,0x00,
0x00,0x00,0x00,0x00,0x20,0x19,0x9F,0x54,0x00,0x03, 0xBD,0x07,0xFF,0xF0,0x03,0x80,
0x00,0x00,0x00,0x00,0x22,0xB5,0x80,0x9E,0x00,0x1F, 0x90,0x1F,0xFF,0xFC,0x01,0x00,
0x00,0x00,0x00,0x00,0x28,0xC6,0xB3,0x16,0x00,0x7F, 0xC8,0x7F,0xFF,0xFF,0x00,0x00,
0x00,0x00,0x00,0x00,0x65,0xA0,0x72,0xF2,0x01,0xFF, 0xF1,0xFF,0xFF,0xFF,0x83,0x80,
0x00,0x00,0x00,0x00,0x66,0x22,0x13,0xB2,0x07,0xFF, 0xFB,0xF7,0xFF,0xFE,0x80,0x00,
0x00,0x00,0x00,0x00,0x78,0x86,0xB3,0x8E,0x00,0xFF, 0xFF,0xFF,0xFF,0xF8,0x07,0x80,
0x04,0xA1,0x48,0x50,0x22,0xD0,0x44,0xD4,0x00,0xFF, 0xF6,0xFE,0xFF,0xC0,0x00,0x00,
0x00,0xAC,0x3A,0x50,0x1D,0xC8,0x01,0x9C,0x00,0xBF, 0xF6,0xFF,0xFF,0x80,0x00,0x00,
0x04,0xA4,0x02,0x90,0x18,0x39,0x96,0x2C,0x00,0x6F, 0xEE,0xF7,0xFD,0x08,0x06,0x80,
0x00,0x00,0x00,0x00,0x1B,0xEA,0x5B,0x58,0x00,0x69, 0xFF,0x1F,0xFC,0x00,0x03,0x00,
0x00,0x00,0x00,0x00,0x06,0x5B,0xB9,0x20,0x00,0x3F, 0xF3,0x7F,0x71,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x4E,0xB1,0x30,0x00,0x0F, 0x70,0x7F,0x40,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x03,0xE5,0x91,0x40,0x00,0x03, 0x40,0xF0,0xC0,0x30,0x31,0x80,
0x00,0x01,0x99,0xC0,0x00,0x1B,0x7D,0x00,0x00,0x02, 0x61,0xC0,0x00,0x00,0x21,0x80,
0x08,0x00,0xA5,0x20,0x00,0x76,0x2E,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0xF7,0x80,
0x00,0x00,0xA5,0x20,0x00,0x06,0xF0,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xE7,0x80,
0x04,0x00,0xB9,0x40,0x00,0x00,0x80,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00 //人民币图片

};
unsigned char code gongji[1024]=
{

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x80,0x00,0x0F, 0xFF,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x0C,0x43,0x01,0x80,0x00,0x7F, 0xFF,0xF0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x19,0xFF,0x07,0x00,0x07,0xFF, 0xFF,0xFE,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x3F,0xFC,0x1E,0x00,0x1F,0xFF, 0xFF,0xFF,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xBF,0xFF,0xFC,0x00,0x7F,0xFC, 0x00,0x7F,0xC0,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xFF,0xFF,0xF0,0x00,0xFF,0xC0, 0x00,0x0F,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xFF,0xFF,0xE0,0x03,0xFF,0xFF, 0xFC,0x01,0xF0,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xDF,0xFF,0xC0,0x07,0xFF,0xFF, 0xFF,0x80,0xF0,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0xFF,0xFF,0x00,0x0F,0xFF,0xFF, 0xFF,0xE0,0x38,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0xFF,0xF8,0x00,0x1F,0xFF,0xF0, 0x03,0xF8,0x38,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0xFF,0xE0,0x00,0x3F,0xFF,0xFF, 0xC0,0x7C,0x18,0x00,0x00,0x00,
0x00,0x00,0x00,0x04,0x7F,0xF0,0x00,0x3F,0xFF,0xFF, 0xF8,0x1E,0x08,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xFF,0xF8,0x00,0x7F,0xFF,0xFF, 0xFE,0x0F,0x08,0x00,0x00,0x00,
0x00,0x00,0x00,0x0F,0xFF,0xFC,0x00,0xFF,0xFF,0xFF, 0xFF,0x87,0x08,0x00,0x00,0x00,
0x00,0x00,0x00,0x1F,0xFF,0xFE,0x00,0xFF,0xFF,0xFF, 0xFF,0x83,0x88,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0xFF,0xFE,0x01,0xFF,0xFF,0xFF, 0xFF,0xC3,0x88,0x00,0x00,0x00,
0x00,0x00,0x00,0x7F,0xFF,0xFE,0x01,0xFF,0xFF,0xFF, 0xFF,0xE1,0x88,0x00,0x00,0x00,
0x00,0x00,0x00,0xFF,0xFF,0xFE,0x03,0xFF,0xFF,0xFF, 0xFF,0xE1,0x88,0x00,0x00,0x00,
0x00,0x00,0x01,0xFF,0xFF,0xFE,0x03,0xFF,0xFF,0xFF, 0xFF,0xF1,0x88,0x00,0x00,0x00,
0x00,0x00,0x01,0xFF,0xFF,0xFE,0x03,0xFF,0xFF,0xFF, 0xFF,0xF3,0x08,0x00,0x00,0x00,
0x00,0x00,0x01,0xFF,0xFF,0xFF,0x07,0xFF,0xFF,0xFF, 0xFF,0xF2,0x10,0x00,0x00,0x00,
0x00,0x00,0x01,0xFF,0xFF,0xFF,0x8F,0xFF,0xFF,0xFF, 0xFF,0xF0,0x20,0x00,0x00,0x00,
0x00,0x00,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xF0,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0x70,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE, 0xFF,0x70,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE, 0xFF,0x70,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0x7F,0xFF, 0x7F,0x20,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xBF,0xFF, 0x7F,0x20,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x7F,0xFF,0xFF,0xFF,0xFF,0xDF,0xFF, 0x7E,0x20,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0xFF,0xFF,0xFF,0xFF,0xDF,0xFF, 0x3E,0x40,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x1F,0xFF,0xFF,0xFF,0xFF,0xCF,0xFF, 0x3C,0x40,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0F,0xFF,0xFF,0xFF,0xFF,0xCF,0xFE, 0x38,0x40,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0xFF,0xFF,0xFF,0xFF,0x8F,0xFE, 0x38,0x40,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xFF,0xFF,0xFF,0xFF,0x8F,0xFE, 0x30,0x40,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0x1F,0x7C, 0x20,0x40,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x7F,0xFF,0xFF,0xFE,0x1E,0x78, 0x00,0x40,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x3F,0xFF,0xFF,0xFE,0x1E,0xF0, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x1F,0xFF,0xFF,0xDA,0x3C,0xE0, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x07,0xFF,0xFF,0xF2,0x30,0x80, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0xFF,0xFF,0xF1,0x20,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xFE,0x7F,0xF0,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x7C,0x3F,0xF0,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x78,0x1F,0xE0,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x72,0x07,0xE0,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x70,0x00,0xE0,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x78,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x60,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x03,0xF0,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x40,0x04,0xD8,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x08,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x0C,0x02,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x0C,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x38,0x41,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0F,0xE2,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00 //公鸡图片

};
unsigned char code qiche[1024]=
{

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xFF,0x80, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFF,0xFF,0xFF, 0xE0,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0xFF,0xFF,0xFF,0xFF, 0xFF,0xF0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x0F,0xE3,0xFF,0xFF,0xFF, 0xFF,0xFC,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x1C,0x00,0x00,0x00,0x00, 0x00,0x03,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x3C,0x00,0x00,0x00,0x00, 0x00,0x00,0x80,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x33,0xFF,0xF8,0x00,0x3F, 0xFE,0x00,0x60,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x73,0xFF,0xFF,0xE1,0xFF, 0xFF,0xF8,0x70,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x67,0xFF,0xFF,0xF1,0xFF, 0xBF,0xFF,0x10,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x67,0xFF,0xFF,0xF1,0x80, 0x30,0x1F,0x98,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x4F,0xFF,0xFF,0xF9,0x80, 0x30,0x07,0x88,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xCF,0xFF,0xFF,0xF9,0x80, 0x30,0x03,0xCC,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xCF,0xFF,0xFF,0xF9,0x80, 0x30,0x01,0xCC,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x8F,0xFF,0xFF,0xF9,0x80, 0x30,0x00,0xFC,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x07,0xFF,0xFF,0xFF,0xF9,0x80, 0x38,0x00,0xFC,0x00,0x00,0x00,
0x00,0x00,0x00,0xFF,0xFF,0xE0,0x03,0xFF,0xFB,0x80, 0x38,0x00,0xFC,0x00,0x00,0x00,
0x00,0x00,0x07,0xFF,0xFC,0x00,0x00,0x7F,0xF3,0x80, 0x38,0x00,0xFC,0x00,0x00,0x00,
0x00,0x00,0x0F,0xF8,0x00,0x00,0x00,0x07,0xF3,0x80, 0x38,0x00,0xFC,0x00,0x00,0x00,
0x00,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0xE3,0x80, 0x18,0x00,0xFC,0x00,0x00,0x00,
0x00,0x00,0x3C,0x00,0x00,0x00,0x00,0x00,0x03,0x80, 0x18,0x00,0xFC,0x00,0x00,0x00,
0x00,0x00,0x7C,0x00,0x00,0x00,0x00,0x00,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E,0x3E,0x00,0x07, 0xFF,0xFF,0x80,0x3F,0xE0,0x00,
0x1F,0xFF,0xFF,0xFF,0xFF,0xE1,0xFE,0x30,0x00,0xFF, 0xFF,0xFF,0x80,0x7F,0xE0,0x00,
0x00,0xFF,0xFF,0xFF,0xFF,0xE1,0xFE,0x21,0xFF,0xFF, 0xFF,0xFF,0x81,0xF0,0x00,0x00,
0x00,0x3F,0xFF,0xFF,0xFF,0xE0,0xFE,0x3F,0xFF,0xFF, 0x00,0x03,0xC7,0xE0,0x00,0x00,
0x00,0x3F,0xFF,0xE0,0x03,0xF0,0xFE,0x3F,0xFF,0xF8, 0x00,0x00,0xFF,0xC0,0x00,0x00,
0x00,0x1F,0xFF,0xC0,0x03,0xF0,0xFC,0x3F,0xFF,0x00, 0x00,0x00,0x7F,0x00,0x00,0x00,
0x00,0x1F,0xFF,0x80,0x01,0xF0,0x7C,0x7F,0xE0,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0F,0xFF,0xFF,0xFF,0xF8,0x10,0x7E,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xFF,0xFF,0xFF,0xF8,0x00,0x60,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xFF,0xFF,0xFF,0xFE,0x01,0xC0,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x7F,0xFF,0xFF,0xFF,0xFF,0x87,0x80,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x03,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x20,0x0F,0xFF,0xFF,0xFF,0xE1,0xF8,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x7F,0x81,0xF8,0xFE,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0xF8,0x07,0xC1,0xF8,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x1C,0x03,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00 //汽车图片

};
unsigned char code LCDsheji[1024]=
{

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x00,
0x00,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x30,0x00,
0x00,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x6C,0x00,
0x00,0xF7,0x80,0x00,0x00,0x00,0xE0,0x07,0xC1,0xFC, 0x00,0x00,0x00,0x01,0xEF,0x00,
0x00,0xF0,0x00,0x00,0x00,0x00,0xE0,0x1F,0xE1,0xFF, 0x00,0x00,0x00,0x00,0x0F,0x00,
0x00,0xC1,0xE0,0x00,0x00,0x00,0xE0,0x1F,0xE1,0xFF, 0x00,0x00,0x00,0x07,0x83,0x00,
0x00,0xB0,0x18,0x00,0x00,0x00,0xE0,0x3C,0xF1,0xC7, 0x80,0x00,0x00,0x18,0x0D,0x00,
0x00,0xE0,0x7C,0x00,0x00,0x00,0xE0,0x38,0x71,0xC3, 0x80,0x00,0x00,0x3E,0x07,0x00,
0x00,0xFC,0x57,0xC0,0x00,0x00,0xE0,0x38,0x71,0xC3, 0x80,0x00,0x03,0xEA,0x3F,0x00,
0x01,0x22,0x7D,0xC0,0x00,0x00,0xE0,0x38,0x01,0xC3, 0x80,0x00,0x03,0xBE,0x44,0x80,
0x01,0x4A,0xCC,0xC0,0x00,0x00,0xE0,0x38,0x01,0xC3, 0x80,0x00,0x03,0x33,0x52,0x80,
0x0D,0x5B,0x5E,0xC0,0x00,0x00,0xE0,0x38,0x01,0xC3, 0x80,0x00,0x03,0x7A,0xDA,0xB0,
0x0F,0xA2,0xFB,0xC0,0x00,0x00,0xE0,0x38,0x01,0xC3, 0x80,0x00,0x03,0xDF,0x45,0xF0,
0x1F,0x9C,0xA2,0x40,0x00,0x00,0xE0,0x38,0x71,0xC3, 0x80,0x00,0x02,0x45,0x39,0xF8,
0x19,0xE0,0x06,0x40,0x00,0x00,0xE0,0x38,0x71,0xC3, 0x80,0x00,0x02,0x60,0x07,0x98,
0x0F,0xB0,0x0E,0x40,0x00,0x00,0xE0,0x3C,0x71,0xC7, 0x80,0x00,0x02,0x70,0x0D,0xF0,
0x0D,0x0C,0x7E,0x40,0x03,0x80,0xFF,0x1F,0xF1,0xFF, 0x01,0xC0,0x02,0x7E,0x30,0xB0,
0x03,0x03,0xAE,0xC0,0x17,0x80,0xFF,0x1F,0xE1,0xFF, 0x01,0xE8,0x03,0x75,0xC0,0xC0,
0x00,0x81,0xFE,0x80,0x13,0xC0,0xFF,0x07,0xC1,0xFC, 0x03,0xC8,0x01,0x7F,0x81,0x00,
0x00,0xC0,0xFF,0x80,0x15,0xE0,0x00,0x00,0x00,0x00, 0x07,0xA8,0x01,0xFF,0x03,0x00,
0x00,0x60,0x7F,0x00,0x1F,0x20,0x00,0x00,0x00,0x00, 0x04,0xF8,0x00,0xFE,0x06,0x00,
0x00,0x18,0x1E,0x00,0x0D,0x10,0x00,0x00,0x00,0x00, 0x08,0xB0,0x00,0x78,0x18,0x00,
0x00,0x07,0xF2,0x00,0x09,0xD0,0x00,0x00,0x00,0x00, 0x0B,0x90,0x00,0x4F,0xE0,0x00,
0x00,0x08,0x23,0xE0,0x73,0x30,0x00,0x60,0x00,0x00, 0x0C,0xCE,0x07,0xC4,0x10,0x00,
0x00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,0x8F,0x0F, 0xF9,0x01,0xFF,0xFE,0x04,0xD0,
0x08,0x10,0x1F,0xF0,0x03,0xBD,0xE0,0x0E,0x06,0x07, 0xBD,0xC0,0x0F,0xF8,0x08,0x10,
0x0A,0x50,0x0F,0xF0,0xFF,0xBD,0xE0,0x00,0x00,0x07, 0xBD,0xFF,0x0F,0xF0,0x0A,0x50,
0x0E,0xD0,0x0F,0xF7,0x10,0xFD,0xE0,0x00,0x00,0x07, 0xBF,0x08,0xEF,0xF0,0x0B,0x70,
0x03,0xA0,0x0B,0xE8,0x0C,0xBF,0xE0,0x00,0x00,0x07, 0xFD,0x30,0x17,0xD0,0x05,0xC0,
0x01,0xC0,0x09,0xE0,0x04,0xCF,0xE0,0x00,0x00,0x07, 0xF3,0x20,0x07,0x90,0x03,0x80,
0x00,0x00,0x08,0xC0,0x7F,0xFF,0xE0,0x60,0x30,0x07, 0xFF,0xFE,0x03,0x10,0x00,0x00,
0x1C,0x00,0x0C,0x07,0x81,0x17,0xE0,0x30,0x30,0x07, 0xE8,0x81,0xE0,0x30,0x00,0x38,
0x1F,0x3F,0x1F,0xFC,0x00,0x07,0xC0,0x38,0x30,0x03, 0xE0,0x00,0x3F,0xF8,0xFC,0xF8,
0x1F,0x81,0xB3,0xEC,0x00,0x00,0x00,0x30,0x30,0x00, 0x00,0x00,0x37,0xCD,0x81,0xF8,
0x3E,0x21,0xE2,0x08,0x00,0x00,0x00,0x00,0x30,0x00, 0x00,0x00,0x10,0x47,0x84,0x7C,
0x3E,0x03,0x04,0x18,0x00,0x00,0x00,0xFB,0xFF,0x00, 0x00,0x00,0x18,0x20,0xC0,0x7C,
0x2F,0x42,0x1C,0x10,0x00,0x00,0x00,0x18,0x30,0x00, 0x00,0x00,0x08,0x38,0x42,0xF4,
0x2F,0xC3,0x78,0x30,0x00,0x00,0x00,0x18,0x30,0x00, 0x00,0x00,0x0C,0x1E,0xC3,0xF4,
0x2F,0xC2,0xD8,0x60,0x00,0x00,0x00,0x18,0x30,0x00, 0x00,0x00,0x06,0x1B,0x43,0xF4,
0x2F,0xC2,0x00,0xC0,0x00,0x00,0x00,0x18,0x30,0x00, 0x00,0x00,0x03,0x00,0x43,0xF4,
0x2F,0xC2,0x00,0x80,0x00,0x00,0x00,0x18,0x30,0x00, 0x00,0x00,0x01,0x00,0x43,0xF4,
0x2F,0xC3,0xC3,0x80,0x00,0x00,0x00,0x1B,0x30,0x00, 0x00,0x00,0x01,0xC3,0xC3,0xF4,
0x0F,0xBF,0x3E,0x00,0x00,0x00,0x00,0x1E,0x30,0x00, 0x00,0x00,0x00,0x7C,0xFD,0xF0,
0x1F,0xC0,0x00,0x00,0x00,0x00,0x00,0x1C,0x30,0x00, 0x00,0x00,0x00,0x00,0x03,0xF8,
0x0F,0xE0,0x00,0x00,0x00,0x00,0x00,0x18,0x30,0x00, 0x00,0x00,0x00,0x00,0x07,0xF0,
0x0F,0xA0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00, 0x00,0x00,0x00,0x00,0x05,0xF0,
0x0F,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x07,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 //LCD设计图片

};

27/03/2011 #51


Oie y como puedo inicializarla usando VHDL????
30/03/2011 #52

Avatar de COSMICO

Hola asherar.
Pues te cunto que no he podido ni comenzar con el tal lcd grafico ST7920
siempre uso las librerias existentes en ccs c, para simular , pero no se exactamente como
modificar una libreria de estas. lo de la iniciarlo, es lo de menos, lo de configurar los pines , es lo de menos tambien, configurarlo para modo paralelo o serial tambien se como hacerlo; pero para modificar las funciones como, dibujar circulo, rectangulo, rellenar etc
ahí quedo muerto, veo varios mapeados de memoria pero con direcciones en x e y pero no los entiendo mucho.
Por ejemplo, como hago para escribir "hola Mundo" en este lcd, si tener libreria, ¿sólo apunto a la direccion, por ejemplo 80 y envio el dato con sus respectivos bits de control?
Me tiene loco esto, hasta hoy me enfrento a una lcd grafica.
30/03/2011 #53

Avatar de asherar

COSMICO dijo: Ver Mensaje
Hola asherar.
Pues te cunto que no he podido ni comenzar con el tal lcd grafico ST7920
...
Por ejemplo, como hago para escribir "hola Mundo" en este lcd, si tener libreria, ¿sólo apunto a la direccion, por ejemplo 80 y envio el dato con sus respectivos bits de control?
Me tiene loco esto, hasta hoy me enfrento a una lcd grafica.
Por ahora no me puedo poner a estudiar la hoja de datos del 7920, pero todo depende de si tiene o no memoria dedicada a caracteres.
En el caso del T6963C si, y entonces es como dices, direccionar y enviar.
En el KS0108 no, y entonces hay que cargar las cadenas de bits en la memoria del micro para copiarlas oportunamente.

En todo caso no queda más que probar.
Por mandar el dato equivocado no vas a romper nada.
30/03/2011 #54

Avatar de COSMICO

asherar.
otra cosa, este codigo que esta arriba, el de letra azul ¿es C? que tipo de lenguaje o compilador es
un saludo.
30/03/2011 #55

Avatar de asherar

Sí, es C. .................
05/04/2011 #56


lcd a color de nokia6100
hola a todos estuve mirando este foro y pense que me podrian ayudar. necesti controlar una lcd a color de un nokia 6100 con chip epson S1D15G10D08BE_TM_MF1493_03 la pantalla es de 128x128 el problema es que las librerias que encuentro no me han servido y ya no doy mas y no me ha funcionado ni megrando las de avr a pic les agradeceria una ayudita je aqui les anexo el data sheet y la pagina donde compre la lcd gracias

http://www.sparkfun.com/products/9363

en esta pagina esta todo
14/04/2011 #57


programar pantallas graficas con Proton IDE
[QUOTE=mecatrodatos;245270]que tal les dejo un documento de como programar pantallas graficas con pic basic[/QUO

Necesito que me ayuden con esta inquietud, necesito aprender a programar pantallas graficas con protón IDE..Nunca antes he programado una pantalla GLCD pero quisiera intentarlo con Protón IDE pues es una herramienta muy fácil de usar..

http://articulo.mercadolibre.com.co/...lm12864bly-_JM

Estoy pensando trabajar con esta GLCD
17/04/2011 #58


Hola que pantalla piensas programar ?
si es la que usa el chip ks0108 yo te podria ayudar
18/04/2011 #59


Saludos
nicolas8702 dijo: Ver Mensaje
Hola que pantalla piensas programar ?
si es la que usa el chip ks0108 yo te podria ayudar
La verdad es que estoy iniciando me con el manejo de GLCD y me gustaría aprender con cualquier pantalla, así que si tú tienes o más bien sabes cómo hacerlo con la ks0108, me caería muy bien tu ayuda, Simplemente trabajaría con la pantalla que me sugeriste, mi interés es poder programar la en Protón IDE debido a que es la herramienta que estoy usando actual mente para programar pic's.

De antemano muchas gracias, quedo atento.
19/04/2011 #60


Hi alguien podria ayudarme con, poder hacer una grafica por decir de la temperatura en un LCD grafico, pero en basic, ya sea en proton o en mickrobasic. Muchas gracias
¿Tienes una mejor respuesta a este tema? ¿Quieres hacerle una pregunta a nuestra comunidad y sus expertos? Registrate

Foros de Electrónica » Diseño digital » Microcontroladores y sistemas embebidos

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2011, Crawlability, Inc.