2019-04-08 08:21 PM
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
Solved! Go to Solution.
2019-04-12 05:42 AM
Some more questions: which is your operating Vdd / VddIO? I suppose you tried to restart the boot but... did you tried with another sample? Regards
2020-04-14 04:45 AM
Eleon
Thank you for your support. One question to the PNG you provided for the selftest sequence.
It states, that the 10Bit data is left aligned. The datasheet only presents OUT_X_H (29h) and no low data byte. Is there something missing in the datasheet or is the PNG not correct for LIS2DE12?
Kind regards
Chris
2020-04-14 08:25 AM
Hi @christian239955_stm1_st , it's a typo ;) just need to use the OUT_X_H (29h) data in two's complement for the LIS2DE12TR. Regards
2020-04-28 06:16 AM
2020-04-30 01:19 AM
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
2020-09-21 02:13 AM
Hi @christian239955_stm1_st , @Eleon BORLINI ,
Did you get to the bottom of this? I've also followed the steps in the self test procedure in the picture Eleon posted above, and I'm also getting the same readings regardless whether it's in self test mode or not.
The readings do change when I physically rotate the board, but not when the only difference is the self test bit setting in CTRL_REG4.
Cheers,
Kamion
2020-09-21 02:17 AM
Hi @Eleon BORLINI,
Can we get your comment on the LPen bit in CTRL_REG1?
Cheers,
Kamion
2020-09-21 06:44 AM
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
2020-09-21 06:46 AM
If anyone is following this procedure for the LIS2DE12, the BDU bit in CTRL_REG4 must be set to 0 in order for the selftest to work, otherwise you will just be reading the same output value.
Also for the LIS2DE12, the LPen bit in CTRL_REG1 must be set to 1, as this device only supports 8-bit output.
See my responses further down this thread for why.
2020-09-21 06:49 AM
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.