Thanks
I have solved by using units. Can anyone look at this if it's correct? I am not really a math person.
(3V - 0 V)/(2000 mbar - 200 mbar) = 1/600 V/mbar
And...
(2000 mbar - 200 mbar)/ (1024 - 0) = 225/128 mbar/bit
So by units: 1/600 V/mbar * 225/128 mbar/bit, the mbar cancels. And we get 3/1024 V/bit.
It looks incorrect.
Here is the correct equation for mbar/V:
600*V+200 (checking it real quick: for 0V it gives you 200mbar for 3V it gives you 2000mbar)
Converting that to mbar/bits:
(600*(3/1024))*ADC_code+200 (again for 0 it gives you 200mbar and for 1024 it gives you 2000mbar)
I basically construct a linear line with known points.
It is explained here:
here