AnsweredAssumed Answered

I2C Wrong - STM32F0

Question asked by eaglewatch Employee on Dec 20, 2013
Latest reply on Mar 2, 2014 by wei.yang
Hello everybody,

I have a problem with the I2C protocol used by the STM32F0.

In fact, after setting up all the necessary stuff if I use this code:

I2C_GenerateSTART(I2C1);

I get the waveform I2C_ONE

The first channel is SDA and the second one is SCL.

Otherwise if I use this code:

I2C1->CR2=0xAA;
I2C_GenerateSTART(I2C1);

I get the waveform I2C_TWO.

In any case, if I use I2C_SendData(....

I am not able to get any data on the I2C bus.

Can you try to use the I2C protocol with the STM32F0 and give me a feedback?

Thanks a lot,

Peppe

Outcomes