ST意法半导体
直播中

周丽

7年用户 233经验值
私信 关注
[问答]

请问LSM6DS0中断配置问题应该如何解决?

我需要帮助来配置中断,特别是6d方向中断。

我根据需要在任何轴上工作轻触中断,但我有时也需要配置为仅在从z-positive锥体转换到该锥体的过渡中断。
我在LSM6DS0数据表中找不到任何解释,也没有任何应用说明。我在这里看到LSM6DS3的应用笔记:
http://www.st.com/st-web-ui/static/active/en/resource/technical/document/application_note/DM00157511.pdf
但这对LSM6DS0没有帮助

还要注意,我在LSM303D部件上都有这两个中断。
对于LSM6DS0上的两个中断,我配置为10-Hz和2-g。
对于任何轴上的轻触,我设置:
INT_GEN_CFG_XL = 0x2A
INT_GEN_THS_xyz_XL = 8
INT_GEN_DUR_XL = 0x81

以上工作可以在任何轴上产生轻触。

对于z轴上的方向中断,我尝试了许多不同的THS和DUR值,许多不同的排列,INT_GEN_CFG_XL为0xD0,0xE0,依此类推。

任何提示将不胜感激。


#lsm6ds0-6d运动中断

以上来自于谷歌翻译


以下为原文




I need help to configure the interrupt, specifically for a 6d orientation interrupt.

I have working as needed a light touch interrupt on any axis, but I also need sometimes to configure to interrupt only on a transition from out of the cone of z-positive then into that cone.
I cannot find any explanation in the LSM6DS0 data sheet, nor any application note. I do see app note for LSM6DS3 here:
http://www.st.com/st-web-ui/static/active/en/resource/technical/document/application_note/DM00157511.pdf
But that does not help for this LSM6DS0

Also to note that I have both of these interrupts working on a LSM303D part.
For both interrupts on LSM6DS0, I configure for 10-Hz and 2-g.
For light touch on any axis, I set this:
INT_GEN_CFG_XL = 0x2A
INT_GEN_THS_xyz_XL = 8
INT_GEN_DUR_XL = 0x81

The above works to generate light touch on any axis.

For orientation interrupt on z-axis, I've tried many different THS and DUR values, many different permutations with INT_GEN_CFG_XL as 0xD0, 0xE0, and so on.

Any hints would be greatly appreciated.

  
#lsm6ds0-6d-movement-interrupt

回帖(1)

周丽

2018-10-31 16:18:09
好吧,LSM6DS0 6d工作就像我需要让它工作(就像我在LSM303D上工作一样) - 我发现我自己的错误(错误地,总是用轻触配置覆盖6d中断配置)下面。

以上来自于谷歌翻译


以下为原文





Ok, the LSM6DS0 6d is working like I needed to get it working (and like I had it working on the LSM303D) - I found my own bug (erroneously, always overwriting the 6d interrupt configuration with the light touch configuration) just after I posted the below.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分