完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
如何在从机保持SDA为低电平时处理IIC总线
以上来自于谷歌翻译 以下为原文 How to handle IIC bus while the slave hold the SDA low |
|
相关推荐
4个回答
|
|
|
嗨,
我正在使用带有IIC从设备的STM8S105K4,在上电时,IIC总线始终处于“忙”状态,即SDA线始终处于低电平状态。怎么能 我克服了这个问题? (不要使用硬件重置..,谢谢) 贾森 以上来自于谷歌翻译 以下为原文 Hi, I'm using the STM8S105K4 with a IIC slave device, while power-on, the IIC bus always in the 'busy' state, that is , the SDA line always low. How can I overcome this issue? (NOT use HW Reset.., thanks) Jason |
|
|
|
|
|
嗨,杰森,
SCL和SDA需要外部上拉电阻(4.7k),请检查这一点。 问候 mozra 以上来自于谷歌翻译 以下为原文 Hi Jason, The External pull-up resistances (4.7k) are needed on SCL and SDA, please check this point. Regards mozra |
|
|
|
|
|
嗨,
SDA& SCL通过4.7K电阻拉高。 我可以在第一次调试时访问I2C从器件 电源打开,奴隶似乎把SDA保持在低位(我不知道 为什么),如果我按''重置''按钮,mcu和I2C 奴隶工作得很好。 我们看到了Silabs的C8051系列文件,他们处理了 通过改变SDA& amp; SCL引脚到GPO模式(打开 排水)并等待SDA高,但我不知道如何 将STM8S105从备用功能(I2C)配置为 GPO模式,任何想法? 问候, 贾森 以上来自于谷歌翻译 以下为原文 Hi, Both the SDA & SCL are pulled high with 4.7K resistor. I can access the I2C slave in debug, while first time power on, the slave seems hold the SDA low (I don't know why), if I press ''reset'' button, the mcu and the I2C slave work well. I'vd see a document of Silabs's C8051 series, they handled such problem by changing the SDA & SCL pin to GPO mode (open drain) and wait for SDA high, but I don't know how to configure the STM8S105 from alternate function (I2C) to GPO mode, any idea? regards, Jason |
|
|
|
|
|
嗨,杰森,
它可能发生,它是强制线路处于低状态的主人!您的案例中使用的主设备是什么? SDA&在启用I2C时,SCl被配置为备用功能,您无权将I / O重新配置为备用功能,但您可以在I / O上添加软件上拉: GPIOE-> CR1 = 0x06; 请试试这个并随时通知我们 问候 mozra 以上来自于谷歌翻译 以下为原文 Hi Jason, It can happen that it is the master that forces the line in the low state!!! What is the master device used in your case? The SDA & SCl are configured as alternate function when enabling the I2C, you don't have access to reconfigure the I/O as alternate function but you can add a software pull-up on the I/O: GPIOE->CR1 = 0x06; Please try this and keep us informed Regards mozra |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
661浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 06:54 , Processed in 0.719733 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2840