3.1 Voltage Divider
The acquisition time is a fixed 2 μs on the PIC16F15244 microcontroller family. For best results, the capacitor must charge to 0.5 Least Significant Bits (LSb) within the 2 μs time. 1 LSb is defined as:
Where VREF is the voltage reference and n is the number of bits in the ADC result.
Additionally, the impedance into the ADC is recommended to be 10 kΩ or less. For a voltage divider, the equivalent external impedance seen by the ADC is the top and bottom resistors in parallel:
If it is not possible to reduce the impedance of the resistor ladder, adding capacitance (≤ 33 nF) across the bottom resistor may help by providing a low-impedance source of charge for the ADC at the cost of response time. This is discussed in detail in Maximizing the Signal: Tips and Tricks to Properly Acquiring Analog Signals (DS00004225A).