Tool/software:
Hi TI team,
I’m working with the TMAG5273A2 sensor and have run into two related issues with the interrupt configuration:
-
Threshold triggers at the wrong Bz value
-
I’ve configured the device to trigger an interrupt when the Bz magnetic field drops below +3 mT.
-
I’m calculating Z_THR_CONFIG using the datasheet formula. For Z_THR_min = 3.0 mT, this gives a register value of ~0x03, which reads back correctly.
-
MAG_THR_DIR is set to 1 (trigger below threshold).
-
THR_HYST is 0 (single threshold comparison).
-
Z_RANGE is set to 0 (±133 mT).
-
The actual Bz readings are smooth and accurate, but the interrupt consistently fires only when Bz drops below around −10 mT, not +3 mT as intended.
-
-
Interrupt fires even when all thresholds are disabled
-
I tried disabling all threshold conditions to verify the behavior, but the interrupt line still fires as the Bz field changes.
-
I’ve double-checked that the threshold enable bits are cleared and the registers read back correctly.
-
Are there any known nuances with how the TMAG5273 handles threshold comparisons, such as signed/unsigned interpretation, 2’s complement encoding, or any default behavior when thresholds are disabled?
Any insight on these two points would be greatly appreciated!
Best regards,
Lovejoy Mhishi