Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

RE: [lpc2000] I2C does not generate interrupt after writing or reading

2005-08-01 by James Dabbs

> I have a problem with my lpc2292.
> The I2C bus does not generate a interrupt after a writing or 
> a reading. When I set the interrupt manually by setting the 
> i2c interrupt bit high then it comes in my isr routine.

I am in the late stages of trudging through an interrupt-driven I2C
interface for the 2106..  I believe it's the same hardware.

The I2C system interrupts you only on a 'state change'.  Therefore, you
have to read/write the data port at the right time to result in an
interrupt.  In my case, I had to set the STA flag, write bytes, then set
the STO flag.  I got an interrupt after setting the STA flag and after
each write.

I can see how setting the interrupt bit high will force the issue but
then your status register will probably only give you an 0xf8.

Good luck.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.