我需要帮助来配置中断,特别是6d方向中断。
我根据需要在任何轴上工作轻触中断,但我有时也需要配置为仅在从z-posi
tive锥体转换到该锥体的过渡中断。
我在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