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.=20 > 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=20 > 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=20 > initializing. It never goes in to 2 line mode. There is also no > cursor.=20 > 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=20 > 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 > --=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 Richard, Be sure all analog registers are set to turn off=20 analog functions on the pins you are using for=20 control. Since each chip varies you will have tor=20 efer to the spec sheet. Do a search in your PDF=20 reader for analog and note the registers involved=20 like ADCON, etc. Read the list of bit controls and=20 set them to ensure they are off. If you don't do that, you cannot guarantee the state=20 of the pins even if you have sent them as outputs. Best, Ray --=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 .