I would like to know what happens if an Interrupt is enabled(ex:Arbitration Lost Interrupt in CAN module of NXP's LPC1778),but no ISR has been defined for the interrupt.
When such an interrupt occurs,i know that the respective interrupt flag will get set, but since i haven't defined any ISR,there wont be any interrupt vector offset address stored for control transfer for such an interrupt and so the control will pass back to the main routine,and i can reset the interrupt flag by polling it in the main routine (this is what im thinking).Will there be any latency when the CPU is figuring out that there's no ISR to jump to?
Any solutions on what might happen can really help me.
I enabled CAN Interrupt on my uC,but didnt define an ISR. When I performed an internal loopback test,the code entered into an infinite loop. Here is the disassembly code of the infinite loop being executed on LPC1778:
B . ENDP
So ya, if you are using interrupts, use the ISR.