您好,我正在使用STM8S105作为I2C从器件。
禁用I2C_StretchClockCmd(DISBALE)时会发生奇怪的事情。
当主机请求数据时,第一个字节始终是其从机地址,然后是TX缓冲区。当我启用时钟延长时,数据写入正确(没有从地址)
#clock-stretch-i2c#i2c
以上来自于谷歌翻译
以下为原文
Hello, I am using STM8S105 as an I2C slave.
A strange thing happens when I disable I2C_StretchClockCmd(DISBALE).
When the master asks for data, the first byte is always its slave address, followed by the TX buffer. When I enable clock stretching, then the data is written correctly (without Slave address)
#clock-stretch-i2c #i2c