Skip to main content
Visitor II
December 14, 2013
Question

LSM303DLHC 'IR_REG_M' Registers ?

  • December 14, 2013
  • 4 replies
  • 1189 views
Posted on December 14, 2013 at 09:40

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

0690X00000605UUQAY.png

#msp430f5529 #i2c #lsm303dlhc #lsm303dlhc
    This topic has been closed for replies.

    4 replies

    Visitor II
    January 6, 2014
    Posted on January 06, 2014 at 05:43

    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.
    eraycanliAuthor
    Visitor II
    January 9, 2014
    Posted on January 09, 2014 at 13:37

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

    Visitor II
    January 20, 2014
    Posted on January 20, 2014 at 12:25

    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

    Visitor II
    December 28, 2015
    Posted on December 28, 2015 at 12:04

    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!