SLASF43 December 2023 AFE782H1 , AFE882H1
PRODUCTION DATA
Refer to the PDF data sheet for device specific package drawings
The AFEx82H1 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 AFE882H1 are shown in Table 6-1.
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 AFE882H1 are shown in Table 6-2.
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 6-2 shows the DAC calibration path.