完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我在清除H3LIS100上的中断引脚时遇到一些困难。我把它设置为生成和中断数据就绪。我也在使用LIS2D芯片,它有一个类似的接口,我可以通过读取INT1_SRC寄存器来清除该中断(对于过阈值中断),但是读取INT1_SRC和实际数据寄存器似乎都没有清除中断引脚用于H3LIS3100芯片上的数据就绪中断条件。进入断电状态确实可以清除中断,但在重复采集数据时这并不太有用。
以上来自于谷歌翻译 以下为原文 Hi, I'm having some difficulty clearing the interrupt pin on the H3LIS100. I have it set to generate and interrupt on data ready. I am also using the LIS2D chip, which has a somewhat similar interface, and I can clear that interrupt by reading the INT1_SRC register (for an over threshold interrupt), but neither reading the INT1_SRC nor the actual data registers seems to clear the interrupt pin for the data ready interrupt condition on the H3LIS3100 chip. Going to power down state does clear the interrupt but that is not too useful when taking repeated data samples. |
|
相关推荐
2个回答
|
|
读取所有三个输出寄存器(0x29,0x2B,0x2D)可清除数据就绪中断信号。
以上来自于谷歌翻译 以下为原文 Reading of all three output registers (0x29, 0x2B, 0x2D) clears the data ready interrupt signal. |
|
|
|
实际上,真正的答案比这复杂一点。我遇到了一个芯片状态,中断线会很高兴,只有一个电源周期才会清除它。我认为那是因为i2c交易中断并且没有完成。随后我几乎没有做任何事情似乎影响芯片。
我现在发现循环i2c时钟线9次(完成和芯片可能认为的事务仍在进行中),然后读取x,y和z数据将从卡住的中断线状态恢复。 以上来自于谷歌翻译 以下为原文 Actually the real answer is a bit more complicated than this. I was encountering a chip state where the interrupt line would go hi and only a power cycle would clear it. I believe that was because an i2c transaction got interrupted and did not complete. Subsequently pretty much nothing I did seemed to affect the chip. I have now found that cycling the i2c clock line 9 times (to complete and transaction that the chip might think was still in progress) and then reading the x, y and z data will recover from the stuck interrupt line state. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2634 浏览 1 评论
3208 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1783 浏览 1 评论
3609 浏览 6 评论
5987 浏览 21 评论
939浏览 4评论
1315浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
582浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1302浏览 3评论
1358浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 17:46 , Processed in 1.245862 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号