Skip to main content
Associate II
December 19, 2024
Question

Converting data from FIFO

  • December 19, 2024
  • 1 reply
  • 619 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?

1 reply

Andrew Neil
Super User
December 19, 2024

@zmogas wrote:

shifted right by two bytes (or divided by 4) 


You mean 2 bits - not 2 bytes ?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
zmogasAuthor
Associate II
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.