Skip to main content
Associate
April 17, 2024
Question

LSM6DSOX FIFO

  • April 17, 2024
  • 4 replies
  • 1402 views

Hello,

my question applies to both the LSM6DSO and LSM6DSOX FIFO. 

if I am enabling the gyro and accel both at the same ODR and also enabling timestamp, I want to know what gets written into the FIFO first. I know I can use the tag register to tell me what that "word" is, but I want to ensure that the sequence the data is written/read from the FIFO will always be the same for a given ODR.I am not locally processing the sensor data but transferring it for processing and I want to minimize the length of my packet if I can guarantee the sequence will always be the same. any help if greatly appreciated.

 

Regards,

 

This topic has been closed for replies.

4 replies

Federica Bossi
Technical Moderator
April 18, 2024

Hi @whaz ,

Welcome to ST Community!

It is not possible to know which data arrives first, which is why there is the tag register.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
whazAuthor
Associate
April 25, 2024

Hello,

 

Thank you for your response. but can you tell me why is it that I always get the gyro data first?

 

Thanks

 

Federica Bossi
Technical Moderator
April 26, 2024

Hi @whaz ,

By design you have first gyro data and then accelerometer.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
whazAuthor
Associate
April 26, 2024

Hi Federica,

 

I am sorry to be a little confused. but if by design, the gyro data comes in first, why do you say "It is not possible to know which data arrives first".

 

Regards,

 

Federica Bossi
Technical Moderator
April 30, 2024

Hi @whaz ,

I didn't understand you wanted to know whether you get gyroscope or accelerometer data first. I confirm that you always get the gyro first and then the accelerometer.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.