2018-02-23 12:28 PM
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.2018-02-26 01:48 AM
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.
2018-02-26 02:33 PM
I was intentional in only enabling X & Y. Doe the threshold not apply to all axis?
2018-02-27 08:22 AM
The threshold apply to all axis.
If you enable only X and Y axis following positions will be detected.
2018-02-27 09:19 AM
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.
2018-02-27 09:58 AM
So please try this configuration INT1_CFG = 0xFF and let me know if the behavior is the same.
2018-02-28 08:48 AM
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.
2018-02-28 02:13 PM
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.
2018-03-01 06:57 AM
Are you testing with a LIS2DE12?
2018-03-15 07:11 AM
Any progress on this?