cancel
Showing results for 
Search instead for 
Did you mean: 

data format

steffen
Associate II
Posted on November 30, 2013 at 16:19

I've just read the thread: Data output format of the LSM303DLHC

the accelerometer data is left�?justified, in normal mode, the data is in 12�?bit representation which means the lowest 4 bit in LSB are always 0s

Is this true also for the H3LIS331DL?

In the LIS331DLH_GetAccAxesRaw of your API, all values are shifted by 4.

regards,

Steffen

3 REPLIES 3
steffen
Associate II
Posted on December 05, 2013 at 15:58

Hi,

What's about the datasize? The datasheet states 16-bit data output.

regards,

Steffen

Thiago REIS
Associate II
Posted on December 11, 2013 at 16:04

Hello Steffen,

Yes you are right, the datasize is the same as the displayed on the datasheet, having the last 4 LSBs zeroes due to the 12bit data representation.

I hope this answers your question!!

Thank you,

Thiago Reis

steffen
Associate II
Posted on December 12, 2013 at 10:45

Sorry, but  I don't agree.

On page 1 in the datasheet, you write

       16-bit data output

On page 30, it is stated:

    The value is expressed as two's complement

On page 9 :

    Sensitivity 12-bit-represantation

What would mean literally:

 0xFFF - 0x7FF

but not 16 Bit, or

 0xFFF0 - 0x7FF0

or so.

Please work your datasheet out so, that the designer can see the main points clearly and fast.

Same for interrupts and so on.

regards,

Steffen