完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
INT1_THS寄存器值似乎不会更改触发事件的阈值。我可以读取和写入INT1_THS(0x32),所以我知道我的写入工作正常。我轮询INT1_SRC寄存器并观察位改变,因此位置启用整数正在工作它只是阈值似乎固定不可调整。
INT1_CFG = 0xCF以启用X& Y位置触发 INT1_THS = 0x20 = 0.5g或30度。 (实际的int标志行程大约0.94g / 66度) 在此先感谢您的帮助。 以上来自于谷歌翻译 以下为原文 The INT1_THS register value does not seem to change the threshold at which an event is triggered. I can read and write the INT1_THS(0x32) so I know my writes are working. I poll the INT1_SRC register and watch the bits change so the position enable ints are working it is just that the threshold seems fixed not adjustable. INT1_CFG = 0xCF to enable X & Y position triggering INT1_THS = 0x20 = 0.5g or 30 degrees. (actual int flags trip around 0.94g/66 degrees) Thanks in advance for any help. |
|
相关推荐
9个回答
|
|
我故意只启用X& Y. Doe门槛不适用于所有轴?
以上来自于谷歌翻译 以下为原文 I was intentional in only enabling X & Y. Doe the threshold not apply to all axis? |
|
|
|
阈值适用于所有轴。
如果仅启用X轴和Y轴,则会检测到以下位置。 以上来自于谷歌翻译 以下为原文 The threshold apply to all axis. If you enable only X and Y axis following positions will be detected. |
|
|
|
这就是我想要的。我的问题是,在事件触发时,更改INT1_THS值似乎没有任何区别。该事件触发0.94 G而不是0.5G I写入并且能够从INT1_THS读取。
以上来自于谷歌翻译 以下为原文 That is what I want. My problem is that changing the INT1_THS value does not seem to make any difference in when the event triggers. The event triggers at 0.94 G not at the 0.5G I write and am able to read from INT1_THS. |
|
|
|
所以请尝试这个配置INT1_CFG = 0xFF,让我知道行为是否相同。
以上来自于谷歌翻译 以下为原文 So please try this configuration INT1_CFG = 0xFF and let me know if the behavior is the same. |
|
|
|
仍然是同样的问题,也在Z.所以X,Y& Z似乎没有使用THS寄存器来控制位置何时触发位置事件。
以上来自于谷歌翻译 以下为原文 Still the same problem, also on Z. So X, Y & Z do not seem to use the THS register to control when the position will trigger the position event. |
|
|
|
好的,不幸的是我无法复制你的问题。对我来说,阈值会改变检测位置的角度。
我会和同事核实一下这可能是什么问题,然后再回复你。 以上来自于谷歌翻译 以下为原文 OK, unfortunately I'm not able to replicate your issue. To me the threshold change the angle where the positions are detected. I will check with my colleagues, what could be the issue and come back to you. |
|
|
|
你在用LIS2DE12进行测试吗?
注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Are you testing with a LIS2DE12? Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
这有什么进展吗?
注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Any progress on this? Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
解决了!对于那些在将来关注此主题的人。为了使位置阈值低于45度或0.7g工作,必须在REG1_CFG中禁用其中一个轴,因此在INT1_CFG中禁用是不够的,但必须在REG1_CFG中禁用整个轴
以上来自于谷歌翻译 以下为原文 Solved! For those who follow this thread in the future. In order to get a position threshold below 45 degrees or 0.7g to work, one of the axis must be disabled in the REG1_CFG so disabling in INT1_CFG is not enough, but the whole axis must be disabled in REG1_CFG |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2247 浏览 1 评论
3033 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1611 浏览 1 评论
3424 浏览 6 评论
5756 浏览 21 评论
773浏览 4评论
1138浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
407浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1119浏览 3评论
1171浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-16 06:09 , Processed in 1.132311 second(s), Total 91, Slave 76 queries .
Powered by 电子发烧友网
© 2015 www.ws-dc.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191