Stm32f2xx i2c

Status
Not open for further replies.

rukmal1992

New Member
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.
 
i have uploaded the files 24c02.c contain the configuration of i2c with the 24c02 eeprom, main contain the main program using.

thank you.
 

Attachments

  • 24C02.c
    8.4 KB · Views: 760
  • 24C02.h
    2 KB · Views: 583
  • main.c
    3.8 KB · Views: 559
this contain the slave address in hex form for " I2Cx_SLAVE_ADDRESS7 "
 

Attachments

  • config.h
    19.4 KB · Views: 715
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…