Well, actually the input resistance of the ADC will change relative to the Vcc. For 5 volts would be 7K according to the diagram in Fig.11-2 of 16F877 DS and ading the interconnect resistance of 1K, makes for a total 8K. So this is a factor to concern when sampling the input. So, I would suggest to skip the maths and do a longer sampling just to be sure.
Ioannis
Bookmarks