Skip to main content
Visitor II
September 17, 2018
Question

Mems fifo read is reads wrongly decimated

  • September 17, 2018
  • 1 reply
  • 668 views

we use LSM6DSL mems part for one our product.

I configured mems FIFO to Continuous mode with accel odr set 416hz and FIFO ODR at 415 Hz as well. when we try to read FIFO at speed of 25 msec. fifo data x,y,z will be miss aligned . ie ex: expected x=8, y=-3, z=998. but we get x=998, y=5, z=-3.

Please note: Gyro is powerdown, No decimation accel only selected. Device is not moving

This has to Aligned as expected (x, y, z) format. Need help in figuring this

    This topic has been closed for replies.

    1 reply

    ST Employee
    September 18, 2018

    Please read FIFO_STATUS3 and FIFO_STATUS4 registers where you can find the FIFO pattern code, which indicates which value you read from the FIFO.

    Please be aware that you have to read at least 10 samples each 25ms, if the ODR is 416 Hz, otherwise the FIFO will overrun.