I2C write within IRQ

Started by franciscocantero1 December 17, 2010
Hello all,

I have a little problem.

I want to do some I2C writes to an EEPROM from an interrupt service routine, but the I2C fails to initialize the process.
Up to now i overcome this by setting a flag in the interrupt and in the main loop check if the flag is set and do the I2C writes.

I have looked at the I2C registers from inside the interrupt and they seem to be the same as from the main loop.

Does anyone knows why is this happening.

Thanks.

An Engineer's Guide to the LPC2100 Series