Hi, I was wondering how a measured voltage is converted by an ADC. Say you have 2 probes. On the positive probe you 5V and on the negative you have 2V. The drop is 3V. If you have an ADC that has a 5V ref+ and 0V ref-. What value is taken to the Ain input? If your measuring range was between -100V and +100V and you scaled and shifted it down to a 0-5V range you could use a differential amp with the output going to AIN. But then I thought what if the difference is -5V. I thought a way around this would be to take a direct measurement of 0V at AIN1 and 5V at AIN2 and subtract them in software.
Can anyone give me a better alternative?
Can anyone give me a better alternative?

