An ideal unipolar 12-bit output has 4,096 code positions. For this example select unity gain and a 2.5 V reference. Multiply the input code by 2.5/4,096. The highest code is 4,095, one ideal step below 2.5 V. In the worked example, DAC code 1,024 gives ideal output of 0.625 V.

The recorded quantity and the calculated result

Keep three columns in a commissioning export: the original dac code, the configuration used in the conversion and the resulting ideal output (v). Recompute the result for the lower, middle and upper worked points before interpreting a field difference. A change in range, units or representation can otherwise be mistaken for a change in the process.

Two points to check independently

At 512 the calculated ideal output is 0.3125 V. At 1,024 it is 0.625 V. Subtracting the first output from the second gives 0.3125 V. These values give two independent checkpoints for a spreadsheet or a logger conversion.

AD5328 digital output steps. DAC code changes from 0 to 4,095 and the calculated Ideal output (V) changes from 0 to 2.499.
AD5328 digital output steps. DAC code changes from 0 to 4,095 and the calculated Ideal output (V) changes from 0 to 2.499. Figure by Industry Applied.

Worked data

DAC code

Ideal output (V)

0

0

1

0.0006103516

512

0.3125

1024

0.625

2048

1.25

3072

1.875

4095

2.49939

Checking the ends of the working range

The interval from the middle to the upper test point runs from 1,024 to 4,095 on the dac code axis. Its average change in ideal output (v) per input unit is 0.00061. This is a two-point slope for that interval. To check a spreadsheet or a gateway calculation, enter 4,095 in a separate test row and compare its result against 2.499 at the displayed precision.

Installation and interpretation

Compare the measured reference voltage with the value used in the calculation. Offset, integral nonlinearity and output loading can move an actual channel away from its ideal line. Confirm the channel address independently when a single command controls several analogue outputs.

For a repeatable verification, capture a small known case and a second case well away from it. Check whether the difference follows the response in the table, then restore the working configuration and repeat one reading. Store a separate status field for missing or invalid input. Substituting zero would make a dropped observation indistinguishable from a legitimate numerical zero.

Implementation and worked data

The source implementation is maintained in the .NET IoT device project. The component notes and manufacturer references document the supported device and its interfaces. Download the worked numerical example.