Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature currently requires accessing the site using the built-in Safari browser.
una pregunta, soy nuevo en esto de los lcd graficos, queria que me dijieran que programa es bueno para pasar una imagen BMP a codigo CCS le agradeceria su ayuda
#include <18F4550.h>
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN
#use delay(clock=48000000)
#include "usb_bootloader.h"
//Referencia de asicnacion de Pines
// RS =RC0
// R/W =RE0
// E =RE1
// CS =RC2
// Res =RE2
//****************************************************************************
byte CONST Inicio[19] = {0x00 // INST: MODE CONTROL
0x38 // Set: Dsp on,Master,cursor ON char BLink,Mode CHAR,Built-in ROM CHAR
0x01 // INST: CHARACTER PITCH (-1)
0x77 // Set: 8 bits vertical CHAR, 8 bits horizontal x CHR => 20 chr x 10 rngl
0x02 // INST: NUM CHAR (-1)
0x13 // Set: 20 char horizontalmente
0x03 // INST: DISPLAY DUTY (-1)
0x4F // Set: 80 (valor de puntos verticalmente)
0x04 // INST: CURSOR POsITION (-1)
0x07 // Set: en el bit 8 (vertical)
0x08 // INST: DSP START ADD LOWER
0x00 // Set: posicion 0
0x09 // INST: DSP START ADD UPPER
0x00 // Set: posicion 0
0x0A // INST: RAM ADD LOWER
0x00 // Set: posicion 0
0x0B // INST: RAM ADD UPPER
0x00 // Set: posicion 0
0x0C // INST: WRITE DATA TO RAM
};
byte int8 Puntero[19] = {0x00,0x38,0x01,0x77,0x02,0x13,0x03,0x4F,0x04,0x07
0x08,0x00,0x09,0x00,0x0A,0x53,0x0B,0x00,0x0C};
// /\
// Modifica posicion del puntero.
byte CONST Texto[14] = {0x50,0x52,0x55,0x45,0x42,0x41,0x00,0x00,0x4D,0x45,0x52,0x4C,0x49,0x4E};
byte CONST Borrar[200] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
void main(void)
{
output_low(pin_E0); // R/W apagar “RE0 a 0
output_low(pin_C2); // CS apagar “RC2 a 0
output_high(pin_C0); // RS encendido “RC0 a 1
byte Var1=0;
//////////////////Tabla de inicialización////////////////////////////////////
for (Var1=0;Var1<19;Var1++)
{
output_high(pin_E1); // E encender “RE1 a 1
OUTPUT_D(Inicio[Var1]); // Digito unidades envio al puerto B
output_toggle(PIN_E1); // E Cambia el estado y apagalo “RE1 a 0
delay_ms(1); // Retardo Para evitar Datos
output_toggle(PIN_C0); // RS cambia el estado del pin RC0 y lo apago
output_toggle(PIN_E1); // E Cambia el estado y enciendelo “RE1 a 1
}
output_low(pin_C0); // Apaga RS “RC0 a 0
//////////////////Tabla de Borrado////////////////////////////////////
for (Var1=0;Var1<200;Var1++)
{
output_high(pin_E1); // E encender “RE1 a 1
OUTPUT_D(Borrar[Var1]); // Digito unidades envio al puerto B
output_toggle(PIN_E1); // E Cambia el estado y apagalo “RE1 a 0
delay_ms(1); // Retardo Para evitar Datos
// output_toggle(PIN_C0); // RS cambia el estado del pin RC0 y lo apago
output_toggle(PIN_E1); // E Cambia el estado y enciendelo “RE1 a 1
}
output_low(pin_E1); // apagar E “RE0 a 0
//////////////////Tabla de Puntero////////////////////////////////////
output_high(pin_C0); // RS encendido “RC0 a 1
for (Var1=0;Var1<19;Var1++)
{
output_high(pin_E1); // E encender “RE1 a 1
OUTPUT_D(Puntero[Var1]); // Digito unidades envio al puerto B
output_toggle(PIN_E1); // E Cambia el estado y apagalo “RE1 a 0
delay_ms(1); // Retardo Para evitar Datos
output_toggle(PIN_C0); // RS cambia el estado del pin RC0 y lo apago
output_toggle(PIN_E1); // E Cambia el estado y enciendelo “RE1 a 1
}
output_low(pin_C0); // Apaga RS “RC0 a 0
//////////////////Tabla de Texto////////////////////////////////////
for (Var1=0;Var1<14;Var1++)
{
output_high(pin_E1); // E encender “RE1 a 1
OUTPUT_D(Texto[Var1]); // Digito unidades envio al puerto B
output_toggle(PIN_E1); // E Cambia el estado y apagalo “RE1 a 0
delay_ms(1); // Retardo Para evitar Datos
output_toggle(PIN_E1); // E Cambia el estado y enciendelo “RE1 a 1
}
}
#include <18F4550.h>
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN
#use delay(clock=48000000)
#include "usb_bootloader.h"
//Referencia de asicnacion de Pines
// RS =RC0
// R/W =RE0
// E =RE1
// CS =RC2
// Res =RE2
//****************************************************************************
byte CONST Inicio[19] = {0x00 // INST: MODE CONTROL
0x32 // Set: Dsp on,Master,cursor ON char BLink,Mode CHAR,Built-in ROM CHAR
0x01 // INST: CHARACTER PITCH (-1)
0x77 // Set: 8 bits vertical CHAR, 8 bits horizontal x CHR => 20 chr x 10 rngl
0x02 // INST: NUM CHAR (-1)
0x13 // Set: 20 char horizontalmente
0x03 // INST: DISPLAY DUTY (-1)
0x4F // Set: 80 (valor de puntos verticalmente)
0x04 // INST: CURSOR POsITION (-1)
0x07 // Set: en el bit 8 (vertical)
0x08 // INST: DSP START ADD LOWER
0x00 // Set: posicion 0
0x09 // INST: DSP START ADD UPPER
0x00 // Set: posicion 0
0x0A // INST: RAM ADD LOWER
0x00 // Set: posicion 0
0x0B // INST: RAM ADD UPPER
0x00 // Set: posicion 0
0x0C // INST: WRITE DATA TO RAM
};
byte CONST Grafico[1600] = {
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xBF,0xCF,0xE7,0xE7
0xF0,0xFC,0xFC,0x3F,0x1F,0x8F,0xCF,0x7F
0xBE,0xFF,0x3D,0xFE,0x7B,0xF9,0xF7,0xBD
0x9F,0xB7,0xDB,0xE3,0xFE,0xFB,0x7D,0xFE
0xEF,0x77,0xB7,0x3F,0x9E,0x7E,0xDC,0xFD
0xB9,0xF8,0xF3,0xDB,0xAF,0xBF,0xDF,0xF1
0xF8,0x7F,0xBE,0xFE,0xEF,0x77,0xB3,0x5F
0xAE,0xBE,0xFD,0x7D,0xFA,0xFC,0x75,0xE7
0xBF,0xDF,0xE7,0xF4,0xF6,0x78,0x3F,0x7F
0x1F,0x0F,0xBB,0x7F,0xBE,0xFF,0x7D,0xFE
0x7B,0xFD,0x37,0xF7,0xDC,0x6E,0x1F,0x10
0x87,0xC3,0xA3,0x70,0xE8,0x3C,0x3B,0xB8
0xDF,0x71,0xBE,0xE1,0xFD,0xC4,0x3B,0xEB
0xDF,0xF7,0xDD,0xFB,0xF7,0x7B,0xBF,0xBE
0xEF,0xB7,0xDB,0xBF,0xDF,0x7F,0xDE,0xFD
0xDD,0xFE,0xFB,0xCD,0xDF,0xC3,0xE3,0xFB
0xF8,0xFC,0x7F,0xBF,0x1F,0xCF,0xE7,0xBF
0xDF,0x7F,0x0E,0xFE,0x3D,0xFE,0xFB,0xDE
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
void main(void)
{
output_low(pin_E0); // R/W apagar “RE0 a 0
output_low(pin_C2); // CS apagar “RC2 a 0
output_high(pin_C0); // RS encendido “RC0 a 1
byte Var1=0;
//////////////////Tabla de inicialización////////////////////////////////////
for (Var1=0;Var1<19;Var1++)
{
output_high(pin_E1); // E encender “RE1 a 1
OUTPUT_D(Inicio[Var1]); // Digito unidades envio al puerto B
output_toggle(PIN_E1); // E Cambia el estado y apagalo “RE1 a 0
delay_ms(1); // Retardo Para evitar Datos
output_toggle(PIN_C0); // RS cambia el estado del pin RC0 y lo apago
output_toggle(PIN_E1); // E Cambia el estado y enciendelo “RE1 a 1
}
output_low(pin_C0); // Apaga RS “RC0 a 0
output_low(pin_E1); // Apaga E “RE0 a 0
//////////////////Tabla de Grafico////////////////////////////////////
for (Var1=0;Var1<1600;Var1++)
{
output_high(pin_E1); // E encender “RE1 a 1
OUTPUT_D(Grafico[Var1]); // Digito unidades envio al puerto B
output_toggle(PIN_E1); // E Cambia el estado y apagalo “RE1 a 0
delay_ms(1); // Retardo Para evitar Datos
output_toggle(PIN_E1); // E Cambia el estado y enciendelo “RE1 a 1
}
}
Me pregunto si tendría que ver con la memoria interna de la pantalla ya que solo esta recibiendo datos en los primeros 2080 Pixeles de los 12800 de la pantalla.
Otra posibilidad que se me ocurre es que se tengan que mapear cada 2080 pixeles o cada 260Byte´s un cambio de carro o puntero de tal forma que no se salga la información de la pantalla la verdad ya estoy un poco liado con esto y agradecería si me pudiesen tirar un cable.
Como comentario en la memoria del micro mi código solo consume el 6% de la ROM
Adjunto unas imágenes de la pantalla trabajando para que tengan una idea más clara de lo que intento explicar.
Agradezco de antemano su atención y ayuda.
P,D. si les interesa el PCB de la pantalla con gusto se lo subo.
P,D-2 El firware lo cargo al micro con el botlooader del CCS desde el Serial Port Monitor por USB
Saludos cordiales.
Venga ya que suena tu proyecto de lujo y multi funcional yo solo le puse a mi targeta un conector USB y RJ11 para conectar modulos en bus y que sea fasi la expancion del sistema, pero tu si que te estas volando la barrda jejeje.
Saludos.
Gracias, ya heche a andar el display nokia 5110, encontre 2 librerias que me servian para ello y ambas funcionaron, una para el 3310 (lo probe y es compatible) y otra adaptada al 5110 que solo tuve q modificar un poco la inicializacion para que funcionara en fisico, dejo los enlaces para aportar al tema:
http://www.ccsinfo.com/forum/viewtopic.php?t=25571
http://know.plugandprogram.com/index.php?title=PIC32-MX_Firmware:_Nokia_5110
En lo personal me gustó mas la libreria del 3310 pero deje de usarla porque no encontre como imprimir en video inverso, si alguien sabe como hacerlo le agradeceria mucho.
La libreria del 5110 tiene esa opcion y por eso la estoy usando pero tengo problemas para imprimir numeros almacenados en una variable, igual la ayuda es bien recibida.