Ir ao conteúdo
  • Cadastre-se

GLCD 240X128 DÚVIDAS C/ BIBLIOTECA MICRO C


Posts recomendados

Amigos sou novo em Programação C, estou usando o Compilador Micro C 6.0 e não consigo desenhar nem escrever nesse display pois o programa  não compila e fica dando erros, achei uma biblioteca T6963c.h e resolveu parcialmente meu problema quem puder me ajudar com algum projeto que funcione nesse display ficarei muito grato ! Segue em anexo um programa que baixei e não consegui fazer rodar.

GLCD 128x64 con el T6963C.pdf

Link para o comentário
Compartilhar em outros sites

Amigos me desculpem pelo erro, segue abaixo o Projeto que estou tentando utilizar mas quando faço o upload no Display não consigo visualizar nem o texto nem a imagem, mais tarde vou passar para vocês imagens e um video do que está acontecendo com o Display beleza.

 

 

Projeto PIC 18F4550

 

#include        "T6963C.h" //Declaración de variables de conexión del T6963C char T6963C_dataPort at PORTD;                   // Puerto de Datos sbit T6963C_ctrlwr  at RC2_bit;                  // Señal WR writesbit T6963C_ctrlrd  at RC1_bit;                  // Señal RD readsbit T6963C_ctrlcd  at RC0_bit;                  // Señal CD command/datasbit T6963C_ctrlrst at RC4_bit;                  // Señal RST resetsbit T6963C_ctrlwr_Direction  at TRISC2_bit;     // Señal WR writesbit T6963C_ctrlrd_Direction  at TRISC1_bit;     // Señal RD readsbit T6963C_ctrlcd_Direction  at TRISC0_bit;     // Señal CD command/datasbit T6963C_ctrlrst_Direction at TRISC4_bit;     // Señal RST reset //Señales no empleadas por la librería, se configuran en la función main sbit T6963C_ctrlce at RC3_bit;                   // Señal CEsbit T6963C_ctrlfs at RC6_bit;                   // Señal FSsbit T6963C_ctrlce_Direction  at TRISC3_bit;     // Señal CEsbit T6963C_ctrlfs_Direction  at TRISC6_bit;     // Señal FS //Final de declaración de variables de conexión del T6963C   // ------------------------------------------------------// GLCD Picture name: test 240x128.bmp// GLCD Model: T6963C 240x128// ------------------------------------------------------ const code char test240x128[3840] = {  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,  15, 240,   0,   0,   0,   0,   0,   0,   7, 252,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 255,   0,   0,   0, 255, 224,   0,  0, 127, 254,   0,   0,  31, 255, 240,   0,  63, 255, 128,   0,   0,   0,   0,   0,   0,   0,   0,  31, 192,   7, 255, 224,   0,   3, 255, 252,   0,  0, 255, 255, 128,   0,  31, 255, 240,   0, 255, 255, 192,   0,   0,   0,   0,   0,   0,   0,   0,  63, 192,  15, 255, 248,   0,  15, 255, 255,   0,  3, 255, 255, 192,   0,  63, 255, 240,   1, 255, 255, 240,   0,   0,   0,   0,   0,   0,   0,   0, 127, 192,  63, 255, 252,   0,  31, 255, 255, 128,  3, 255, 255, 224,   0,  63, 255, 240,   3, 255, 255, 248,   0,   0,   0,   0,   0,   0,   0,   0, 255, 192,  63, 255, 254,   0,  63, 255, 255, 128,  7, 255, 255, 240,   0,  63, 255, 240,   7, 255, 255, 252,   0,   0,   0,   0,   0,   0,   0,   3, 255, 192, 127, 255, 255,   0, 127, 255, 255, 192, 15, 255, 255, 240,   0, 127, 255, 240,   7, 255, 255, 252,   0,   0,   0,   0,   0,   0,   0,   7, 255, 192, 255, 255, 255,   0, 255, 255, 255, 224, 15, 248, 255, 248,   0, 127, 255, 240,  15, 255, 159, 254,   0,   0,   0,   0,   0,   0,   0,  31, 255, 192, 255, 143, 255, 128, 255, 251, 255, 224, 15, 248, 127, 248,   0, 127, 255, 240,  15, 255,  31, 254,   0,   0,   0,   0,   0,   0,   0, 255, 255, 192, 255, 135, 255, 128, 255, 241, 255, 224, 31, 240, 127, 248,   0, 127, 255, 240,  15, 255,  31, 254,   0,   0,   0,   0,   0,   0,   7, 255, 255, 193, 255,   7, 255, 129, 255, 241, 255, 240, 31, 240, 127, 252,   0, 255, 255, 240,  15, 255,  31, 255,   0,   0,   0,   0,   0,   0,   7, 255, 255, 193, 255,   7, 255, 193, 255, 241, 255, 240, 31, 240, 127, 252,   0, 255, 255, 240,  31, 255,  31, 255,   0,   3, 255, 131, 255, 128,   7, 255, 255, 193, 255,   7, 255, 193, 255, 241, 255, 240, 31, 240, 127, 252,   0, 255, 255, 240,  31, 255,  31, 255,   0,   3, 255, 131, 255, 128,   7, 255, 255, 193, 255,   7, 255, 193, 255, 241, 255, 240, 31, 240, 127, 252,   1, 255, 255, 240,  31, 255,  31, 255,   0,   1, 255, 131, 255,   0,   7, 255, 255, 193, 255,   7, 255, 193, 255, 241, 255, 240, 31, 240, 127, 252,   1, 253, 255, 240,  31, 255,  31, 255,   0,   1, 255, 131, 255,   0,   7, 255, 255, 193, 255,   7, 255, 193, 255, 241, 255, 240, 31, 240, 127, 252,   1, 253, 255, 240,  31, 255,  31, 255,   0,   1, 255, 199, 255,   0,   0,  31, 255, 193, 255,   7, 255, 193, 255, 241, 255, 240, 31, 240, 255, 252,   3, 253, 255, 240,  31, 255,  31, 255,   0,   0, 255, 199, 254,   0,   0,  15, 255, 193, 255,  15, 255, 193, 255, 241, 255, 240, 31, 240, 255, 252,   3, 253, 255, 240,  31, 255,  31, 255,   0,   0, 255, 199, 254,   0,   0,   7, 255, 193, 255,  15, 255, 193, 255, 241, 255, 240,  0,   0, 255, 252,   3, 249, 255, 240,  31, 255,  31, 255,   0,   0, 255, 199, 254,   0,   0,   7, 255, 192,   0,  15, 255, 193, 255, 241, 255, 240,  0,   1, 255, 248,   7, 249, 255, 240,  31, 255,  31, 255,   0,   0, 127, 199, 252,   0,   0,   7, 255, 192,   0,  31, 255, 128, 255, 241, 255, 224,  0,   1, 255, 248,   7, 249, 255, 240,  31, 255,  31, 255,   0,   0, 127, 199, 252,   0,   0,   7, 255, 192,   0,  31, 255, 128, 255, 241, 255, 224,  0,   3, 255, 248,   7, 249, 255, 240,  31, 255,  31, 255,   0,   0, 127, 239, 252,   0,   0,   7, 255, 192,   0,  63, 255, 128, 127, 251, 255, 192,  0,   3, 255, 248,   7, 241, 255, 240,  31, 255,  31, 255,   0,   0,  63, 239, 248,   0,   0,   7, 255, 192,   0,  63, 255, 128, 127, 255, 255, 128,  0,   3, 255, 240,  15, 241, 255, 240,  31, 255,  31, 255,   0,   0,  63, 239, 248,   0,   0,   7, 255, 192,   0,  63, 255,   0,  63, 255, 255,   0,  0,   7, 255, 240,  15, 241, 255, 240,  31, 255,  31, 255,   0,   0,  63, 239, 248,   0,   0,   7, 255, 192,   0, 127, 255,   0,  15, 255, 252,   0,  0,   7, 255, 224,  15, 241, 255, 240,  31, 255,  31, 255,   0,   0,  63, 239, 248,   0,   0,   7, 255, 192,   0, 127, 254,   0,  63, 255, 255,   0,  0,  15, 255, 224,  31, 225, 255, 240,  31, 255,  31, 255,   0,   0,  31, 255, 240,   0,   0,   7, 255, 192,   0, 255, 254,   0, 127, 255, 255, 128,  0,  15, 255, 224,  31, 225, 255, 240,  31, 255,  31, 255,   0,   0,  31, 255, 240,   0,   0,   7, 255, 192,   0, 255, 254,   0, 127, 255, 255, 192,  0,  31, 255, 192,  31, 225, 255, 240,  31, 255,  31, 255,   0,   0,  31, 255, 240,   0,   0,   7, 255, 192,   1, 255, 252,   0, 255, 255, 255, 224,  0,  31, 255, 192,  63, 225, 255, 240,  31, 255,  31, 255,   0,   0,  15, 255, 224,   0,   0,   7, 255, 192,   1, 255, 252,   0, 255, 251, 255, 224,  0,  63, 255, 128,  63, 193, 255, 240,  31, 255,  31, 255,   0,   0,  15, 255, 224,   0,   0,   7, 255, 192,   3, 255, 248,   0, 255, 241, 255, 224,  0,  63, 255, 128,  63, 193, 255, 240,  31, 255,  31, 255,   0,   0,  15, 255, 224,   0,   0,   7, 255, 192,   3, 255, 248,   1, 255, 241, 255, 240,  0,  63, 255,   0, 127, 193, 255, 240,  31, 255,  31, 255,   0,   0,  31, 255, 240,   0,   0,   7, 255, 192,   3, 255, 240,   1, 255, 241, 255, 240,  0, 127, 255,   0, 127, 129, 255, 240,  31, 255,  31, 255,   0,   0,  31, 255, 240,   0,   0,   7, 255, 192,   7, 255, 240,   1, 255, 241, 255, 240,  0, 127, 254,   0, 127, 255, 255, 255,  31, 255,  31, 255,   0,   0,  31, 255, 240,   0,   0,   7, 255, 192,   7, 255, 224,   1, 255, 241, 255, 240,  0, 255, 254,   0, 127, 255, 255, 255,  31, 255,  31, 255,   0,   0,  31, 255, 240,   0,   0,   7, 255, 192,  15, 255, 224,   1, 255, 241, 255, 240,  0, 255, 252,   0, 127, 255, 255, 255,  31, 255,  31, 255,   0,   0,  63, 255, 248,   0,   0,   7, 255, 192,  15, 255, 192,   1, 255, 241, 255, 240,  1, 255, 252,   0, 127, 255, 255, 255,  31, 255,  31, 255,   0,   0,  63, 239, 248,   0,   0,   7, 255, 192,  31, 255, 192,   1, 255, 241, 255, 240,  1, 255, 248,   0, 127, 255, 255, 255,  31, 255,  31, 255,   0,   0,  63, 239, 248,   0,   0,   7, 255, 192,  31, 255, 128,   1, 255, 241, 255, 240,  3, 255, 248,   0, 127, 255, 255, 255,  31, 255,  31, 255,   0,   0,  63, 239, 248,   0,   0,   7, 255, 192,  63, 255, 128,   1, 255, 241, 255, 240,  3, 255, 240,   0, 127, 255, 255, 255,  31, 255,  31, 255,   0,   0, 127, 239, 252,   0,   0,   7, 255, 192,  63, 255,   0,   1, 255, 241, 255, 240,  7, 255, 240,   0, 127, 255, 255, 255,  31, 255,  31, 255,   0,   0, 127, 239, 252,   0,   0,   7, 255, 192, 127, 255,   0,   1, 255, 241, 255, 240,  7, 255, 224,   0, 127, 255, 255, 255,  31, 255,  31, 255,   0,   0, 127, 207, 252,   0,   0,   7, 255, 192, 127, 254,   0,   1, 255, 241, 255, 240, 15, 255, 192,   0,   0,   1, 255, 240,  15, 255,  31, 254,   0,   0, 255, 199, 254,   0,   0,   7, 255, 192, 255, 252,   0,   1, 255, 241, 255, 240, 15, 255, 192,   0,   0,   1, 255, 240,  15, 255,  31, 254,   0,   0, 255, 199, 254,   0,   0,   7, 255, 192, 255, 252,   0,   0, 255, 241, 255, 224, 31, 255, 255, 248,   0,   1, 255, 240,  15, 255,  63, 254,   0,   0, 255, 199, 254,   0,   0,   7, 255, 193, 255, 255, 255, 128, 255, 249, 255, 224, 31, 255, 255, 248,   0,   1, 255, 240,   7, 255, 255, 252,   0,   0, 255, 199, 254,   0,   0,   7, 255, 193, 255, 255, 255, 128, 255, 255, 255, 224, 31, 255, 255, 248,   0,   1, 255, 240,   7, 255, 255, 252,   0,   1, 255, 199, 255,   0,   0,   7, 255, 193, 255, 255, 255, 128, 127, 255, 255, 192, 31, 255, 255, 248,   0,   1, 255, 240,   3, 255, 255, 248,   0,   1, 255, 131, 255,   0,   0,   7, 255, 193, 255, 255, 255, 128, 127, 255, 255, 192, 31, 255, 255, 248,   0,   1, 255, 240,   1, 255, 255, 240,   0,   1, 255, 131, 255,   0,   0,   7, 255, 193, 255, 255, 255, 128,  63, 255, 255, 128, 31, 255, 255, 248,   0,   1, 255, 240,   0, 255, 255, 224,   0,   3, 255, 131, 255, 128,   0,   7, 255, 193, 255, 255, 255, 128,  15, 255, 255,   0, 31, 255, 255, 248,   0,   1, 255, 240,   0,  63, 255, 128,   0,   3, 255, 131, 255, 128,   0,   7, 255, 193, 255, 255, 255, 128,   7, 255, 252,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   7, 254,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 255, 224,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0};  void main() {  T6963C_ctrlce_Direction = 0;  T6963C_ctrlce = 0;            //Habilitar el T6963C.  T6963C_ctrlfs_Direction = 0;  T6963C_ctrlfs = 0;            //Fuente 8x8 (FS<1:0>=00).   T6963C_Init(240, 128, 8);      //Inicializa el T6963C. Caracteres de 8 bits.  T6963C_Graphics(1);           //Habilita la presentación de gráficos.  T6963C_Text(1);               //Habilita la presentación de texto.  T6963C_GrFill(0);   while(1){  T6963C_Image(test240x128);  //Dibuja la imagen en el GLCD.  Delay_ms(500);  T6963C_GrFill(0); //Borrar la pantalla gráfica.   T6963C_Write_Text("Presentacion de",0,12,T6963C_ROM_MODE_OR);  T6963C_Write_Text("texto en un GLCD240x128",0,13,T6963C_ROM_MODE_OR);  T6963C_Write_Text("usando mikroC.",0,14,T6963C_ROM_MODE_OR);  }}Amigos vou postar também a Biblioteca que eu estou usando, acredito que seja ela meu problema ! BIBLIOTECA T6963C /* * file         : T6963C.h * project      : T6963C GRAPHIC LCD PIC LIBRARY * author       : Bruno Gavand * ctime        : Jun 06 2005 * mtime        : Jan 27 2006 * description  : */ /*********************************************** * T6963C CONSTANT DEFINITIONS ***********************************************/#define T6963C_CHARACTER_HEIGHT                 8       // character height in pixel /* * command set * see T6963C datasheet */#define T6963C_CURSOR_POINTER_SET               0b00100001#define T6963C_OFFSET_REGISTER_SET              0b00100010#define T6963C_ADDRESS_POINTER_SET              0b00100100 #define T6963C_TEXT_HOME_ADDRESS_SET            0b01000000#define T6963C_TEXT_AREA_SET                    0b01000001#define T6963C_GRAPHIC_HOME_ADDRESS_SET         0b01000010#define T6963C_GRAPHIC_AREA_SET                 0b01000011 #define T6963C_ROM_MODE_OR                      0b10000000#define T6963C_ROM_MODE_XOR                     0b10000001#define T6963C_ROM_MODE_AND                     0b10000011#define T6963C_ROM_MODE_TEXT                    0b10000100 #define T6963C_RAM_MODE_OR                      0b10001000#define T6963C_RAM_MODE_XOR                     0b10001001#define T6963C_RAM_MODE_AND                     0b10001011#define T6963C_RAM_MODE_TEXT                    0b10001100 #define T6963C_DISPLAY_MASK                     0b10010000#define T6963C_DISPLAY_GRAPHICS_BIT             F3#define T6963C_DISPLAY_TEXT_BIT                 F2#define T6963C_DISPLAY_CURSOR_BIT               F1#define T6963C_DISPLAY_CURSOR_BLINK_BIT         F0 #define T6963C_CURSOR_PATTERN_MASK              0b10100111 #define T6963C_DATA_AUTO_WRITE_SET              0b10110000#define T6963C_DATA_AUTO_READ_SET               0b10110001#define T6963C_DATA_AUTO_RESET                  0b10110010 #define T6963C_DATA_WRITE_AUTO_INCREMENT        0b11000000#define T6963C_DATA_READ_AUTO_INCREMENT         0b11000001#define T6963C_DATA_WRITE_NO_INCREMENT          0b11000100#define T6963C_DATA_READ_NO_INCREMENT           0b11000101 #define T6963C_DATA_BIT                         0b11110000 /* * status byte */#define T6963C_STATUS_BUSY1    0x01#define T6963C_STATUS_BUSY2    0x02#define T6963C_STATUS_DARRDY   0x04#define T6963C_STATUS_DAWRDY   0x08#define T6963C_STATUS_CLR      0x20#define T6963C_STATUS_ERR      0x40#define T6963C_STATUS_BLINK    0x80 /* * color masks */#define T6963C_WHITE            0b1000#define T6963C_BLACK            0 /******************************************* * MACRO DEFINITIONS *******************************************//* * clear control bit */#define T6963C_ClearBit(      b = 0 /* * set control bit */#define T6963C_SetBit(         b = 1 /* * neg control bit */#define T6963C_NegBit(         b = !b /* * total panel memory size is one graphic panel plus one text panel size */#define T6963C_PanelMemSize     (T6963C_grMemSize + T6963C_txtMemSize) /* * display graphic panel number n */#define T6963C_DisplayGrPanel(n)        T6963C_setPtr(T6963C_PanelMemSize * n, T6963C_GRAPHIC_HOME_ADDRESS_SET) /* * display text panel number n */#define T6963C_DisplayTxtPanel(n)       T6963C_setPtr(T6963C_PanelMemSize * n + T6963C_grMemSize, T6963C_TEXT_HOME_ADDRESS_SET) /* * compute graphic start address for panel number n */#define  T6963C_SetGrPanel(n)           T6963C_grHomeAddr = T6963C_PanelMemSize * n /* * compute text start address for panel number n */#define  T6963C_SetTxtPanel(n)          T6963C_textHomeAddr = T6963C_PanelMemSize * n + T6963C_grMemSize /* * fill full #n panel with v bitmap (0 to clear) */#define T6963C_PanelFill(v)             T6963C_fill(v, 0, T6963C_PanelMemSize) /* * fill graphic #n panel with v bitmap (0 to clear) */#define T6963C_GrFill(v)                T6963C_fill(v, 0, T6963C_grMemSize) /* * fill text #n panel with char v + 32 (0 to clear) */#define T6963C_TxtFill(v)               T6963C_fill(v, T6963C_grMemsize, T6963C_txtMemSize) /* * set cursor size */#define T6963C_Cursor_Height(n)         T6963C_writeCommand(T6963C_CURSOR_PATTERN_MASK | (n & 0b00000111)) /* * set cursor on */#define T6963C_Cursor_On()              T6963C_display.T6963C_CURSOR_BIT = 1; T6963C_writeCommand(T6963C_display) /* * set graphics on/off */#define T6963C_Graphics(n)              T6963C_display.T6963C_DISPLAY_GRAPHICS_BIT = n; T6963C_writeCommand(T6963C_display) /* * set text on/off */#define T6963C_Text(n)                  T6963C_display.T6963C_DISPLAY_TEXT_BIT = n; T6963C_writeCommand(T6963C_display) /* * set cursor on/off */#define T6963C_Cursor(n)                T6963C_display.T6963C_DISPLAY_CURSOR_BIT = n; T6963C_writeCommand(T6963C_display) /* * cursor blink on/off */#define T6963C_Cursor_Blink(n)         T6963C_display.T6963C_DISPLAY_CURSOR_BLINK_BIT = n; T6963C_writeCommand(T6963C_display) /************************************ * LIBRARY PROTOTYPES ************************************/void            T6963C_init(unsigned int w, unsigned char h, unsigned char fntW);void            T6963C_writeData(unsigned char mydata);void            T6963C_writeCommand(unsigned char mydata);void            T6963C_setPtr(unsigned int addr, unsigned char t);void            T6963C_waitReady(void);void            T6963C_fill(unsigned char mydata, unsigned int start, unsigned int len);void            T6963C_dot(int x, int y, unsigned char color);void            T6963C_write_char(unsigned char c, unsigned char x, unsigned char y, unsigned char mode);void            T6963C_write_text(unsigned char *str, unsigned char x, unsigned char y, unsigned char mode);void            T6963C_line(int px0, int py0, int px1, int py1, unsigned char pcolor);void            T6963C_rectangle(int x0, int y0, int x1, int y1, unsigned char pcolor);void            T6963C_box(int x0, int y0, int x1, int y1, unsigned char pcolor);void            T6963C_circle(int x, int y, long r, unsigned char pcolor);void            T6963C_image(const char *pic);void            T6963C_sprite(unsigned char px, unsigned char py, const char *pic, unsigned char sx, unsigned char sy);void            T6963C_set_cursor(unsigned char x, unsigned char y); /**************************** * GLOBAL VARIABLES ****************************/extern  sfr char T6963C_dataPort;             // pointer to DATA BUS portextern  sfr char T6963C_cntlPort;             // pointer to CONTROL port extern  unsigned int    T6963C_grWidth;       // graphic widthextern  unsigned int    T6963C_grHeight;      // graphic heightextern  unsigned int    T6963C_txtCols;       // number of text columns in a row extern  unsigned int    T6963C_fontWidth;     // font widthextern  unsigned int    T6963C_grHomeAddr;    // graphic home addressextern  unsigned int    T6963C_textHomeAddr;  // text home addressextern  unsigned int    T6963C_grMemSize;     // graphic panel memory sizeextern  unsigned int    T6963C_txtMemSize;    // text panel memory size extern  sfr sbit   T6963C_cntlwr;             // WR write bit maskextern  sfr sbit   T6963C_cntlrd;             // RD read bit maskextern  sfr sbit   T6963C_cntlcd;             // CD command/data bit maskextern  sfr sbit   T6963C_cntlrst;            // RST reset bit mask extern  unsigned char   T6963C_display;       // display control byte

Link para o comentário
Compartilhar em outros sites

Amigos segue os links do Projeto e do Video da Tela LCD.

 

http://www.unionindustrial.com.br/GLCD_240.rar

 

http://www.unionindustrial.com.br/GLCD240.rar

 

O Video mostra o que está acontecendo com a tela, sendo que quando mudo o T6963C_init para (128, 128, 8 ) consigo visualizar a imagem duplicada.

 

Por favor me ajudem a utilizar essa Tela, obrigado !

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novas respostas.

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...