cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I´m using STM8S0003F. I have 2 pins at PORT A (PA1 and PA3 that are programmed to generate an interrupt when any signal FALL_ONLY. During the interrupt routine, how can I know which pin generate this interrupt? Thank you Andre

AMast
Associate

INTERRUPT_HANDLER(EXTI_PORTA_IRQHandler, 3)

{

 /* In order to detect unexpected events during development,

   it is recommended to set a breakpoint on the following instruction.

 */

if(!GPIO_ReadInputPin(RUIDO_PASS_Port, RUIDO_PASS_Pin))

{

Tmr10msLeRuido1 = 20;

}

if(!GPIO_ReadInputPin(RUIDO_MOT_Port, RUIDO_MOT_Pin))

{

Tmr10msLeRuido0 = 20;

}

}

0 REPLIES 0