cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I'm using an IIS3DWB accelerometer sensor, in that I'm set the Z_OFS_USR register. So when the sensor is reset this register is cleared. So my question is every time I have to set this register after reset?

Yash
Associate II
 
1 REPLY 1
Eleon BORLINI
ST Employee

Hi @Yash​ 

ya, the basic answer is yes, since the memory you read/write during normal operation is a volatile memory, and not a flash or an eeprom.

For this reason, if you are using the user offset, you have to store the value in your software and rewrite it in the register (or, alternatively subtract it to the raw data at software level).

For completeness, there is a procedure to write permanently the registers: it is used at production tester level and accounts for the values of the calibration / reserved registers, but is ST confidential and is indeed a bit cumbersome.

If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster. 

-Eleon