完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在尝试配置iNemo以在检测到重要运动时断言INT1。我已经密切关注AN4650(配置与本节末尾的AN4650第6.2节中给出的匹配),但是没有产生中断。我正在使用插入另一块板的STEVAL-MKI160V1。我在STEVAL上探测INT1,同时摇板,否则试图模拟行走,跑步或其他动作。我试过降低阈值,包括DEB_STEP,但没有任何效果。
这种模式是否真的有效?是否需要编写其他寄存器才能使其工作?我打开FIFO,它按预期累积26Hz的数据。 谢谢。 以上来自于谷歌翻译 以下为原文 I am trying to configure the iNemo to assert INT1 when significant motion is detected. I have followed AN4650 closely (the configuration matches that given in AN4650 Section 6.2 at the end of the section), but no interrupt is ever generated. I am using a STEVAL-MKI160V1 plugged into another board. I'm probing INT1 on the STEVAL while shaking the board and otherwise trying to simulate walking, running or other motion. I have tried reducing the threshold, including DEB_STEP, but nothing has worked. Does this mode actually work as documented? Do other registers need to be written to make this work? I have the FIFO turned on, and it accumulates data at 26Hz as expected. Thanks. |
|
相关推荐
1个回答
|
|
你好艾伦,
然而,重要的动作如应用笔记中所述。该 算法基于计步器。如果用户在位置改变时执行的步骤数高于设定限制,则检测到显着运动。因此,您必须模拟步行以触发中断。 你如何探测INT1信号?由显着运动功能产生的中断信号是脉冲的,也许你错过了脉冲。您可以将TAP_CFG寄存器中的LIR位置1,然后中断将一直有效,直到您读取FUNC_SRC寄存器为止。 以上来自于谷歌翻译 以下为原文 Hello Alan, yet, the significant motion works as described in the application note. The algorithm is based on pedometer. Significant motion is detected if the number of steps performed by the user upon a change of location is higher than a set limit. So you have to simulate walking to trigger the interrupt. How do you probe the INT1 signal? The interrupt signal generated by the significant motion function is pulsed, maybe you missed the pulse. You can set the LIR bit in TAP_CFG register, then the interrupt will be active until you read the FUNC_SRC register. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2738 浏览 1 评论
3241 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1810 浏览 1 评论
3650 浏览 6 评论
6039 浏览 21 评论
1339浏览 4评论
201浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
353浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
444浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
274浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 04:10 , Processed in 1.034692 second(s), Total 49, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号