2006-02-03 07:57 AM
2006-02-02 02:23 AM
Hi,
Can someone forward me a working example of I2C communication with the EEPROM. I'm working on the IAR 4.30 compiler. Thanks2006-02-03 03:16 AM
Hi Zouh,
Thank you for the example. I'm interfacing the STR710 to M24C128 on our custom board. M24C128 is on a 16 bit addressing mode. So, the block address is replaced 2 bytes of address (MSB and LSB). Also, all the Device select pins (E1, E2, and E3) are NC on the EEPROM. When I send the command, the ACK is never set: I2C_AddressSend (I2C0, M24C128_ADDRESS, I2C_Mode7, I2C_TX); Please find attached the updated example and the datasheet. Please suggest me with your expertise. Thanks, ________________ Attachments : I2C_Example_m24128.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtGF&d=%2Fa%2F0X0000000aKp%2F8hU.mQSL2SkhHyTN5HizCUXPK62fNMyqJyGvn55ILg0&asPdf=falseM24128-BW.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtGK&d=%2Fa%2F0X0000000aKq%2FO2f.k8juyFXedbb3E3zce.5almT0DcwmJ5Vyhf2QUXM&asPdf=false2006-02-03 07:57 AM
Hi,
It was a problem with the hardware. I retouched the connections and the communication is fine now. Also, E0, E1 and E2 has been pulled high. So. it works... Thanks for all your inputs...