I m working on a time critical system on LPC2388.
Earlier I worked on PIC18. Here, for a bit of time critical process, I have disabled the hardware interrupts and later enabled them. If a hardware interrupt is given, particular interrupt flag is set but it is not served until the interrupts are enabled. When the interrupt is enabled, because the flag is already set it will then serve the interrupt.
I put this more clearly…
for (10 iterations)
{
interrupt disabled
statements1
statements2
statements3
statements4
statements5
interrupt enabled
}
Suppose an interrupt is given in the 5th iteration during statement3 by pressing a push button, the corresponding flag is set but it is not served because the interrupt is disabled before statement1. After the statement4 & statement5 are executed, when the interrupts are enabled, because the flag is already set, now the interrupt is served and when it returns, this “for” loop continues.
I could see the above process clearly happen in Proteus when working on PIC18. As Proteus doesn’t has support for LPC2388, I m skeptical about this. I know EXTINT register contains the flags.
So, Can this be done in LPC2388 too??