1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Stm32f2xx i2c

Discussion in 'ARM' started by rukmal1992, Oct 6, 2013.

  1. rukmal1992

    rukmal1992 New Member

    Joined:
    Jul 13, 2013
    Messages:
    13
    Likes:
    0
    Location:
    Sri Lanka
    hey need help in stm32f2 i2c...

    I2C_InitStructure.I2C_Mode =
    I2C_InitStructure.I2C_DutyCycle =
    I2C_InitStructure.I2C_OwnAddress1 =
    I2C_InitStructure.I2C_Ack =
    I2C_InitStructure.I2C_AcknowledgedAddress =
    I2C_InitStructure.I2C_ClockSpeed =

    in i2c initating configuration I2C_OwnAddress1 means the address of the first slave or adrss of own i2c device???
    i hv a confision on dat...

    thank you in advance.
     
  2. rukmal1992

    rukmal1992 New Member

    Joined:
    Jul 13, 2013
    Messages:
    13
    Likes:
    0
    Location:
    Sri Lanka
    i have uploaded the files 24c02.c contain the configuration of i2c with the 24c02 eeprom, main contain the main program using.

    thank you.
     

    Attached Files:

    • 24C02.c
      File size:
      8.4 KB
      Views:
      469
    • 24C02.h
      File size:
      2 KB
      Views:
      341
    • main.c
      File size:
      3.8 KB
      Views:
      278
  3. rukmal1992

    rukmal1992 New Member

    Joined:
    Jul 13, 2013
    Messages:
    13
    Likes:
    0
    Location:
    Sri Lanka
    this contain the slave address in hex form for " I2Cx_SLAVE_ADDRESS7 "
     

    Attached Files:

    • config.h
      File size:
      19.4 KB
      Views:
      445
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. rukmal1992

    rukmal1992 New Member

    Joined:
    Jul 13, 2013
    Messages:
    13
    Likes:
    0
    Location:
    Sri Lanka

    check this
     

    Attached Files:

    • main.c
      File size:
      3.8 KB
      Views:
      448
  6. rukmal1992

    rukmal1992 New Member

    Joined:
    Jul 13, 2013
    Messages:
    13
    Likes:
    0
    Location:
    Sri Lanka
    check this
     

    Attached Files:

Share This Page