cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DSL - Clarify D4D_EN bit function

Angelo Quattrociocchi
Associate II
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.

1 ACCEPTED SOLUTION

Accepted Solutions
Miroslav BATEK
ST Employee
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.

View solution in original post

2 REPLIES 2
Miroslav BATEK
ST Employee
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.

Posted on September 05, 2017 at 13:16

Great, thanks for confirming that.