I was debugging my UART code when I noticed that UART interrupt occurred before enabling master interruption. I used the following code to configure interrupts:
/* Enabling interrupts */ MAP_UART_enableInterrupt(EUSCI_A0_MODULE, EUSCI_A_UART_TRANSMIT_INTERRUPT); MAP_Interrupt_enableInterrupt(INT_EUSCIA0); MAP_Interrupt_enableMaster();
But after invoking MAP_Interrupt_enableInterrupt(INT_EUSCIA0) call, the code jumps to UART interrupt request routine, before invoking MAP_Interrupt_enableMaster(). This behavior can be seen in the video bellow:
Is this a normal behavior? I always believed that no interrupt could occurs before the Master Interrupt be enabled.
Remark: I used the interrupt enable sequence suggested by MSPWare code examples.
Thanks!