嗨,
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& 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
举报