Hi,
I am working on K22f10MA kinetics controller and also using quantum leaps framework for coding. The question is whenever i get external interrupt once, its going to ISR twice. code and result is given below.
/******* code **********/
uint32_t isr_array[100] ={ 0 };
uint8_t arraycounter = 0;
void IR_PORTC_IRQ_ISR_Handler(void)
{
isr_array[arraycounter] = PORT_RD_ISFR(PORTC_BASE_PTR);
arraycounter++;
INT_SYS_DisableIRQ(g_portIrqId[PORTC_ID]);
Pit_start();
PORT_WR_ISFR(PORTC_BASE_PTR, ~0U);
}
note: interrupt is again enabled in timer ISR. Before interrupt is enabled, clearing ISFR register.
/******** results ********/
Name : isr_array
Details:{4, 0, 4, 0, 4, 0, 4, 0, 4, 0, 4,}
1. Why execution is going into the ISR when no interrupt detected (read 0 from ISFR register), also interrupt flag is cleared.
please help to understand what might be happening?
Thank you in advance.
Regared,
Aniket