RCM4300 ADC problem

Dear all,

I have a question about the RCM4300 ADC-convertor. I try to read a voltage between the 0V and 2V from a sensor. and I want an accuarcy of more than 1 mV. Is this posible, if it is how can I do that?

Also I have a question about the function anaInVolts(). This functions uses gaincode, volt1, value1, volt2 and value2. But whare stand those values for?



The ADC has 12-bit resolution, which is 4096 steps and thus can in theory measure 488 microvolts if the range is set from 0 to 2 volts. In other words, about 1/2 mV per step… so at least that should be possible.

And I believe anaInVolts is talking about a differential ADC, which subtracts the difference in volt1 and volt2 by converting and producing value1 and 2. As long as there is some sort of way to set a VRef High of 2V and VRef Low of 0V, I would assume no problems?