1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

LPC2138 I2C

Discussion in 'Embedded' started by Frank van Eijkelenburg, Jun 18, 2008.

  1. Hi,

    I am still using the LPC2138 ;). Now I have a problem with I2C. When I
    try to send some bytes to an EEPROM device, the following happens:

    - I2C start condition is made
    - interrupt is generated
    - I2C address is sent
    - EEPROM device gives an ACK

    And now nothing happens. If I look at the I2C bus state, the
    microcontroller accepted the ACK. However, no new interrupt is given
    due to a bus state change. The SI bit is high in the control register.

    Should I continuously receive interrupts when the SI bit is set? If
    so, maybe at a higher level the interrupt is turned off. Any other

    Frank van Eijkelenburg, Jun 18, 2008
    1. Advertisements

  2. It is working now. The main problem was in my generic interrupt
    handling code. After changing the generic interrupt handling,
    everything worked fine.
    Frank van Eijkelenburg, Jun 26, 2008
    1. Advertisements

  3. Frank van Eijkelenburg

    emeb Guest

    Thanks for the follow-up. I assume it was a fairly simple software
    bug, not some lurking inconsistency in the way the LPC2138 works?

    emeb, Jun 26, 2008
  4. Yes, it was a software bug in the code I use. The LPC2138 was working

    Frank van Eijkelenburg, Jun 28, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.