ST意法半导体
直播中

马海娟

7年用户 161经验值
私信 关注
[问答]

LSM303DLHC的数据输出格式是什么

你好!

我对LSM303DLHC有疑问。在数据表中,我找不到有关加速度和磁数据输出格式的任何信息。因此我认为它适用于16位值。在使用传感器时,我注意到我得到的加速度数据是错误的。在网上进行一些搜索并进行一些测试后,我发现加速度数据是12位左对齐,磁数据是12位右对齐。我在上面找到的信息:http://www.pololu.com/catalog/product/2124

现在我希望有人能证实我的经历吗?!
问候Oliver Lubritz
#accelerometer#lsm303dlhc-data-format #data

以上来自于谷歌翻译


以下为原文




Hello!

I have a question about the LSM303DLHC. In the data sheet i can't found any information about the output format for the acceleration and magnetic data. Therefore i thought it works with 16-bit values. While using the sensor I noticed that the acceleration data I get are wrong. After some search in the web and some test I recognized that the acceleration data are 12-bit left-justified and the magnetic data are 12-bit right-justified. The information I found on: http://www.pololu.com/catalog/product/2124

Now I hope anyone can confirm my experience?!
Greetings Oliver Lubritz  
#accelerometer #lsm303dlhc-data-format #data

回帖(1)

张鑫

2018-12-10 16:51:14
你好奥利弗,
是的,您的经验是正确的,磁力计数据是右对齐的,加速度计数据是合理的,在正常模式下,数据是12位表示,这意味着LSB中最低的4位始终为0。在低功耗模式下,数据以8位表示,这意味着只有MSB具有实数,LSB始终为00h。
 
 我希望这能澄清您的问题,并随时发布您想要讨论的任何其他主题。
 
 谢谢,
 
 蒂亚戈雷斯

以上来自于谷歌翻译


以下为原文






Hello Oliver,
Yes, your experience is correct, the magnetometer data is right-justified and the accelerometer data is left�justified, in normal mode, the data is in 12�bit representation which means the lowest 4 bit in LSB are always 0s. In low power mode, the data is in 8�bit representation which means only MSB has real dataand LSB is always 00h.

I hope this clarifies your question, and please feel free to post any other topics that you would like to discuss.

Thank you,

Thiago Reis
举报

更多回帖

发帖
×
20
完善资料,
赚取积分