JAJSP86B November 2023 – June 2024 TMAG3001
PRODUCTION DATA
The TMAG3001 enables gain correction for one of the magnetic axes if needed. Table 6-15 shows the register configuration to set magnetic gain. MAG_GAIN_CH and ANGLE_EN[1:0] bits are used to set the specific magnetic channel that can be configured for gain modification. The Sensor_Config_4 register is used to store the Gain_Config to be corrected in 8 bit value.
Register Name | Register alias when ANGLE_EN=1b and THR_SEL = 00 or 01 or 11b | Description |
---|---|---|
Sensor_Config_4 | Gain_Config[7:0] | Configure the gain of one of the magnetic channels as defined by MAG_GAIN_CH and ANGLE_EN[1:0] values of Sensor_Config_2 register |
The Gain_Config[7:0] is a direct multiplier to the measured magnetic field with a value between 0 and 1. The LSB size of Gain_Config[7:0] is 0.00390625. For example, if the field measured by the TMAG3001 was 20mT and a Gain_Config[7:0] setting of 80h was used, a gain setting of 0.5, the resultant value of X_Result is 10mT.
Gain (mT/mT) | Gain_Config[7:0] | |
---|---|---|
BINARY | HEX | |
0 | 0000 0000 | 00h |
0.00390625 | 0000 0001 | 01h |
0.25 | 0100 0000 | 40h |
0.5 | 1000 0000 | 80h |
0.75 | 1100 0000 | C0h |
0.99609375 | 1111 1111 | FFh |
As an example, Figure 6-26 shows the amplitude of a corrected magnetic field using the Gain_Config[7:0] register settings. The selection and order of the sensors are defined in the ANGLE_EN[1:0] register bits setting. The gain correction for the selected channel is disabled if the Gain_Config[7:0] registers are set to 00h.