cancel
Showing results for 
Search instead for 
Did you mean: 

lsm6dso inactivity detection

Varsha
Associate III

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? 

4 REPLIES 4
Federica Bossi
ST Employee

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.

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?

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
ST Employee

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.