Documentos de Académico
Documentos de Profesional
Documentos de Cultura
GLCD 240x128
Este ejemplo bsico muestra cmo programar el PIC18F4550 para la presentacin de
imgenes y texto en el GLCD 240x128. Se utiliz el conocido GLCD JHD240128D.
T6963C_ctrlwr at RB2_bit;
T6963C_ctrlrd at RB1_bit;
T6963C_ctrlcd at RB0_bit;
T6963C_ctrlrst at RB4_bit;
T6963C_ctrlwr_Direction at
T6963C_ctrlrd_Direction at
T6963C_ctrlcd_Direction at
T6963C_ctrlrst_Direction at
TRISB2_bit;
TRISB1_bit;
TRISB0_bit;
TRISB4_bit;
//
//
//
//
//
//
//
//
Seal
Seal
Seal
Seal
Seal
Seal
Seal
Seal
WR write
RD read
CD command/data
RST reset
WR write
RD read
CD command/data
RST reset
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,128, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,128, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
........Se ha eliminado la mayor parte de este arreglo........
.....Descargar el cdigo completo en el link disponible.......
0, 1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255
};
void main() {
T6963C_ctrlce_Direction = 0;
T6963C_ctrlce = 0;
T6963C_ctrlfs_Direction = 0;
T6963C_ctrlfs = 0;
T6963C_Init(240, 128, 8);
bits.
T6963C_Graphics(1);
T6963C_Text(1);
//Habilitar el T6963C.
//Fuente 8x8 (FS<1:0>=00).
//Inicializa el T6963C. Caracteres de 8
//Habilita la presentacin de grficos.
//Habilita la presentacin de texto.
T6963C_Write_Text("Presentacion de",0,2,T6963C_ROM_MODE_OR);
T6963C_Write_Text("texto en un GLCD240x128",0,3,T6963C_ROM_MODE_OR);
T6963C_Write_Text("usando mikroC.",0,4,T6963C_ROM_MODE_OR);