Skip to main content
werner
Visitor II
Jul 17, 2013 12:30 PM UTC
Question

I2C Clock Stretching issues

Posted on July 17, 2013 at 14:30

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
This topic has been closed for replies.

1 reply

kyc
Associate
Jul 22, 2014 7:50 AM UTC
Posted on July 22, 2014 at 09:50

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