cancel
Showing results for 
Search instead for 
Did you mean: 

LISD2E12 INT1_THS not changing tilt threshold

Joseph Lehman
Associate II
Posted on February 23, 2018 at 21:28

The INT1_THS register value does not seem to change the threshold at which an event is triggered. I can read and write the INT1_THS(0x32) so I know my writes are working. I poll the INT1_SRC register and watch the bits change so the position enable ints are working it is just that the threshold seems fixed not adjustable.

INT1_CFG = 0xCF to enable X & Y position triggering

INT1_THS = 0x20 = 0.5g or 30 degrees. (actual int flags trip around 0.94g/66 degrees)

Thanks in advance for any help.

Note: this post was migrated and contained many threaded conversations, some content may be missing.
10 REPLIES 10
Miroslav BATEK
ST Employee
Posted on February 26, 2018 at 10:48

Can you please try INT1_CFG = 0xFF configuration and see it works as you want.

The INT1_THS register value change the threshold. I think there is misunderstanding with the sensitive axis as you enable only X and Y.

Posted on February 26, 2018 at 22:33

I was intentional in only enabling X & Y.  Doe the threshold not apply to all axis?

Posted on February 27, 2018 at 16:22

The threshold apply to all axis.

If you enable only X and Y axis following positions will be detected.

0690X00000609plQAA.png
Posted on February 27, 2018 at 17:19

That is what I want.  My problem is that changing the INT1_THS value does not seem to make any difference in when the event triggers.  The event triggers at 0.94 G not at the 0.5G I write and am able to read from INT1_THS.

Posted on February 27, 2018 at 17:58

So please try this configuration INT1_CFG = 0xFF and let me know if the behavior is the same.

Posted on February 28, 2018 at 16:48

Still the same problem,  also on Z.  So X, Y & Z do not seem to use the THS register to control when the position will trigger the position event.

Posted on February 28, 2018 at 22:13

OK, unfortunately I'm not able to replicate your issue. To me the threshold change the angle where the positions are detected.

I will check with my colleagues, what could be the issue and come back to you.

Posted on March 01, 2018 at 14:57

Are you testing with a LIS2DE12?

Posted on March 15, 2018 at 14:11

Any progress on this?