We are using F28377S MCU and have a external GPIO input that has to be Disabled and Enabled when other tasks are running. I have configured INT1.4 as the interrupt for this purpose. However I am getting trigerred into '1.1 - ADCA Interrupt 1' when I step out of the function it enters the interrupt disable function.
Here is my interrupt disable code
void ESC_disableInt()
{
DINT;
EALLOW;
PieCtrlRegs.PIEIER1.bit.INTx4 = 0;
EDIS;
EINT;
}
When I check the PIEIFR1.bit.INTx4 it is enabled, however the flag PIEIFR1.bit.INTx1 is disabled. Why am I still entering the particular interrupt.
Here is the code that my MCU enters
// 1.1 - ADCA Interrupt 1
interrupt void ADCA1_ISR(void)
{
// Insert ISR Code here
// To receive more interrupts from this PIE group,
// acknowledge this interrupt.
// PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}