Ken,

you have written parts of this thread also to the PicList-mailinglist. Just try to understand the answers there !

I think you have 2 problems in 1 thread:

1. talking to a LCD by 8 data-lines

2. Using the AD-modul of a 16F876A


1.:
You have to wire PortB.0 until PortB.7 to the signals DB0 to DB7 of the LCD. The E-, RS- and RW-signal can be set to any free digital portpin !

2.:
my writing from the PicList:
-----
Ken,
you have to make clear, what ports you are using. This is important !
First you tried PortC.0 as AN4 - wrong,
then you changed it to PortA ? What pin ?
Now you use an unknwon language and refers to channel 3.

So,
make it easy for us to write your program.

What Port-Pin is connected to the analog input ?
-----