AnsweredAssumed Answered

STM8S103F external interrupt

Question asked by kochergin.andrey on Jul 1, 2018
Latest reply on Jul 5, 2018 by kochergin.andrey

Hi!

I use a STM8S103F and I need to process external interrupts on PINs2,3 of PORT D by both fronts. That's my initialization code:

GPIO_Init(GPIOD, GPIO_PIN_2 | GPIO_PIN_3, GPIO_MODE_IN_PU_IT);
EXTI_SetExtIntSensitivity(EXTI_PORT_GPIOD, EXTI_SENSITIVITY_RISE_FALL);

enableInterrupts();

 

The problem is when I connect one of this pins to the ground the program goes to interrupt function and don't leave it while I don't release the pin. What I did wrong?

Outcomes