Part Number: MSP432P401R
Other Parts Discussed in Thread: MSP430FR2433
Hi,
My question is about interrupt handling on the MSP432, and perhaps more specifically to what extent the NVIC latches interrupts. Scenario as follows:
- Several Port 4 input interrupts are enabled;
- An interrupt occurs on a Port 4 line, and the handler is entered;
- While still in the handler, an interrupt occurs on a second Port 4 line - second interrupt is presumably 'pended';
- Before the handler exits, the port’s IE bit for the second Port 4 line is cleared;
- The handler then exits.
What then happens? It seems to me two possibilities:
- Either the handler is NOT run again for the second interrupt, because the IE bit is now clear;
- OR the handler WILL run again, despite the IE bit now being clear, because the IE bit was still set at the time of the second interrupt, so the interrupt went to ‘pending’ and this was latched by the NVIC.
I’ve had a weird bug which I can only really explain if the second answer is correct, but I find it hard to believe that was the design intent…..
Any views appreciated!
Thanks…. Happy Christmas!
John