Hi Richard, I'm sure you've checked all the outputs are working and properly connected. I usually set a square wave on each pin, one at the time, and check the display and of the signal. Could this be a timing issue? Leave a significant delay (100ms+) at startup and some delay (20ms extra or so) after each command issued to the display. Good luck, Joep 2015-10-20 10:08 GMT+02:00 Ray Haddad : > On 20 Oct 2015 at 2:43, Richard R. Pope wrote: > > Hello all, > > I am trying to get a 16f877a to talk to a > > NHD-0216BZ-FL-YBW lcd. > > PortD is connected to the data lines and RA0, RA1, and RA2 are the > > control lines. They are R/S, R/W, and EN in that order. I have > > checked > > power, ground, and the clock. These are all ok. I also checked the > > frequency and it is 7.99997 MHz with a 8.0 MHz crystal. The LCD is > > not > > initializing. It never goes in to 2 line mode. There is also no > > cursor. > > I am using MpLabX and the XC8 compiler. I am using a PICKit2 for my > > programmer. I have spent several hours trying to sort this out and I > > am > > stumped. Could I please get some help? Should I post the source code > > here? > > Thanks, > > Richard R. Pope > > President > > Reedsburg Area Model Railroad Club, RAMRC > > 1230 19th Street #5 > > Reedsburg, WI 53959 > > 608-768-7448 > > mechanic_2@charter.net > > -- > > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > Richard, > > Be sure all analog registers are set to turn off > analog functions on the pins you are using for > control. Since each chip varies you will have tor > efer to the spec sheet. Do a search in your PDF > reader for analog and note the registers involved > like ADCON, etc. Read the list of bit controls and > set them to ensure they are off. > > If you don't do that, you cannot guarantee the state > of the pins even if you have sent them as outputs. > > Best, > Ray > > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .