SLYS053B November 2023 – June 2024 TMAG3001
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. GX >1, therefore the gain adjustment must be applied to Y axis with GY =1/GX. Set MAG_GAIN_CH to 1b and GAIN_VALUE to 1100 0000b.