Datasheet

AD5764R Data Sheet
Rev. D | Page 26 of 32
OFFSET REGISTER
The offset register is addressed by setting the three REG bits to 101. The DAC address bits select the DAC channel with which the data
transfer takes place (see Ta ble 10). The AD5764R offset register is an 8-bit register that allows the user to adjust the offset of each channel
by −16 LSBs to +15.875 LSBs in steps of one-eighth LSB, as shown in Table 18 and Table 19. The offset register coding is twos complement.
Table 18. Programming the Offset Register
REG2 REG1 REG0 A2 A1 A0 DB15 to DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
1 0 1 DAC address Don’t care OF7 OF6 OF5 OF4 OF3 OF2 OF1 OF0
Table 19. Offset Register Options
Offset Adjustment OF7 OF6 OF5 OF4 OF3 OF2 OF1 OF0
+15.875 LSBs 0 1 1 1 1 1 1 1
+15.75 LSBs 0 1 1 1 1 1 1 0
No Adjustment (Default) 0 0 0 0 0 0 0 0
−15.875 LSBs
1
0
0
0
0
0
0
1
−16 LSBs 1 0 0 0 0 0 0 0
OFFSET AND GAIN ADJUSTMENT WORKED
EXAMPLE
Using the information provided in the Offset Register section,
the following worked examples demonstrate how the AD5764R
functions can be used to eliminate both offset and gain errors.
Because the AD5764R is factory calibrated, offset and gain errors
should be negligible. However, errors can be introduced by the
system within which the AD5764R is operating. For example,
a voltage reference value that is not equal to 5 V introduces
a gain error. An output range of ±10 V and twos complement
data coding are assumed.
Removing Offset Error
The AD5764R can eliminate an offset error in the range of
−4.88 mV to +4.84 mV with a step size of one-eighth of a
16-bit LSB.
1. Calculate the step size of the offset adjustment, using the
following equation:
Offset Adjust Step Size =
82
20
16
×
= 38.14 µV
2. Measure the offset error by programming 0x0000 to the
data register and measuring the resulting output voltage.
For this example, the measured value is 614 µV.
3. Determine how many offset adjustment steps this value
represents, using the following equation:
Number of Steps =
µV14.38
µV614
=
SizeStepOffset
ValueOffsetMeasured
= 16 Steps
The offset error measured is positive; therefore, a negative
adjustment of 16 steps is required. The offset register is
eight bits wide, and the coding is twos complement.
The required offset register value can be calculated as follows:
1. Convert the adjustment value to binary: 00010000.
2. Convert this binary value to a negative twos complement
number by inverting all bits and adding 1: 11110000.
3. Program this value, 11110000, to the offset register.
Note that this twos complement conversion is not necessary in
the case of a positive offset adjustment. The value to be pro-
grammed to the offset register is simply the binary representation
of the adjustment value.
Removing Gain Error
The AD5764R can eliminate a gain error at negative full-scale
output in the range of −9.77 mV to +9.46 mV with a step size of
one-half of a 16-bit LSB.
1. Calculate the step size of the gain adjustment, using the
following equation:
Gain Adjust Step Size =
22
20
16
×
= 152.59 µV
2. Measure the gain error by programming 0x8000 to the
data register and measuring the resulting output voltage.
The gain error is the difference between this value and −10 V.
For this example, the gain error is −1.2 mV.
3. Determine how many gain adjustment steps this value
represents, using the following equation:
Number of Steps =
µV59.152
mV2.1
=
SizeStepGain
ValueGainMeasured
= 8 Steps
The gain error measured is negative (in terms of magnitude).
Therefore, a positive adjustment of eight steps is required. The
gain register is six bits wide, and the coding is twos complement.
The required gain register value can be determined as follows:
1. Convert the adjustment value to binary: 001000.
2. Program this binary number to the gain register.