ST意法半导体
直播中

陈苏文

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

LSM303DLHC'IR_REG_M这些寄存器的含义是什么?

这些寄存器的含义是什么?数据表没有解释。只有那个表:



#msp430f5529#i2c#lsm303dlhc#lsm303dlhc

以上来自于谷歌翻译


以下为原文




what is the meaning of these registers? no explanation on datasheet. only that table:


  
#msp430f5529 #i2c #lsm303dlhc #lsm303dlhc

回帖(4)

苗雨

2018-9-14 10:22:15
它记录在较旧的数据表中,例如对于LSM303DLH。
 
 
 引用LSM303DLH数据表:
识别寄存器(IR)用于识别设备。 IR0至IR7表示位位置,IRA / IRB / IRC表示识别寄存器A,B和B中的位。 C。
IRA7 / IRB7 / IRC7表示数据流的第一位。
该设备的标识值存储在该寄存器中。这是一个只读寄存器。
 
 
 不幸的是,这遵循ST在基于现有设备发布新设备时从数据表中省略关键信息的趋势。
 此外,遗憾的是,所有LSM设备都返回相同的代码。 ''48 34 33'',让你更难确定它是你正在谈论的LSM303DLM,DLH还是DLHC。

以上来自于谷歌翻译


以下为原文





It's documented in the older datasheets, e.g. for the LSM303DLH.


Quoting from the LSM303DLH datasheet:
The identification registers (IR) are used to identify the device. IR0 through IR7 indicate bit locations, with IRA/IRB/IRC denoting the bits that are in the identification registers A, B & C.
IRA7/IRB7/IRC7 denotes the first bit of the data stream.
The identification value for this device is stored in this register. This is a read-only register.


Unfortunately, this follows a  tendency by ST to omit crucial information from datasheets when they release new devices based upon existing devices.
Also, unfortunately, all the LSM devices return the same code. ''48 34 33'', making it much harder to determine if it is an LSM303DLM, DLH or DLHC you are talking to.
举报

陈苏文

2018-9-14 10:27:34
感谢您的回复。所以,如果所有LSM设备具有相同的ID,它们似乎毫无意义......

以上来自于谷歌翻译


以下为原文





thanks for your reply. so, they seem totally pointless if all LSM devices have the same id...
举报

张鑫

2018-9-14 10:39:20
你好,
 
 
 为了澄清这些寄存器的用法,它们可用于验证I2C通信。如果您读取这些寄存器并获得值0x48 / 0x34 / 0x33,则表示微控制器和传感器之间的I2C通信正在工作。谢谢,
 
 蒂亚戈

以上来自于谷歌翻译


以下为原文






Hello,


Just to clarify about these registers usage, they can be used to verify the I2C communication. If you read these registers and get the value of 0x48/0x34/0x33, then it means the I2C communication between your microcontroller and the sensor is working. Thank you,

Thiago
举报

张依然

2018-9-14 10:44:24
嗨,
 
 
 我正在使用LSM303DLHC开展项目(学生)。我想通过I2C与传感器通信(与MSP430F5529配合使用)。
 
 实际上我无法从从站读取数据(LSM303DLHC)。你能告诉我,我有什么设置/发送给奴隶以及我必须阅读哪些寄存器?
 
 谢谢!

以上来自于谷歌翻译


以下为原文





Hi,


i'm working on a project (student) with the LSM303DLHC. I want to communicate with the sensor via I2C (in use with the MSP430F5529).

Actually I can't read data from the slave (LSM303DLHC). Can you tell me, what I have so set / send to the slave and which registers i have to read?

Thanks!
举报

更多回帖

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