2021-01-15 09:04 AM
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 ?
Solved! Go to Solution.
2021-01-18 01:32 AM
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
2021-01-18 01:32 AM
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
2021-01-18 07:29 AM
Ok, many thanks for confirmation for "Power mode frequency" dependency of Duration.
2021-01-18 10:59 AM
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:
In advance many thanks
2021-01-27 04:47 AM
2021-01-27 04:56 AM
Sorry,
and please close this as finally the subject migrate has migrated to my other thread (the one you've just give an answer).