一个判断 I2C 总线通信异常原因的方法
参考链接
【经验分享】一个判断 I2C 总线通信异常原因的方法 (stmicroelectronics.cn)https://shequ.stmicroelectronics.cn/thread-633302-1-1.html
至于如何在i2c总线中如何使用还没有弄明白。后续再看。
使用方法记录
阻值分配
图中的倍数关系很重要。
注意上图中低电平分压为三分之一
上图中低电平分压为十一分之一
总结:
① 需要使用示波器查看,不能使用逻辑分析仪。
② 从机和主机的差别再低电平电压不同。
③ 如果从机没有回复则没有那个1/3电压的存在。
④ 必须是主机边串联的电阻阻值较小。否则从机收到的低电平电压太高不无法判断为有效信号。
⑤ 图中的10R是倍数关系,不是10Ω电阻。(实际使用可以考虑4.7K和470Ω的组合进行使用用)
补充使用记录
STM32F4xxx的I2C总线挂起异常处理
参考链接【实战经验】STM32F4xxx的I2C总线挂起异常处理 - STM32/STM8单片机论坛 - ST MCU意法半导体官方技术支持论坛 - 21ic电子技术开发论坛https://bbs.21ic.com/icview-1656548-1-1.html#:~:text=%E5%A4%84%E7%90%86%E6%96%B9%E6%B3%95,%E5%BD%93%E5%87%BA%E7%8E%B0%E4%B8%8A%E8%BF%B0%E5%BC%82%E5%B8%B8%E6%97%B6%EF%BC%8C%E5%86%99I2C%E5%A4%96%E8%AE%BE%E5%AF%84%E5%AD%98%E5%99%A8%E6%96%B9%E6%B3%95%E5%B0%86%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8%EF%BC%8CI%2FO%E7%AB%AF%E5%8F%A3%E4%BA%A7%E7%94%9F%E4%B8%8D%E4%BA%86%E9%9C%80%E8%A6%81%E9%80%80%E5%87%BA%E7%9A%84%E6%B3%A2%E5%BD%A2%EF%BC%8C%E5%8F%AA%E8%83%BD%E9%80%9A%E8%BF%87I%2FO%E5%8F%A3%E5%BC%BA%E6%8B%89%E6%95%88%E6%9E%9C%E9%80%80%E5%87%BA%EF%BC%8C%E5%8F%AF%E4%BB%A5%E6%9C%89%E4%B8%A4%E7%A7%8D%E6%96%B9%E6%B3%95%E8%BF%9B%E8%A1%8C%E5%A4%84%E7%90%86%EF%BC%9A%20%E6%96%B9%E6%B3%95%E4%B8%80%EF%BC%9A%E5%BD%93%E5%87%BA%E7%8E%B0%E5%BC%82%E5%B8%B8%E6%80%BB%E7%BA%BF%E5%8D%A0%E7%94%A8%E6%97%B6%EF%BC%8C%E7%9B%B4%E6%8E%A5%E5%A4%8D%E4%BD%8DI2C%E5%A4%96%E8%AE%BE%EF%BC%8C%E4%BB%A5%E5%8F%8A%E9%87%8D%E6%96%B0%E5%88%9D%E5%A7%8B%E5%8C%96I2C%E7%AB%AF%E5%8F%A3%EF%BC%8CI%2FO%E5%8F%A3%E9%85%8D%E7%BD%AE%E4%B8%BA%E4%B8%8A%E6%8B%89%E6%A8%A1%E5%BC%8F%E7%9A%84%EF%BC%8C%E4%BA%A7%E7%94%9F%E8%99%9A%E6%8B%9F%E7%9A%84STOP%E6%B3%A2%E5%BD%A2%EF%BC%9B%E6%AD%A4%E6%97%B6%E5%9B%A0%E4%B8%BAMCU%E7%AB%AF%E5%8F%A3%E7%9A%84%E5%BC%BA%E6%8B%89%E4%BD%9C%E7%94%A8%EF%BC%8C%E5%B0%86%E4%BA%A7%E7%94%9F%E4%B8%80%E4%B8%AA%E7%B1%BB%E4%BC%BC%E4%BA%8ESTOP%E7%9A%84I2C%E9%80%80%E5%87%BA%E6%95%88%E6%9E%9C%EF%BC%9B
I2C死锁及恢复方法
参考链接
I2C死锁及恢复方法 - 知乎 (zhihu.com)https://zhuanlan.zhihu.com/p/218202643#:~:text=1.%E4%B8%BB%E8%AE%BE%E5%A4%87%E5%9C%A8%E6%A3%80%E6%B5%8B%E5%88%B0SDA%E8%A2%AB%E6%8B%89%E4%BD%8E%E8%B6%85%E8%BF%87%E4%B8%80%E6%AE%B5%E6%97%B6%E9%97%B4%E5%90%8E%EF%BC%8C%E4%B8%BB%E5%8A%A8%E5%A4%8D%E4%BD%8D%E4%BB%8E%E8%AE%BE%E5%A4%87%E4%BB%8E%E8%80%8C%E4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81%E4%B8%AD%E6%81%A2%E5%A4%8D%EF%BC%8C%E4%BD%BF%E5%BE%97I2C%E9%80%9A%E4%BF%A1%E5%8F%AF%E4%BB%A5%E7%BB%A7%E7%BB%AD%E8%BF%9B%E8%A1%8C%E3%80%82
I2C从机挂死分析和解决方法 - 简书 (jianshu.com)https://www.jianshu.com/p/95f53ca2724e
特此记录
anlog
2023年7月11日