Skip to main content
Visitor II
August 18, 2016
Question

LIS2DS12 inactivity (SLEEP_STATE) flag not triggered

  • August 18, 2016
  • 2 replies
  • 637 views
Posted on August 18, 2016 at 12:12

Hello,

I am trying to use LIS2DS12's activity/inactivity functionality, settings according to

https://my.st.com//content/ccc/resource/technical/document/application_note/69/fd/10/6c/42/38/4f/f2/DM00218428.pdf/files/DM00218428.pdf/jcr:content/translations/en.DM00218428.pdf

(4.7). The WAKE_IA flag seems to be triggered alright (also tweaking the wake threshold seems fine) but the SLEEP_STATE (in status register or WAKE_UP_SRC register) flag doesn't seem to trigger.

Did anybody have this problem before? Are there any specific settings I am missing maybe?

#lis2ds12-inactivity
    This topic has been closed for replies.

    2 replies

    ST Employee
    August 29, 2016
    Posted on August 29, 2016 at 15:39

    It is difficult to observe if SLEEP_STATE_IA is set, because it is set to “1� only one ODR period when the state is detected.

    You would need to synchronize reading of status register with data ready interrupt to not miss when the SLEEP_STATE_IA is set to “1�.

    Best regards

    Miroslav

    August 30, 2016
    Posted on August 30, 2016 at 17:32

    Hi Miroslav,

    Thank you very much for that.

    Regards,

    Calin