What if I use higher input resistance (> 2.5kOhm) than Microchip recommends in datasheet?
"The source impedance affects the offset voltage at the analog input (due to pin leakage current). The maximum recommended impedance for analog sources is 2.5 kΩ. After the analog input channel is selected (changed), the channel must be sampled for at least the minimum acquisition time before starting a conversion."Internal leakage is ~100nA.
So, what if:
Rs = 100kOhm, V_ain = 5V -> I_in = 50uA
In this case leakage is 1/500 of input current. Should not affect too much.
By calculating Tc with 100kOhm I got 19.6uS, total time should be over 21uS
So, is code below OK or not?
Code:
<code><font color="#000000"><b>DEFINE </b>ADC_BITS 8 <font color="#000080"><i>' ADCIN resolution (Bits)
</i></font><b>DEFINE </b>ADC_CLOCK 2 <font color="#000080"><i>' ADC clock source (Fosc/32)
</i></font><b>DEFINE </b>ADC_SAMPLEUS 500 <font color="#000080"><i>' ADC sampling time (uSec)</i></font></code>
This ADC is bit unclear to me and I would like to understand it better.
BR,
-Gusse-
Bookmarks