2019-05-08 09:55 AM
The actual sampling rates deviate from the published. For example and ODR of 25Hz is actually ~30Hz. Is this typical? We did not notice this on the IIS2DH part. I expected some variance from the desired rate, but is every device going to vary this much?
2019-05-08 10:24 AM
Let me clarify how I measured this. I set the ODR to 25Hz and the FIFO watermark to 25 samples. I measured the time between interrupts on INT1.
25 samples @ 25Hz is actually 44.78Hz.
2019-05-10 06:40 AM
Hi, no, there should't be such a big distance between set ODR and actual ODR! For a doublechek that everything is correctly running, you could check if the MSb of STATUS (27h) goes to 1 in 1/25 s, polling FIFO_THS bit flag (or FIFO_ FTH in reg FIFO_SAMPLES (2Fh)). Did you set FIFO_CTRL (2Eh) = 19h, right?
Btw, could you share the configuration of the registers you set? Thanks and regards
2019-05-10 06:50 AM
In fact, I found the issue to be rather simple. IF_ADD_INC was not enabled. Makes sense now. I am transitioning from the IIS2DH and I have had to adjust some small things like this ensure operation. I missed this one.
Thanks -AP