Hi everyone
I am working in process. In that the i2c interrupt clashes with timer interrupt, and both are not functioning properly. But both of them works good separately. how to handle this nested interrupt in lpc2148. Also i2C module takes around 110.86 micro seconds to generate a proper interrupt. my controller works at 60 mhz and the i2c bus speed is 100 khz. any ideas regarding this would be helpful to me.
Thanks in advance
Regards Sundar
Good I2C implementations doesn't require you to wait in the interrupt handler - the interrupt handler gets called when the I2C device is ready to be serviced. expanding on Pers post NO interrupt handler should have a wait for anything in it, possibly (but should be avoided) a pulse stretcher of a microsecond or two
NO interrupt handler should have a wait for anything in it
Taking that too literally would sure make the writing of an RTOS a whole lot more awkward.
As was mentioned already, there is no need to wait. Just use the state machine of i2c as implemented by the peripheral. See your user manual.