Skip to main content
Visitor II
April 9, 2019
Solved

Self test on the LIS2DE12TR

  • April 9, 2019
  • 12 replies
  • 4967 views

Hello,

I am working on a project where I have to interface the LIS2DE12TR Accelerometer via I2C interface with TI cc2652 chip. As a start I wanted to verify the hardware functionality. In the datasheet it is mentioned of a Self-Test Mode of operation. I did not understand how the operation can be verified in the self-test. Should we just enter into self test mode and then monitor the x,y,z output values and check if they are within the specified range ? Also is there any example for this self test procedure that has been done.

Also in the datasheet there is mentioned a Slave Ack and a Master ACK. How do we know that the slave Ack has been received and how do we send a Master Ack/Nack

Regards,

SS

    This topic has been closed for replies.
    Best answer by kamion

    Hi @christian239955_stm1_st​, @Eleon BORLINI​,

    I figured it out.

    For the LIS2DE12, the BDU bit in CTRL_REG4 must be set to 0.

    The description of the BDU bit states:

    Block data update. Default value: 0
    (0: continuous update; 1: output registers not updated until MSB and LSB have been read)

    Since the LIS2DE12 do not have OUT_X_L, OUT_Y_L and OUT_Z_L registers, turning BDU on will prevent the output registers from being updated.

    Cheers,

    Kamion

    12 replies

    Visitor II
    April 30, 2020

    Dear Eleon

    Another Question regarding the Configuration in the PNG above.

    It states that the CTRL_REG1 should be configured with the Value 0x47. The datasheet states:

    LPen This bit must be set to '1' for the correct operation of the device. Default value: 0

    Probably there should be a 0x4F in CTRL_REG1 instead, right?

    Kind regards

    Christian

    Visitor II
    September 21, 2020

    Hi @Eleon BORLINI​,

    Can we get your comment on the LPen bit in CTRL_REG1?

    Cheers,

    Kamion 

    Visitor II
    September 21, 2020

    The correct answer to this is, for the LIS2DE12, the LPen bit must be 1, in order to have the correct behaviour for 8-bit output. This device only supports 8-bit output.

    ST Employee
    September 22, 2020

    Hi @kamion​ ,

    sorry for the late feedback and thank you very much for your follow up and the resolved cases.

    About the dataout, yest, it is on 8 bits.

    -Eleon