cancel
Showing results for 
Search instead for 
Did you mean: 

Lis2dw12 - changing settings without power off the sensor

MKla.1
Associate III

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 ?

3 REPLIES 3
MKla.1
Associate III

any answer?

MKla.1
Associate III

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 

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