I am trying to get a 128x64 GLCD display working with a PIC 18F452.
I have connected the GLCD according to the example circuit given in the GLCD section of the mikroC help files.And I have the following simple code running in the micro controller.
Code: Select all
void main()
{
Glcd_Init(&PORTB,2,3,4,5,7,6,&PORTD); // Init for GLCD module
do {
Glcd_Fill(2); // Clear screen
Glcd_Line(0, 2, 127, 11, 1);
} while (1);
}
Suspecting that there may be a shorted connection somewhere, I rechecked all the connections, but to no avail.
Also when I don't have a loop running, there isn't any flickering, but instead just a blank lit screen.
Anyone has any ideas as to what could be wrong?Also how do I figure out the controller for the GLCD?There isn't anything mentioned on the GLCD.