David, I also left out the CMCON =3D 0x07; instruction. Ouch! But it still=20 doesn't work it is not pulling the RA0 line high. And yes the LCD is in=20 8 bit mode. Thanks, rich! On 10/23/2015 4:02 AM, David Duffy (AVD) wrote: > Also add this line at the top of the main function: ADCON1 =3D 0x0F; > > This will disable the analog inputs. The data sheet says analog won't > override a pin set as output, but I'd add that line to make sure. > David... > > On 23/10/2015 6:48 PM, Richard R. Pope wrote: >> Alan, >> I probably have but I can't find it. This PIC is a lot more >> complicated than a 16f84a. So I have turned to you folks for help and >> guidance. I have poured through the datasheets and the code over and >> over. I suspect that when we find it it will be one of those ah, how did >> I ever miss that? >> Thanks, >> rich! >> >> On 10/23/2015 3:38 AM, alan.b.pearce@stfc.ac.uk wrote: >>> I haven't the time to look through your code, but I am wondering if you= have messed up the RA port initialisation so that the rs pin is open colle= ctor without a pullup. >>> >>> >>>> James and et al, >>>> The code is posted on pastebin.com. Here is the link to it: >>>> http://pastebin.com/VhpXvqaQ. >>>> Thanks, >>>> rich! >>>> --=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 .