Hello,

I need some help by interpreting my data from the ADXL375.

The register 0x31 is set to 00001011.

For the lsb of each axis i receive values from 0 to 254 in steps of 2.

For the msb of x and y axis i receive only 0 and by z only 255.

Which kind of information does the msb deliver in these cases?

Does the lsb values from 0 to 255 represent the intensity from -200 up to +200? or is there a bit for the sign?

Best reguards,

Fabian Breite

let's see:

"lsbyte value of 24 and an msbyte value of 0 in dez" -> the 16 bit value is 0x0018, the corresponding decimal value is 24. But the acceleration is not 26g, since a decimal value of 1 does not mean 1g, but 49mg (this is the sensitivity of the sensor). So the actual acceleration is 24*49mg = 1,176g

"lsbyte value of 238 and an msbyte value of 255 in dez" -> the 16bit value in hex is 0xFFEE, the corresponding decimal value is -18, the measured acceleration is -18*49mg=-0.882g

So your interpretation of the twos complement is correct, but you did not multiply with the correct sensitivity of the sensor (49mg/LSB)