I have an example program that melanie is very good.
I have a problem with the port configuration registers and
ADCON0 and ADCON1
device 16f876a
Trisa:% 00001110 'output RA0, RA1, RA2, RA3 input

ADCON0 =% 11,000,000
ADCON1 =% 00,000,111
Are you sure you are typing it as shown in Melanie's code? The way you've shown here will give compilation errors. Or maybe I don't understand your question.

Trisa = %00001110
ADCON0 = %11000000
ADCON1 = %00000111