Skip to main content
Explorer II
March 1, 2024
Solved

About ODR_XL target during inactivity

  • March 1, 2024
  • 3 replies
  • 1584 views

Hello,

I set ODR_XL target during inactivity(INACTIVITY_DUR XL_INACT_ODR_[1:0]), but when I read CTR1 ODR in inactivity mode, it doesn't change to the setting, why?

    This topic has been closed for replies.
    Best answer by Federica Bossi

    Hi @Yansu ,

    You can look at page 59 of AN5922:

    FedericaBossi_1-1709289538034.png

     

    3 replies

    Technical Moderator
    March 1, 2024

    Hi @Yansu ,

    To help you I need to know which product you are using.

    YansuAuthor
    Explorer II
    March 1, 2024

    LSM6DSV

    Technical Moderator
    March 1, 2024

    Hi @Yansu ,

    The activity/inactivity recognition function is enabled by setting the INTERRUPTS_ENABLE bit to 1 and
    configuring the INACT_EN_[1:0] bits of the FUNCTIONS_ENABLE register. If the INACT_EN_[1:0] bits of the
    FUNCTIONS_ENABLE register are equal to 00, the motion/stationary embedded function is enabled.

    Did you do this?

    YansuAuthor
    Explorer II
    March 1, 2024

    In spec:

    11: sets accelerometer to low-power mode 1 with accelerometer ODR selected through the
    XL_INACT_ODR_[1:0] bits of the INACTIVITY_DUR (54h) register, gyroscope in power-down
    mode)

    Yes, I set INACT_EN_ to 11,XL_INACT_ODR_[1:0] to default that means 15HZ,  and can get inactive status in SLEEP_STATE and then check ODR in CTRL1, it's not 15HZ, why?

     

     

    Technical Moderator
    March 1, 2024

    Hi @Yansu ,

    You can look at page 59 of AN5922:

    FedericaBossi_1-1709289538034.png