I'm using MCP4725 (datasheet) module, VCC is connected to a 4096V reference voltage. there's a steady 23mV offset:
0 - 23mV
50 - 73mV
100 - 123mV
...
How can I zero this offset error?
From the datasheet:
I'm using MCP4725 (datasheet) module, VCC is connected to a 4096V reference voltage. there's a steady 23mV offset:
0 - 23mV
50 - 73mV
100 - 123mV
...
How can I zero this offset error?
From the datasheet:
At least two ways come to mind.
1) Put a summing amplifier after your DAC adding in a -23 mV offset to the signal. Need to be careful and use precision resistors so that you don't introduce more error than the offset you're trying to correct for.
2) Do it in software, which was suggested by the data sheet and Elliott Alderson. Just subtract the digital equivalent of 23 mV from the desired voltage value before writing it to the DAC. You would have to do some sort of limiting or saturation operation on the low end of the range since the DAC won't handle a negative value properly, to prevent wrap-around of the DAC output.
In software, you could subtract 23 from the digital value before sending it to the DAC.
If I am reading the datasheet correctly then this offset value is within the specified maximum \$V_{OS}\$ for the converter, which is 0.75% of full scale. If the full-scale output is 4.096V then the maximum offset should be less than \$\pm 30.72\,\text{mV}\$.
However, you should make sure that this really is a constant offset value. The gain error and non-linearity errors may be more significant over the entire range of output values.