Are you sure setting up for multiline isn't movlw 0x28 instead of movlw 0x38? I'm just going by some code for another similar display, but it's hard to compare because I've got it in 4 bit mode. I'd say that first you should go back to the datasheet and go over the initialization process with a fine tooth comb - make sure you're also meeting the timing requirements listed, i.e. if it says stay in reset for 25msec, try staying in reset for 100msec, etc.. Tony Steve Maroney wrote: > Also, I think I should add that If I turn the contrast all the up, to > where I cant read the chars and see square blocks, I thought I would see > the second row blocks, as I do the first row, but I only see the first > row. > > Hopefully that makes some sense. > > > 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 Steve Maroney > Sent: Friday, July 10, 2009 10:31 PM > To: Microcontroller discussion list - Public. > Subject: RE: [EE] Trouble on 2nd line of LCD > > Dear gang, > > I have this LCD: http://www.futurlec.com/LED/LCD16x2.shtml > > I can write chars to the LCD and seems to work ok but when I move the > cursor to the 2nd line, and write to the LCD, nothing is displayed. > > To move the cursor the 2nd line, I clear the RS bit, send 0xC0, then > pulse the EN bit. > > The code works as expected on the OSHON PIC IDE/Simulator. Anyone have > any ideas on what im doing wrong ? > > Before writing characters to the LCD, I have this small function to > setup the LCD: > > First I bring the RS bit low and bring the EN bit high > > movlw 0x38 ; 8bit, 2 line, 5x7 resolution > movwf PORTC > > then I pulse the EN bit > > movlw 0x0C ; display on, cursor off > movwf PORTC > > pulse the EN bit again > > movlw 0x01 ; clear LCD display > movwf PORTC > > pulse the EN bit again > > finally I bring the RS bit high before returning from the routine. > > > Best Regards, > Steve Maroney > > Business Computer Support, LLC > Mobile Phone:504-914-4704 > Office Phone: 504-904-0266 > Fax: 866-871-7797 > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist