Faulty measurements from LIS2DW12
We have a small percentage of devices that once powered on show a certain issue.
One or more axes of the accelerometer values are capped to the max or minimum value.
This issue disappears when the device is powered off and powered back on.
All the registers from the LIS2DW12 on a device that exhibits this issue.
0 to 0x3F:
0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 253, 68, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 32, 22, 0, 0, 0, 4, 253, 0, 240, 127, 0, 128, 240, 127, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
When reading the accelerometer values of one of the devices this is the raw result we get
reading OUT_X_L for 6 bytes.
240, 127, 0, 128, 240, 127
We have some devices where only one axis exhibits this behavior, but others do not.
We believe this issue could be caused by unstable power during startup.
We use the following code to setup the accelerometer:
ACC_WriteByte(CTRL2, 0b00010110);
ACC_WriteByte(CTRL6, 0b00000100);
ACC_WriteByte(FIFO_CTRL, 0b11000000);
ACC_WriteByte(CTRL1, 0b00100000);
A soft reset does not fix this issue.
Any help would be greatly appreciated.
