dim912
Junior Member level 2
I want to run a LM1264LFC(64*128) display using the GLCD library of MicroC. I wrote a simple program after referring the example comes with MicroC 4.60 help. But I was not able to display any thing on the screen. I used PIC16F877A microcontroller. Then I refer the MicroC 6.0 users manaualUnder the GLCD library manual noted that this library can only be used with PIC18 family. But in the diagram given in the help document of microC 4.6 installation indicates the its controller as PIC16F877.
can any body tel me, whether I can use GLCD and PIC16F877A PIC to drive this LCD. my simple code is given bellow.
char GLCD_DataPort at PORTB;
sbit GLCD_CS1 at RD4_bit;
sbit GLCD_CS2 at RD3_bit;
sbit GLCD_RS at RD5_bit;
sbit GLCD_RW at RD6_bit;
sbit GLCD_EN at RD7_bit;
sbit GLCD_RST at RD2_bit;
sbit GLCD_CS1_Direction at TRISD4_bit;
sbit GLCD_CS2_Direction at TRISD3_bit;
sbit GLCD_RS_Direction at TRISD5_bit;
sbit GLCD_RW_Direction at TRISD6_bit;
sbit GLCD_EN_Direction at TRISD7_bit;
sbit GLCD_RST_Direction at TRISD2_bit;
// End Glcd module connections
void delay2S(){ // 2 seconds delay function
Delay_ms(2000);
}
void main() {
TRISA =0x00;
TRISB =0x00;
TRISC =0x00;
TRISD =0x00;
Glcd_Init(); // Initialize GLCD
Glcd_Fill(0x00); // Clear GLCD
Glcd_Set_Font(Font_Glcd_Character8x7, 8, 7, 32); // Choose font, see __Lib_GLCDFonts.c in Uses folder
while(1){
Glcd_Write_Text("FYPUOM", 1, 7, 2); // Write string
delay2S();
}
}
can any body tel me, whether I can use GLCD and PIC16F877A PIC to drive this LCD. my simple code is given bellow.
char GLCD_DataPort at PORTB;
sbit GLCD_CS1 at RD4_bit;
sbit GLCD_CS2 at RD3_bit;
sbit GLCD_RS at RD5_bit;
sbit GLCD_RW at RD6_bit;
sbit GLCD_EN at RD7_bit;
sbit GLCD_RST at RD2_bit;
sbit GLCD_CS1_Direction at TRISD4_bit;
sbit GLCD_CS2_Direction at TRISD3_bit;
sbit GLCD_RS_Direction at TRISD5_bit;
sbit GLCD_RW_Direction at TRISD6_bit;
sbit GLCD_EN_Direction at TRISD7_bit;
sbit GLCD_RST_Direction at TRISD2_bit;
// End Glcd module connections
void delay2S(){ // 2 seconds delay function
Delay_ms(2000);
}
void main() {
TRISA =0x00;
TRISB =0x00;
TRISC =0x00;
TRISD =0x00;
Glcd_Init(); // Initialize GLCD
Glcd_Fill(0x00); // Clear GLCD
Glcd_Set_Font(Font_Glcd_Character8x7, 8, 7, 32); // Choose font, see __Lib_GLCDFonts.c in Uses folder
while(1){
Glcd_Write_Text("FYPUOM", 1, 7, 2); // Write string
delay2S();
}
}