Microcontroller › 8051 › plz tell the problem in this lcd program.it is not showing the output › just change the this connect
June 28, 2013 at 4:51 am
#10050
Participant
just change the this
connect your lcd data pins to P2
void lcd_command(unsigned char value)
{
P2=value;
rs=0;
rw=0;
e=1;
delay_ms(100);
e=0;
}
void lcd_data(unsigned char value)
{
P2=value;
rs=1;
rw=0;
e=1;
delay_ms(100);
e=0;
}
or
if you use this connect ur lcd data pins to P1
void lcd_command(unsigned char value)
{
P1=value;
rs=0;
rw=0;
e=1;
delay_ms(100);
e=0;
}
void lcd_data(unsigned char value)
{
P1=value;
rs=1;
rw=0;
e=1;
delay_ms(100);
e=0;
}