嗨,
我正在从两个LIS3DH中读取数据。所有工作都按预期工作,直到满刻度设置为+ -16g。
根据数据手册,当FS为11且启用低功耗模式时,数据输出寄存器中的每个LSb代表192mg。低功耗模式在OUT_X / Y / Z_H寄存器中提供8位输出。 8位2的补码数的最大值是127,因此数据输出寄存器理论上可以显示127 * 192mg = 24g。这超过了+ -16g的阈值。这是否意味着在低功耗模式和+ -16g满量程中,数据输出寄存器中的数字永远不会超过16000mg / 192mg = 83?我从数据输出寄存器中获取127和-128等值,这对我来说没有意义。
我相信我的寄存器配置是正确的,因为当加速度计平放在地面上时我能够读取(0,0,5)。考虑到有限的分辨率,5 * 192mg = 960mg,足够接近1g。
问候,
凯文S.
以上来自于谷歌翻译
以下为原文
Hi,
I am reading data out from two LIS3DHs. All works as expected un
til the full scale is set to +-16g.
According to the data sheet, when FS is 11 and low power mode is enabled, each LSb in the data output registers represent 192mg. Low-power mode gives a 8 bit output in the OUT_X/Y/Z_H registers. The maximum value of a 8 bit 2's complement number is 127, and thus the data output registers can in theory show 127*192mg = 24g. This exceeds the +-16g threshold. Does this mean that in low-power mode and +-16g full scale, the number in the data output registers can never exceed 16000mg / 192mg = 83? I am getting values such as 127 and -128 from the data output registers, which don't make sense to me.
I believe my register configurations are correct, as I was able to read (0, 0, 5) when the accelerometer is placed flat on the ground. 5*192mg = 960mg, which is close enough to 1g considering the limited resolution.
Regards,
Kevin S