Hi,
I applied a bipolar test voltage (Fig. 'test_voltage.jpg' in attachment) at pin 1 of the ADC of the 56F8367 evaluation module. I configured the ADC to work in differential mode. Pin 0 was tied to the analog ground. The result of the ADC conversion (Fig. 'adc_result.jpg') reveals only one polarity of the voltage. How come?
Thanks in advance for any help.
Kristof Geldhof
For differential measurements, the digital result is proportional to the ratio of the difference in the inputs to the difference in the reference voltages.
so for 0V on both inputs the ADC result should be 2048 (or 2048*8) for +3.3V on second input the result is 0 or 4095 depend which input is grounded so each time you get value from 0-4095.
if you now set teh ADC offset register to 2047 (or 2047*8) then the sign bit in result registers will be set and you get negative result if using interger number