2020-09-08 04:45 AM
@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