I'm surprised it works with a 16F876a looking at the current ADCONx settings...