We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Does anyone know which of the two I2C interrupts, DataTransfer and Protocol, should be given the higher interrupt priority ?
There is IIC_DIC - DataTransfer and IIC_PEIC - Protocol
Does priority of these two matter ? If so what should they be ?
Thanks,
I would set the Data Transfer interrupt at higher priority - even use PEC to service it. Just to not slow down the transfer rate. You don't do anything else than read or write the IIC data buffer on Data Transfer interrupt.
The Protocol interrupt is where you check the various flags and decide what to do next. SCL is held low as long as any of the interrupt flags is set, so the Protocol interrupt need not have a high priority.
Someone who has actually used the IIC might have a different opinion..
Sauli