Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 11 months ago.
InterruptIn per pin number
Hello,
I have found this post https://developer.mbed.org/questions/2737/Attaching-interrupt-to-pins-other-than-P/ and Erik Olieman said, that you can only have one interruptin per pin number, so if you make PC_5 an interrupt, you can not make PA_5 also one. Is that still true?
Thanks in advance
1 Answer
8 years, 11 months ago.
For all STM32 targets that I am aware of: Yes. This is a hardware limitation and not a software one, there is one interrupt register, where a bit is high if an interrupt happened. But this is shared between all the ports, so there is no way to distinguish between PC_5 and PA_5 having an interrupt, in both cases bit 5 of that register is high.