ورودی adc ها امپدانس نسبتا بالایی دارن بنابراین کم بودن امپدانس منبع ولتاژ مشکلی ایجاد نمیکنه ( از طرفی منبع ولتاژ ایده آل امپدانس صفر باید داشته باشه)
اینا به فکر من میرسه :
فرکانس نمونه برداری رو تا جای ممکن پایین بیارید
-یه فیلتر پایین گذر تو ورودی adc قرار بدید
-تو صفحه 207 دیتاشیت میکرو هم یه توضیحات مختصری داده :
The Analog Input Circuitry for single ended channels is illustrated in Figure 105. An ana-
log source applied to ADCn is subjected to the pin capacitance and input leakage of that
pin, regardless of whether that channel is selected as input for the ADC. When the chan-
nel is selected, the source must drive the S/H capacitor through the series resistance
(combined resistance in the input path).
The ADC is optimized for analog signals with an output impedance of approximately
10kΩ or less. If such a source is used, the sampling time will be negligible. If a source
with higher impedance is used, the sampling time will depend on how long time the
source needs to charge the S/H capacitor, with can vary widely. The user is recom-
mended to only use low impedant sources with slowly varying signals, since this
minimizes the required charge transfer to the S/H capacitor.
If differential gain channels are used, the input circuitry looks somewhat different,
although source impedances of a few hundred kΩ or less is recommended.
Signal components higher than the Nyquist frequency (fADC/2) should not be present for
either kind of channels, to avoid distortion from unpredictable signal convolution. The
user is advised to remove high frequency components with a low-pass filter before
applying the signals as inputs to the ADC.
اون موردی که من برخورده بودم (و احتمالا برای شما اینطور نیست) این بود که اطلاعات درست گرفته میشد ولی به کامپیوتر که فرستاده میشد (شبیه نمودار شما) صفر توش ایجاد میشد . ولی با توجه به اینکه تو برنامه شما همزمان 2تا نمودار داره نمایش داده میشه و فقط یکی خرابه ، پس مسلما ارتباط درسته .
یه چیز دیگه رو هم امتحان کنید ؛ تو برنامه میکرو ، قسمتی که adc رو میخونه رو تکرار کنید مثلا 10 بار و بعد میانگین اون 10تا رو به عنوان مقدار نهایی adc به کامپیوتر بفرستید . ببینید نمودار هنوزم صفر میده ؟ چه تغییری میکنه ؟