STM32 Port Interrupt

An area to discuss ARM specific problems and examples

Moderator: Benj

Post Reply
User avatar
fotios
Posts: 458
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 109 times
Been thanked: 117 times
Contact:

STM32 Port Interrupt

Post by fotios »

Hi everyone
I have connected a tactile switch at port PB11, which is active low.
I try to enable an interrupt on this port.
I can't see a particular selection of pin PB11.
The port B includes 15 I/O pins and FC7 offers port interrupt only for pins EXTI0, EXTI1, EXTI2, EXTI3, EXTI4, EXTI8, and EXTI13.
Why there is not included the EXTI11? Provided that the PB11 is an I/O port?
Is there any restriction for the rest pins of port B?
Thanks
Best Regards FOTIS ANAGNOSTOU

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32 Port Interrupt

Post by LeighM »

Hi,
Which particular device are you using?

User avatar
fotios
Posts: 458
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 109 times
Been thanked: 117 times
Contact:

Re: STM32 Port Interrupt

Post by fotios »

Hi
The STM32F303RE (QFP64)
Now I'm looking on the datasheet at the SYSCFG_EXTCRIx registers.
Last edited by fotios on Thu Nov 28, 2019 1:01 pm, edited 1 time in total.
Best Regards FOTIS ANAGNOSTOU

User avatar
fotios
Posts: 458
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 109 times
Been thanked: 117 times
Contact:

Re: STM32 Port Interrupt

Post by fotios »

The corresponding configuration register for the PB11 is the SYSCFG_EXTICR3 bits 12,13,14,15 (EXTI11).
In the end, is noticed that some IO pins may not be available on small packages.
Is that the case?
Thanks
Last edited by fotios on Thu Nov 28, 2019 12:59 pm, edited 1 time in total.
Best Regards FOTIS ANAGNOSTOU

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32 Port Interrupt

Post by LeighM »

Thanks, I will look into it ...

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: STM32 Port Interrupt

Post by LeighM »

Could you please try replacing this in the FCD directory ...
Attachments
32F303RE.fcdx
(48.78 KiB) Downloaded 211 times

User avatar
fotios
Posts: 458
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 109 times
Been thanked: 117 times
Contact:

Re: STM32 Port Interrupt

Post by fotios »

Hi Leigh

Yes, it is working flawlessly on my actual hardware.

Thanks a lot :D

FYI: On the FC7 simulator doesn't work.
Best Regards FOTIS ANAGNOSTOU

Post Reply