cancel
Showing results for 
Search instead for 
Did you mean: 

I2C Clock Stretching issues

werner
Associate
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
1 REPLY 1
kyc
Associate II
Posted on July 22, 2014 at 09:50

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