Skip to main content
Visitor II
February 3, 2006
Question

I2C Communication

  • February 3, 2006
  • 3 replies
  • 629 views
Posted on February 03, 2006 at 16:57

I2C Communication

    This topic has been closed for replies.

    3 replies

    anil23Author
    Visitor II
    February 2, 2006
    Posted on February 02, 2006 at 11:23

    Hi,

    Can someone forward me a working example of I2C communication with the EEPROM. I'm working on the IAR 4.30 compiler.

    Thanks

    anil23Author
    Visitor II
    February 3, 2006
    Posted on February 03, 2006 at 12:16

    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=false

    M24128-BW.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtGK&d=%2Fa%2F0X0000000aKq%2FO2f.k8juyFXedbb3E3zce.5almT0DcwmJ5Vyhf2QUXM&asPdf=false
    anil23Author
    Visitor II
    February 3, 2006
    Posted on February 03, 2006 at 16:57

    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...