完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在尝试设置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 documentation 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 |
|
相关推荐
1个回答
|
|
你好迈克尔,
为了设置LIS2DH以进行6D运动识别,您必须配置INT1_CFG(30h)以启用6方向检测功能的检测,并且还必须配置CTRL_REG5(24h)以将其视为INT1或INT2上的中断。 我附上了一张图片,其中包含我对寄存器设置的建议以及数据表,您可以在表38,49和50中找到有关它的更多详细信息。 非常感谢你, 蒂亚戈雷斯 以上来自于谷歌翻译 以下为原文 Hello Michael, In order to setup LIS2DH for 6D movement recognition, you have to configure INT1_CFG (30h) to enable the detection of the 6 direction detection function, and also on CTRL_REG5 (24h) to consider it as an Interrupt either on INT1 or INT2. I have attached an image with my recommendation for the registers setup and also the datasheet where you can find in table 38, 49 and 50 more details about it. Thank you very much, Thiago Reis |
|
|
|
只有小组成员才能发言,加入小组>>
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
868 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3044 浏览 1 评论
3345 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1922 浏览 1 评论
3784 浏览 6 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
90浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
105浏览 5评论
132浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
96浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
102浏览 5评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-5-10 18:00 , Processed in 0.564359 second(s), Total 44, Slave 38 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191