Projects › Projects › How to interface GPS with PIC18F4550 Microcontroller › LCD not initialized! Check
July 28, 2012 at 5:26 pm
#8350
Participant
LCD not initialized!
Check your circuit connections.
Still not working, then modify the lcdcmd() function as shown below.
void lcdcmd(unsigned char cmdout)
{
lcdport=cmdout; //Send command to lcdport=PORTB
rs=0;
rw=0;
Delay_ms(10); //add a delay here also
en=1;
Delay_ms(10);
en=0;
}
Also make sure that the PORTB, rs, rw, en are properly set as output, and the function Delay_ms() is generating millisecond delays as much as the parameter given in the function call.