Цитата(Ingreeh @ May 23 2012, 21:58)

К сожалению, схему подправить нельзя, нужно работать с тем, что есть, в противном случае я бы не заморачивалась с диф.режимом
я надеюсь Вы сделали следующим образом (внимание на выделенный фрагмент)
Цитата
The ATmega8535 features a 10-bit successive approximation ADC. The ADC is con-
nected to an 8-channel Analog Multiplexer which allows eight single-ended voltage
inputs constructed from the pins of Port A. The single-ended voltage inputs refer to 0V
(GND).
The device also supports 16 differential voltage input combinations. Two of the differen-
tial inputs (ADC1, ADC0 and ADC3, ADC2) are equipped with a programmable gain
stage, providing amplification steps of 0 dB (1x), 20 dB (10x), or 46 dB (200x) on the dif-
ferential input voltage before the A/D conversion. Seven differential analog input
channels share a common negative terminal (ADC1), while any other ADC input can be
selected as the positive input terminal. If 1x or 10x gain is used, 8-bit resolution can be
expected. If 200x gain is used, 7-bit resolution can be expected.
также обращаю внимание на
Цитата
When switching to a differential gain channel, the first conversion result may have a
poor accuracy due to the required settling time for the automatic offset cancellation cir-
cuitry. The user should preferably disregard the first conversion result.
в коде у Вас я этого не увидел и ещё
Цитата
If differential gain channels are used, the input circuitry looks somewhat different,
although source impedances of a few hundred k? or less is recommended.
по поводу корпусного исполнения МК
Цитата
The differential input channel are not tested for devices in PDIP and PLCC Package.
This feature is only guaranteed to work for devices in TQFP and MLF Packages.
не вижу в Вашем коде вычисления диф измеряного значения:
(от напряжения канала отнять напряж на ADC1(негативное)) умножаете на коэф усил (Ваш = 10) * на 512 и делите на опорное
формула на 215 странице ДШ
Цитата(Ingreeh @ May 22 2012, 15:51)

на одну ножку подается напряжение питания схемы нашего флюгера, на вторую полезный сигнал.
?????