JHD204A LCD display for pic16f877a using Mplab IDE software C programming really need

Status
Not open for further replies.

rhoda

Newbie level 3
Joined
Oct 20, 2011
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,309
Am very new to PIC programing and want to display a very simple message on 20x4LCD. Am using PIC16877A with Mplab Hi-Tech C compiler
my code are demonstrated below :-(

void main(void)
{
init_IO(); // initialize the Input and Output of PIC16F877A pin

lcd_clr(); //clear LCD
delay(500); //delay
lcd_goto(0); //initial display on 1St line
send_string("Welcom to PIC World"); //Display "Welcom to PIC World" on lcd
lcd_goto(20); //Display on 2nd line
send_string("World of pgming"); //Display "World of pgming" on lcd
lcd_goto(40); //Display on 2nd line
send_string("Wrong Display"); //Display "Wrong Display" on lcd
}

The last statement makes the lcd to display on the fourth line instead of displaying in line 3
please i really need help on how to display in line 3 of JHD204A LCD display

Thanks all
 

1st line, lcd_goto(0)
2nd line, lcd_goto(40)
3rd line, lcd_goto(14)
4th line, lcd_goto(54)
 
Reactions: rhoda

    rhoda

    Points: 2
    Helpful Answer Positive Rating
Thanks
It really works, Am very grateful. *** bless yeah
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…