SBASAF4 September 2021 TMAG5170
PRODUCTION DATA
For accurate angle measurement, the two axes amplitudes must be normalized by selecting the proper gain adjustment value in the MAG_GAN_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_SELECTION resister bits can be set as 00b. The GAIN_VALUE register bits are don't care bits in this case.
Example 2: If AX= 60,000, AY = 45,000, the GX = 45,000/60,000 =0.75. Select 01b for the GAIN_SELECTION register bits.
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. Select 10b for the GAIN_SELECTION register bits.