Hello,
I setup an IIM-42652 to report accelerations and gyro using FIFO packet 3.
My setup is:
- Accel ODR = 2000hz, full scale = 2 g
- Gyro ODR = 2000hz, full scale = 15.625 ods
- FIFO decimation = 65
- FIFO in streaming mode
By reading FIFO data, I get the difference between sample N and sample N-1 timestamps being 30 or 34. I get 34 only when the timestamp overflows and restarts from 0 (I get -34 actual difference value in such a case).
My questions are:
1. Does the sampling take more time when the timestamp overflows?
2. Is there any timestamp correction I have to apply in the overflow case (aside of those described in 12.7 FIFO TIMESTAMP INTERVAL SCALING datasheet section)?
Thanks in advance
You can use the interrupts information at 4.12. We have FIFO overflow interrupt explained a bit there, then you can look at section 14.51 to see how to set FIFO full interrupt. That may help you debug your issue. Section 12.7 is the only source for timestamp correction.