Topic : STM8L151C4 interface with M24512FDW I2C EEPROM

Forum : ST7/STM8

Original Post
Post Information Post
March 11, 2013 - 12:41pm
Guest

Hi

I'm using STM8L151C4 in my design. I have interfaced this with I2C EEPROM M24512FDW (ST make). I had pulled the enable lines of the EEPROM ( E0, E1, E2) to high (3.3V) & set the slave address of EEPROM as 0XAF. I have pulled the SCL & SDA lines to 3.3V through 100 ohm. Also an addtional series resistance of 100 ohms is placed on these lines closer to the micro's i2C port (PC0 & PC1). I'm using R-Link Compiler (Raisonnance) & using its sample i2C code.

The problem is that the micro is not able to reach the slave EEPROM & the code hangs during I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED

I could not understand the reason for this behaviour.

Could you help me out of this issue.

Thanks
Arunkumar.S