cancel
Showing results for 
Search instead for 
Did you mean: 

Mems fifo read is reads wrongly decimated

kajja
Associate

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

1 REPLY 1
Miroslav BATEK
ST Employee

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.