Well, I readed it, but I still dont understand, I have readed the part in the datasheet about the ADC, and I guess its register 11-2 bit 0.3 I have to change, and since I use AN5,6,7 I dont really understand how to set this value.

I want to use AN0,AN1,AN2 as digital IO, AN5,AN6,AN7 as analog inputs, Vdd as Vref+ and Vss as Vref-

Is this possible ? or do I have to rethink ?

The page in the datasheet (for 16F87XA) I'm looking at is 130, "