4.2 Output Transfer Functions
To program a DAC, you must select the output you desire in volts, then apply a transfer function to that value. The transfer function for code = output is:
The UNIPOLAR transfer function of the DAC is:
FSV / 4096 * CODE = OutV or CODE = OutV / FSV * 4096
For Example:
If the range is 0 to 5V, and you desire a 2V output CODE = 2/5 * 4096 CODE = 1638
The BIPOLAR transfer function for the DAC is:
FSV/4096 * CODE - 0.5 * FSV or CODE = (OutV + 0.5 * FSV) / FSV * 4096
For example:
If the range is set to ±10 and you desire a −7V output
CODE = (−7V + 0.5 * 20) / 20 * 4096
CODE = 614
11