Skip to main content
tgadeyne
Associate
Dec 12, 2017 10:28 AM UTC
Solved

STM32F3 pin external interrupt and Alternate Function mode

Posted on December 12, 2017 at 11:28

Hello,

I am using a STM32F334.

Is it possible to configure a pin in Alternate Function Mode (Timer input Channel for my project) and to use at the same time the pin as an external interrupt source ?

It seems to work properly in my project but I am surprised it does and could not find any information on this case in the Reference Manual. Is it unrecommended to do it ?

According to Reference Manual, external interrupts are handled through EXTI and SYSCFG_EXTICRx registers while mode of GPIO pin is handled through GPIOx_MODER registers which are not related.

Thank you,

#pin-configuration
This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Dec 14, 2017 12:49 AM UTC
Posted on December 14, 2017 at 01:49

EXTI works in parallel to all other functionalities of the pin (except perhaps when set to Analog).

This is not a very well documented detail indeed.

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
Dec 14, 2017 12:49 AM UTC
Posted on December 14, 2017 at 01:49

EXTI works in parallel to all other functionalities of the pin (except perhaps when set to Analog).

This is not a very well documented detail indeed.

JW

tgadeyne
tgadeyneAuthor
Associate
Dec 14, 2017 8:43 AM UTC
Posted on December 14, 2017 at 08:43

Thank you for your answer Jan,

It confirms what I figured out.

Thibault