我正在尝试设置LIS2DH来检测运动并驱动INT1。文档不清楚需要配置什么才能执行此操作。
CNTL_REG3似乎选择了INT1的来源。有两个是AOI选项。我假设由于6D移动功能与AOI(表51,中断模式)相关联,因此需要在该寄存器中设置这些位中的至少一个。
在INT1_CFG中,很明显可以为“6方向移动识别”设置位6和7,但是还必须设置其他位吗?
是否有将此模式用于此零件或类似零件的示例?
#lis2dh
以上来自于谷歌翻译
以下为原文
I am trying to setup the LIS2DH to detect movement and drive INT1. The documenta
tion is not clear what needs to be configured to do this.
CNTL_REG3 appears to select the sources for INT1. There are two that are AOI options. I am assuming since the 6D movement function is associated with the AOI (Table 51, Interrupt Mode), that at least one of these bits needs to be set in this register.
In INT1_CFG, it is clear that bits 6 and 7 can be set for ''6 direction movement recognition'', but do the other bits also have to be set?
Is there an example of using this mode for this part or similar parts?
#lis2dh