cancel
Showing results for 
Search instead for 
Did you mean: 

Converting data from FIFO

zmogas
Associate II

Hello,

section "4.5.1 Example of output data" of the LIS2DUX12 device application note (AN5909) provides an example of calculating the acceleration value from the FIFO.

In the example 14 useful bytes from the FIFO are multiplied by the sensitivity in "mg/LSB":

Ekrano kopija_20241219_100830.png

I think "LSB" in the sensitivity refers to the sixteenth bit of the FIFO word.

Why aren't the raw values from the FIFO shifted right by two bytes (or divided by 4) before multiplication?

2 REPLIES 2

@zmogas wrote:

shifted right by two bytes (or divided by 4) 


You mean 2 bits - not 2 bytes ?


@Andrew Neil wrote:

@zmogas wrote:

shifted right by two bytes (or divided by 4) 


You mean 2 bits - not 2 bytes ?


Yes, two bits.