Skip to main content
Visitor II
June 22, 2022
Solved

How to read lis2hh12 Activity/Inactivity status over registers?

  • June 22, 2022
  • 1 reply
  • 770 views

I set ACT_THS and ACT_DUR registers, so now the chip enters on low data rate mode (10 Hz) when no movement is detected. everything is fine to that point.

I don't have access to INT1 and INT2 pins physically so I need to read activity/inactiviy status by registers.

    This topic has been closed for replies.
    Best answer by Eleon BORLINI

    HI @CZorg.1​ ,

    You might poll the IA bit of this general interrupt status register (see datasheet, p.39):

    0693W00000NsiGrQAJ.pngYou'll clear the interrupt by reading this reg. This is a general purpose register, so you'll see here all the status of the interrupt you have set.

    -Eleon

    1 reply

    ST Employee
    June 24, 2022

    HI @CZorg.1​ ,

    You might poll the IA bit of this general interrupt status register (see datasheet, p.39):

    0693W00000NsiGrQAJ.pngYou'll clear the interrupt by reading this reg. This is a general purpose register, so you'll see here all the status of the interrupt you have set.

    -Eleon