Skip to main content
Associate III
March 14, 2024
Question

lsm6dso inactivity detection

  • March 14, 2024
  • 2 replies
  • 1852 views

What is the maximum time-limit in minutes that can be set in the register LSM6DSO_WAKE_UP_DUR, for inactivity detection. 
I want to rise an interrupt after 20minutes. How is it possible? 

This topic has been closed for replies.

2 replies

Federica Bossi
Technical Moderator
March 14, 2024

Hi @Varsha ,

The maximum you can set in seconds is (4 * 512) / ODR_XL, so it is possible if you set ODR_XL 1.6Hz and SLEEP_DUR=4:

FedericaBossi_0-1710411127311.png

 

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
VarshaAuthor
Associate III
March 14, 2024

Thank you @Federica Bossi 
Why is the SLEEP_DUR value 4? not values higher than 4? 
Currently my application is running with an ODR_XL of 417Hz. What is the maximum possible time interval here with this XL_ODR?

Federica Bossi
Technical Moderator
April 4, 2024

Hi @Varsha ,

417Hz is too high if you want to rise an interrupt after 20minutes.

One bit is 512/ODR_XL, so if you set SLEEP_DUR=4 and and ODR of 1.6Hz you will have about 21.3 minutes: 4*512/1.6

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.