This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC3250module I2C problem

hello sir/madam,
using LPC3250,i'm interfacing eeprom at24c64 it is based on I2C protocol.
when i'm going to interface this module (eeprom), i'm not getting any clock pulses on SCL and SDA .so what can be the possible reason for not seeing any pulses on clock and data pin. we had check the hardware connection properly and also provided pullup(1k) to both SDA and SCL.below we are adding initialization code please have a look and let us know your opinion.

void i2c1_init(void)
{ I2CCLK_CTRL = 0x00000001 ; I2C1_CTRL = 0x00000000 ; I2C1_CLKH = 520 ; // 520 I2C1_CLKL = 520 ; // 520
}

how controller knows he is configured in master or slave mode

Thanks & Regards
madhu krishna.G

Parents
  • Hi,
    Sorry for the improper posting of source code in future will take the correct measure.
    as for as in lpc3250 I2C pin are not multiplexed with any other pins .
    what can be the other possible check we can make.We are once again looking into datasheet of lpc3250. For reference code we are using NXP cdl library for lpc3250.
    Waiting for your reply.

    Thanks & regards
    madhu krihna .G

Reply
  • Hi,
    Sorry for the improper posting of source code in future will take the correct measure.
    as for as in lpc3250 I2C pin are not multiplexed with any other pins .
    what can be the other possible check we can make.We are once again looking into datasheet of lpc3250. For reference code we are using NXP cdl library for lpc3250.
    Waiting for your reply.

    Thanks & regards
    madhu krihna .G

Children