Skip to main content
Explorer
December 19, 2024
Question

Converting data from FIFO

  • December 19, 2024
  • 1 reply
  • 618 views

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?

    This topic has been closed for replies.

    1 reply

    Super User
    December 19, 2024

    @zmogas wrote:

    shifted right by two bytes (or divided by 4) 


    You mean 2 bits - not 2 bytes ?

    zmogasAuthor
    Explorer
    December 19, 2024

    @Andrew Neil wrote:

    @zmogas wrote:

    shifted right by two bytes (or divided by 4) 


    You mean 2 bits - not 2 bytes ?


    Yes, two bits.