JAJSN92 December 2022 AFE78101 , AFE88101
PRODUCTION DATA
The AFEx8101 provide DAC gain and offset calibration capability to correct for end-point errors present in the system. Implement the gain and offset calibration using two registers, DAC_GAIN.GAIN and DAC_OFFSET.OFFSET. Update DAC_DATA register after gain or offset codes are changed for the new values to take effect. The DAC_GAIN can be programmed from 0.5 to 1.499985 using Equation 2.
where
The example DAC_GAIN settings for the AFE88101 are shown in Table 7-3.
DAC_GAIN | GAIN (HEX) |
---|---|
0.5 | 0x0000 |
1.0 | 0x8000 |
1.499985 | 0xFFFF |
The DAC_OFFSET is stored in the DAC_OFFSET register using 2's-complement encoding. The DAC_OFFSET value can be programmed from –2(N–1) to 2(N–1) – 1 using Equation 3.
where
The most significant bit determines the sign of the number and is called the sign bit. The sign bit has the weight of –2(N–1) as shown in Equation 3.
The example DAC_OFFSET settings for the AFE88101 are shown in Table 7-4.
DAC_OFFSET | OFFSET (HEX) |
---|---|
32767 | 0x7FFF |
1 | 0x0001 |
0 | 0x0000 |
–1 | 0xFFFF |
–2 | 0xFFFE |
–32768 | 0x8000 |
The following transfer function is applied to the DAC_DATA.DATA based on the DAC_GAIN and DAC_OFFSET values:
where
Substituting DAC_GAIN and DAC_OFFSET in Equation 4 with Equation 2 and Equation 3 results in:
The multiplier is implemented using truncation instead of rounding. This truncation can cause a difference of one LSB if rounding is expected. Figure 7-2 shows the DAC calibration path.