cancel
Showing results for 
Search instead for 
Did you mean: 

H3LIS331DL Low power to Normal mode Duration and Interrupt configuration ?

PGoud
Associate III

Is "Duration" for wakeup based on the "LOW power freq" (ie the selected value from 0,5 to 10Hz) or from the "NORMAL ODR" mode (ie; the selected value from 50 to 1000) ?

Is possible to manage to have the interrupt (INT1) only when Threshold/duration is passed ?

1 ACCEPTED SOLUTION

Accepted Solutions
Eleon BORLINI
ST Employee

Hi @PGoud​ ,

the duration parameter (the content of the INTx_DURATION registers) is calculated from the ODR of the current device status: if the H3LIS331DL is in low power mode at the time of the interrupt event, the correspondent ODR will determine the minimum duration of the interrupt event to be recognized. This is the case of the Low-power-to-normal-mode transition.

Vice-versa, if the current operating mode is Normal mode, and the interrupt detects the Normal-to-Low-power transition, the duration will be calculated based on the normal mode ODR.

>> Is possible to manage to have the interrupt (INT1) only when Threshold/duration is passed?

Yes, this is the meaning of the INTx_DURATION registers' content: the interrupt will be raised after the device stays above the defined threshold for at least the chosen duration time, and till that time the operating mode of the device is the "starting" one.

-Eleon

View solution in original post

5 REPLIES 5
Eleon BORLINI
ST Employee

Hi @PGoud​ ,

the duration parameter (the content of the INTx_DURATION registers) is calculated from the ODR of the current device status: if the H3LIS331DL is in low power mode at the time of the interrupt event, the correspondent ODR will determine the minimum duration of the interrupt event to be recognized. This is the case of the Low-power-to-normal-mode transition.

Vice-versa, if the current operating mode is Normal mode, and the interrupt detects the Normal-to-Low-power transition, the duration will be calculated based on the normal mode ODR.

>> Is possible to manage to have the interrupt (INT1) only when Threshold/duration is passed?

Yes, this is the meaning of the INTx_DURATION registers' content: the interrupt will be raised after the device stays above the defined threshold for at least the chosen duration time, and till that time the operating mode of the device is the "starting" one.

-Eleon

PGoud
Associate III

Ok, many thanks for confirmation for "Power mode frequency" dependency of Duration.

PGoud
Associate III

Hello,

I can succesfully have 400Hz ready (DRDY) under interrupt. Cool.

BUT I do not success in using threshold and duration.

Can anyone, can give me the correct configuration to do this:

  • Get an INT interrupt each time the sensor as over pass a threshold for more than 50 samples at 10Hz low power.
  • And then do necessary process in the interrupt to renew this indefinitly.
  • The threshold can be 0 for now to ensure that the sensor will create an interrupt periodically each 5 s

In advance many thanks

Hi @PGoud​ ,

is this claim still valid after you last posts?

-Eleon

PGoud
Associate III

Sorry,

and please close this as finally the subject migrate has migrated to my other thread (the one you've just give an answer).