cancel
Showing results for 
Search instead for 
Did you mean: 

I2C Slave transmitter problem

bagrowicz
Associate II
Posted on October 05, 2009 at 16:37

I2C Slave transmitter problem

2 REPLIES 2
bagrowicz
Associate II
Posted on May 17, 2011 at 13:25

Hi!

Could any one tell my how clear ADDR flags in SR1 register.

In documentation to library 3.0.1 we can read that:

''This bit is cleared by software reading SR1 register followed reading SR2''

I do something like this:

I2C_GetFlagStatus(I2C1,I2C_FLAG_ADDR);

(void)(I2C1->SR2);

but after that flag is still on, and i can't get ''slave transmitter address matched'' again :[

Any sugestions?

Regards,

Maciek

tomas23
Associate II
Posted on May 17, 2011 at 13:25

Check erratasheet and AN2824 at

http://www.st.com/mcu/familiesdocs-110.html

, hope it helps.