cancel
Showing results for 
Search instead for 
Did you mean: 

how to clear the pending external interrupt

Trinu
Associate III

@svlreg INTERRUPT_HANDLER(EXTI_PORTD_IRQHandler, 6)

{

 /* In order to detect unexpected events during development,

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

 */

if((SWITCH == RESET) && (flag == SET))

{

OFF_STATUS = TRUE;

flag = RESET;

}

}

this is my handler function

In my application i am using a switch(not a push button) to on and off the alarm.

here i am getting the problem is the interrupt handler is continuously executing.

it seems the interrupt is rise continuously

how to clear the interrupt in the interrupt routine

I am using stm8s003k3.controller

thanks in advance

0 REPLIES 0