ICM20948 DMP FIFO Sample Cutoff

By iamwalshicloudcom , 16 January 2021

Hello,

I've managed to coerce the DMP into outputting a stream of quaternion data into the FIFO buffer.
My µC is likely to only sample the chip every 10-20ms, but I'd like to keep the DMP outputting at ~200Hz.
I only need the most recent sample from the DMP (my application requires realtime data), but by the time my µC actually polls the sensor there are always several samples waiting in the FIFO that I have to read out before I get the most recent data.

Is there a way to set the FIFO to stream only one sample and then rewrite that sample when new data is processed? Essentially I'm looking for a "quaternion register bank" like how the ICM outputs raw accel and gyro data into bank0 registers 45-56.

Thanks!

phpbb Topic ID
38811