SLYA092 June 2025 TMAG3001
This application note proposes a two-level magnetic flux change and latch detection method in Z-axis using 3D linear Hall-effect sensors to decrease possible X or Y offset during the button press action of a joystick . By using hardware interrupt and software slew rate or absolute value detection method, a fast response to the Z-axis pressing action can be achieved. Simultaneously, by latching the last X, Y conversion numbers, this method can significantly reduce the X and Y offsets. The average error in the axis most affected by mechanical errors can be reduced from 265% to 8.8%.