08-19-2013 11:21 AM
I need to convert voltage values/range to decimal values/range.
Example: I read voltage (range 0 to 1.0volts) form DAC and covert it corresponding decimal value (decimal value range is 0 to 16000).
0 decimal = 0 volts
16000 decimal = 1.0volts.
Thanks for the help.
08-19-2013 11:28 AM
Calculate the VLSB (voltage of the least significant bit) and multiply the DAC response by that. (VRefHigh - VRefLow) / Number of Bits, or in your case (1 - 0)/16000 = 0.0000625. So take your read back from the DAC times 0.00625. I'm curious though, 16,000 is an odd number for a DAC, they are usually a power of 2 like 2^14 (16,384). What kind of DAC do you have?
08-19-2013 02:00 PM
Thank you for your quick reply.
We are using LTC 2620. For now, we will be using the values up to 16000.
Thanks Again.
08-19-2013 03:09 PM
I'm not sure how you'd get a value of 16000 out of the 2620 as that is only a 12-bit DAC that will produce values from 0 to 4095. Here's the transfer function directly copied from page 12 of Linear's datasheet.
08-19-2013 04:26 PM
Sorry for the typo. It is LTC 2600.
08-19-2013 04:51 PM
The LTC 2600 is a 16-bit DAC. So the max value is really 65535. But that is from 0 to 5V. With that rational, 1V should be 13107.
08-19-2013 05:03 PM
We need fine tuning down to mVolts.
08-19-2013 06:22 PM
@crossrulz wrote:
But that is from 0 to 5V
The Ref is an external pin and can be wired to whatever reference he has available, which leads me to believe that his reference is set to 4.096 volts.