完善资料让更多小伙伴认识你,还能领取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. |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1472 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1524 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3674 浏览 1 评论
3864 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2483 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
752浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
685浏览 5评论
730浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
976浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
779浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-14 22:07 , Processed in 3.843041 second(s), Total 75, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
617