Skip to main content
Visitor II
January 15, 2021
Solved

H3LIS331DL Low power to Normal mode Duration and Interrupt configuration ?

  • January 15, 2021
  • 4 replies
  • 1119 views

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 ?

    This topic has been closed for replies.
    Best answer by Eleon BORLINI

    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

    4 replies

    ST Employee
    January 18, 2021

    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

    PGoudAuthor
    Visitor II
    January 18, 2021

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

    PGoudAuthor
    Visitor II
    January 18, 2021

    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

    ST Employee
    January 27, 2021

    Hi @PGoud​ ,

    is this claim still valid after you last posts?

    -Eleon

    PGoudAuthor
    Visitor II
    January 27, 2021

    Sorry,

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