2013-12-14 12:40 AM
what is the meaning of these registers? no explanation on datasheet. only that table:
#msp430f5529 #i2c #lsm303dlhc #lsm303dlhc2014-01-05 08:43 PM
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.
2014-01-09 04:37 AM
thanks for your reply. so, they seem totally pointless if all LSM devices have the same id...
2014-01-20 03:25 AM
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, Thiago2015-12-28 03:04 AM
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!