Skip to main content
bagrowicz
Associate II
October 5, 2009
Question

I2C Slave transmitter problem

  • October 5, 2009
  • 2 replies
  • 799 views
Posted on October 05, 2009 at 16:37

I2C Slave transmitter problem

    This topic has been closed for replies.

    2 replies

    bagrowicz
    bagrowiczAuthor
    Associate II
    May 17, 2011
    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
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 13:25

    Check erratasheet and AN2824 at

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

    , hope it helps.