The type of LCD you are using will be helpful... is it a Hitachi module?? Quoting "Gregory A. Pruden" : > Hi all, > I have some nibble mode code that works for a 16x2 LCD and it also works for > the 16x1 but the second line is the second half. Being a newbie to LCD I > just wanted to find out if this is how these single line LCDs work or is > there something to change in the initialization code. > > For clarity the LCD : > 16x2: NOW IS THE TIME > 16x1: NOW IS TH > if I do a "second line home" then it will complete the line > > > My current LCD init looks like this: > > CALL Delay15ms > ;wait for power-up and reset > CALL Delay15ms > CALL Delay15ms > movlw 0x03 ;send init > > CALL LCDSENDN > CALL Delay5ms > movlw 0x03 ;send init > > CALL LCDSENDN > CALL Delay250us > movlw 0x03 ;send init > > CALL LCDSENDN > CALL Delay250us > movlw 0x02 ;switch to > 4 bit mode > CALL LCDSENDN > CALL Delay5ms > movlw 0x28 ; sets the LCD's > function to 4 bit, 1 line, 5x7 font > CALL LCDSENDB > CALL Delay5ms > movlw 0x6 ; Entry mode set, > increment, no shift > call LCDSENDB > call Delay250us > movlw 0xE ; display > on, cursor on, blink off > call LCDSENDB > call Delay250us > > > Thanks in advance, > Gregory > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > ---------------------------------------- This mail sent through www.mywaterloo.ca -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body