Skip to main content
Visitor II
November 17, 2020
Question

how to differentiate between different detections(freefall, motion and tampering detection)when they are configured on the same interrupt?

  • November 17, 2020
  • 1 reply
  • 775 views

i am currently working using LIS2DH12TR sensor, on which i had configured the below detections on interrupt 1, how to differentiate between different detections(freefall, motion and tampering detection)when they are configured on the same interrupt?

whether there are any specific status registers to read the applied threshold value over the sensor?

    This topic has been closed for replies.

    1 reply

    ST Employee
    November 18, 2020

    Hi @Mnago.1​ ,

    If you are routing all the interrupts on the same INT pin, it could be hard to know which interrupt has raised, basing on the only interrupt signal and ignoring the context. But you can understand which interrupt has been triggered by polling the corresponding "SRC" registers (for example, the CLICK_SRC for the click interrupt, or INT1_SRC for the free fall interrupt and the wake-up, and see which specific bit(s) is raising). A more detailed description for the LIS2DH12 interrupts can be foun in the application note AN5005.

    For the "tampering interrupt", I suggest you to refer to the other post.

    -Eleon