ZHCSQY7 september 2022 TMAG5173-Q1
ADVANCE INFORMATION
The TMAG5173-Q1 calculates the angle from a pair of magnetic axes based off the ANGLE_EN register bits setting. Figure 7-17 shows the angle information stored in the ANGLE_RESULT_MSB and ANGLE_RESULT_LSB registers. Bits D04-D12 store angle integer value from 0 to 360 degree. Bits D00-D03 store fractional angle value. The 3-MSB bits are always populated as b000. Use Equation 14 to calculate the angle value.
where
For example: a 354.50 degree is populated as 0001 0110 0010 1000b and a 17.25 degree is populated as 000 0001 0001 0100b.
During the angle calculation, use Equation 15 to calculate the resultant vector magnitude.
where
Figure 7-18 shows the magnitude value stored in the MAGNITUDE_RESULT register. For on-axis angular measurement the magnitude value should remain constant across the full 360° measurement.