ST意法半导体
直播中

邝计嘉

7年用户 246经验值
私信 关注
[问答]

I2C时钟延长

您好,我正在使用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

回帖(1)

陈茹

2018-11-5 10:26:24
我可以详细询问一下,当您禁用时钟延长时会发生什么?

以上来自于谷歌翻译


以下为原文





May I ask in detail, what happen when you disable clock stretching?
举报

更多回帖

发帖
×
20
完善资料,
赚取积分