Well if I understood what the problem was I would not be asking here

The fact is that the ADCIN code gives me an oscillating reading, and the manual method gives me a stable value.

I don't know the reason, but I would like to know. This is a 16F688.