JAJSP27A September 2022 – September 2023 TMAG5173-Q1
PRODUCTION DATA
For accurate angle measurement, the two axes amplitudes must be normalized by selecting the proper gain adjustment value in the MAG_GAIN_CONFIG register. The gain adjustment value is a fractional decimal number between 0 and 1. The following steps must be followed to calculate this fractional value:
Example 1: If AX = AY = 60,000, the GAIN_VALUE register bits are set at default 0000 0000b.
Example 2: If AX= 60,000, AY = 45,000, the GX = 45,000/60,000 =0.75. Set MAG_GAIN_CH to 0b and GAIN_VALUE to 1100 0000b.
Example 3: If AX= 45,000, AY = 60,000, the GX = (60,000/45,000) =1.33. Since GX >1, the gain adjustment needs to be applied to Y axis with GY =1/GX. Set MAG_GAIN_CH to 1b and GAIN_VALUE to 1100 0000b.