http://Hi Jonathan,
Yes, you are absolutely right. I have connected the V1x- pin to AGND.
The o/p after the data o/p is processed through the below logic(according to the data sheet), and after this calculation it should get the exact value of i/p voltage but the actual o/p is different.
Please verify:
// converting the 2's complemented binary result to corresponding voltage
if(array[i] <= 0x1FFFF)
{
array[i] = (array[i]*2)/13107.2; // for 10v range (numerator*2)
}
else
{
array[i] = 0x3FFFF - array[i];
array[i] = (array[i]*2)/(-13107.2); // for 10v range (numerator*2)
}
I am attaching the code, please verify and suggest if any improvements/corrections.
(Code composer Studio is used for code development)
Thankyou,
Lakshmi.