Skip to main content
Visitor II
September 8, 2020
Question

how to clear the pending external interrupt

  • September 8, 2020
  • 0 replies
  • 958 views

@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

    This topic has been closed for replies.