I also have the same problem,i have a code compiled for pic16f877
the data,clock pin is on porta pin,when i program it on pic16f877a i did not work.
how would i disable the comparator.