SLYA092 June 2025 TMAG3001
If the users presses slowly, the amplitude difference between two or more conversion results might not exceed the setting software threshold. In this situation, a second-level hardware detection is required to make sure that the pressing action is detected quickly. By setting a magnetic flux threshold in the TMAG3001 register, once the magnetic flux amplitude in the Z-axis exceeds the hardware threshold. The Hall-effect sensor creates an interrupt signal using the INT pin to be captured by the GPIO of the MCU. If desired, this threshold crossing can also be transmitted through I2C communication to indicate that the magnetic threshold has been exceeded. Figure 3-3 shows the simplified hardware interrupt function.
Figure 3-3 Hardware Detection Method