It looks to me like you have the ports set up correctly as outputs. I didn't scrutinize the code given on the webpage you mention, but you should read the HD44780 datasheet and go through the code line by line until you understand it. It may be helpful for you to read a very similar routine in C: http://www.ubasics.com/adam/electronics/lcd/cc5xlcd.c I use the CC5X compiler, which has a free version for up to 1K of code. The code should compile with few modifications on other C compilers as well. Find the differences between this routine and your routine and you will find some clues as to where you should focus your debugging efforts. There are many 44780 tutorials out there as well, which you can compare with your chosen routine. Lastly, please read http://www.piclist.com . It has some useful information about tagging your messages ([PIC], [EE], [OT]). Your first message was likely not seen by the majority of the list due to improper tagging. Good luck! -Adam On 1/29/07, Balthasar Indermuehle wrote: > Hi all, > > I've been unsuccessful in trying to get a Hitachi 44780 compatible (2 lines, > 16 chars) LCD to work with my PicKit2 demo board featuring a 16F917. Instead > of "Hello" being printed, I get a solid block character as well as a > blinking cursor. The good news I guess is that something at least shows up, > but it's not what I wanted... > > The code I've been using is the sample found here > http://www.piclist.com/techref/io/lcd/pic.htm by Barry. I changed what I > believe to be necessary to work with the 16F917: turn comparators off in the > init section. I adjusted the delay timers as well, but that had no effect at > all. > > Here's the init function: > > init: > clrf PORTB > clrf PORTA > bsf STATUS, RP0 ; Select bank 1 > movlw 0x07 > movwf CMCON0 ; Comparators off - PORTA on > movlw 0x07 > movwf CMCON1 ; Comparators off - PORTA on > clrf ANSEL > movlw b'00000000' ; Select PORTB as outputs > movwf TRISB > movlw b'00000000' ; Select PORTA as outputs > movwf TRISA > bcf STATUS, RP0 ; Select bank 0 > > The LCD is connected as follows: > > RA0 -> DB4 > RA1 -> DB5 > RA2 -> DB6 > RA3 -> DB7 > RA4 -> RS > RB3 -> SE > > Does anyone see any errors in that? > > Thanks > > Balthasar T. Indermuehle > University of New South Wales > Antarctic Astrophysics Group > Room OMB 169 Phone +61 2 9385 6678 > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Moving in southeast Michigan? Buy my house: http://ubasics.com/house/ Interested in electronics? Check out the projects at http://ubasics.com Building your own house? Check out http://ubasics.com/home/ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist