Skip to main content
Graduate
September 4, 2017
Solved

LSM6DSL - Clarify D4D_EN bit function

  • September 4, 2017
  • 1 reply
  • 1360 views
Posted on September 05, 2017 at 00:08

The datasheet shows that setting the D4D_EN bit to 0 enables 4D orientation detection, however in AN5040 in section 5.4.2 it states the opposite.  Also at the end of section 5.4.1 it shows steps to enable 6D detection, including setting TAP_THS_6D to 0x40 (leaving the D4D_EN bit low).  Which of these is correct, app note or datasheet?  I would be inclined to trust the datasheet over the app note, except using 0 to enable the bit as shown in the datasheet sounds like it might be wrong.

    This topic has been closed for replies.
    Best answer by Miroslav BATEK
    Posted on September 05, 2017 at 09:27

    You are right it is not very clear.

    To enable the 4D orientation set the bit D4D_EN to 1. It actually means disable the Z-axis position detection, which is indicated in the datasheet.

    0690X000006087OQAQ.png

    I'm sorry for the confusion.

    1 reply

    ST Employee
    September 5, 2017
    Posted on September 05, 2017 at 09:27

    You are right it is not very clear.

    To enable the 4D orientation set the bit D4D_EN to 1. It actually means disable the Z-axis position detection, which is indicated in the datasheet.

    0690X000006087OQAQ.png

    I'm sorry for the confusion.

    Graduate
    September 5, 2017
    Posted on September 05, 2017 at 13:16

    Great, thanks for confirming that.