Hi Andres L. Bleda
Yes, as mentioned Luciano you have to differenciate the pin by the interrupt status Flag, for example for the PORTB that you mentioned
void PORTB_IRQHandler(void){
if (PORTB_ISFR & (1<<3)){
PORTB_ISFR |= (1<<3);
/* your code here */
}
if (PORTB_ISFR & (1<<4)){
PORTB_ISFR |= (1<<4);
/* your code here */
}
}
Hope this helps
Have a great day,
Jorge Alcala
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------