Post Go back to editing

关于fifo采集的样本数量

Thread Summary

The user asked why writing 25 to the ADXL367 FIFO SAMPLE REGISTER (0x29) results in 78 samples instead of 75. The final answer clarified that the register value is offset by 1, so writing 25 actually sets the sample count to 26, resulting in 78 samples (26 * 3).
AI Generated Content
Category: Software
Product Number: ADXL367

ADXL367的datasheet中表示。往FIFO SAMPLE REGISTER 0x29寄存器写入数值2,fifo中就会采集2*3 = 6个加速度值(xyz)。

我现在把该值写入25,按道理来说采集数值数量应该是25*3=75,但是为什么出发中断后我读取0x0C 和 0x0D的值却是78
下面两组图片可以看出(左边是我的寄存器配置,右边是通过串口打印出fifo中的采集数据数量).请问这是我理解错误还是什么地方配置有误?