position index for second line is starts at 40. actual move value is 68 something. try it, you will find correct index value. ----- Original Message ----- From: "Steve Maroney" To: "Microcontroller discussion list - Public." Sent: Sunday, July 12, 2009 12:46 AM Subject: RE: [EE] Trouble on 2nd line of LCD > In order to contribute to this list, I've wanted to let you guys know > that I found my problem. > > In my lcd_init routinue, I was sending the function set instructions (2 > lines, 8bit, resolutions, etc) BEFORE my next command, which was turning > on the LCD and homing the cursor. > > The solution was to first turn on the LCD, then to send the setup > instructions, then clear the LCD just in case there is chars on the > display. > > Thanks for the help. > > > Best Regards, > Steve Maroney > > Business Computer Support, LLC > Mobile Phone:504-914-4704 > Office Phone: 504-904-0266 > Fax: 866-871-7797 > > > > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Wouter van Ooijen > Sent: Saturday, July 11, 2009 1:35 PM > To: Microcontroller discussion list - Public. > Subject: Re: [EE] Trouble on 2nd line of LCD > > >> I have this LCD: http://www.futurlec.com/LED/LCD16x2.shtml > > > > There are two different styles of 2-line LCD display - those whose > > 2nd line start address begins right after the 1st line finishes and a > > similar-looking display whose 2nd line start address begins at (I > > think) either decimal 40 or decimal 80. I suspect that you are > > running into that problem. > > > > Sorry that I can't remember the specific details right now but it > > might prompt someone else to chime in with the start address of the > > 2nd line. > > When all magic and guesswork fails, where do you go for help? Hint: > follow the URL.. No, not the ones in my sig. > > -- > > Wouter van Ooijen > > -- ------------------------------------------- > Van Ooijen Technische Informatica: www.voti.nl > consultancy, development, PICmicro products > docent Hogeschool van Utrecht: www.voti.nl/hvu > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist