superbrew
Member
Hello, I am trying to use an 18F2520 with a GLCD and it seems to be running really slow. The GLCD fill command takes about 5-7 seconds to finish. Here is the code that I am using with the mikroC compliler.
I am also using the default project fuses. Thanks
Code:
void main()
{
TRISA = 0xff;
TRISB = 0x00;
TRISC = 0x00;
PORTB = 0x00;
PORTC = 0x00;
ADCON1 = 0x0f;
OSCCON = 0x07;
OSCTUNE = 0x40;
Glcd_Init(&PORTC,1,0,2,4,6,5,&PORTB);
Glcd_Fill(0);
Glcd_Set_Font(FontSystem5x8, 5, 8, 32);
Glcd_Write_Text("TEST",0,0,1);
}
I am also using the default project fuses. Thanks