Hi, Jessey

at first sight,

You also have to disable Comparators and declare ADC shared pins as digital ...

Alain

PS: PIC16F877-I/PT Microprocessor or 16 F 887 ???