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
  • Sir,

    We have already done that change.
    Few minutes back we were able to solve the problem if we change clock parameter to the values shown below we were able to read and write data from memory

    I2C1_CLKH =94
    I2C1_CLKL =166

    Asymmetric I2c Clock(per 40khz i2c spec page no 516 of Usermanual UM10326 ) ,but one thing we didn't understand why it worked for Asymmetric clock case and not symmetric case.

    Waiting for your reply

    Regards & Thanks
    Madhu

Reply
  • Sir,

    We have already done that change.
    Few minutes back we were able to solve the problem if we change clock parameter to the values shown below we were able to read and write data from memory

    I2C1_CLKH =94
    I2C1_CLKL =166

    Asymmetric I2c Clock(per 40khz i2c spec page no 516 of Usermanual UM10326 ) ,but one thing we didn't understand why it worked for Asymmetric clock case and not symmetric case.

    Waiting for your reply

    Regards & Thanks
    Madhu

Children
No data