Skip to main content
Visitor II
March 18, 2022
Question

Lis2dw12 - changing settings without power off the sensor

  • March 18, 2022
  • 2 replies
  • 1287 views

Is it need to write '1' to SOFT_RESET bit field in CTRL2 register when you change settings for the sensor in CTRL1, CTRL3, CTRL4_INT1_PAD_CTRL, CTRL5_INT2_PAD_CTRL, CTRL6, CTRL7 register ?

    This topic has been closed for replies.

    2 replies

    MKla.1Author
    Visitor II
    March 24, 2022

    any answer?

    MKla.1Author
    Visitor II
    April 11, 2022

    How to update value of CTRL1 register to the new value. I had tried with procedure described in application note but it doest work. I always read the values which i put immediately after powering up the sensor. I need to update values without powering off the sensor. Any suggestion?

    Set SOFT_RESET bit to '1' 2. Wait 5 μs (or wait until the SOFT_RESET bit of the CTRL2 register returns to 0) 3. Set BOOT bit to '1' 4. Wait 20 ms 

    ST Employee
    April 11, 2022

    Hi @Community member​ ,

    sorry for the delay in our answer.

    No, it is not necessary to set the SOFT_RESET sit to change the device settings, you can just overwrite the content of CTRLx register with the new values.

    Note that while the SOFT_RESET or the BOOT activated ("1"), you cannot write the other registers. You must be sure that those two bits are set to 0.

    See the AN5038 p.13 for the Startup sequence description.

    -Eleon