AnsweredAssumed Answered

stm32f303 external interrupt

Question asked by fante.lesto on Mar 1, 2014
Latest reply on Mar 1, 2014 by fante.lesto
hello,
i'm trying to set up PDE0-1-2-3-4-5 for external interrupt. I want to have 6 pin near each other just to have a nicer cabling layout.

I set up the clock, the pin as input.
Then i have to set up SYSCFG_EXTILineConfig() for every pin, right?

Then i set up EXTI_Init() with EXTI_LineX, where X goes from 0 to 5, because every pin is in a different line (reference manual page 190)

Then i have to set up NVIC_Init(), i use EXTI0_IRQn, but is it only about priority and to group interrupt?, or there is HW related, like for line? i'm a bit confused.

also, now i'll have to write a void EXTI0_IRQHandler(void), with have to pay attention on witch pin generate the interrupt, or there is alredy somenthing that does that for me?

thank you.

Outcomes