JAJSJ71A June 2020 – December 2021 TMAG5170-Q1
PRODUCTION DATA
Figure 7-7 shows that the TMAG5170-Q1 can enable offset correction for a pair of magnetic axes. The magnetic axes and order are selected based off the ANGLE_EN register bit settings. The MAG_OFFSET_CONFIG register stores the offset values to be corrected in 2's complement data format. The selection and order of the sensors are defined in the ANGLE_EN register bits setting. The default value of these offset correction registers are set as zero.
Use Equation 5 and Equation 6 to calculate the amount of offset for each axis. As an example, with a ±50mT magnetic range for X and Z axes, MAG_OFFSET_CONFIG set at 1110 0000 0011 0000b, ANGLE_EN set at 11b. With these conditions the offset correction for the X axis is −1.56mT and Z axis is 1.17mT. The offset values are added to the sensor conversion results before loading into the corresponding result registers.
where