Skip to main content
Praveen Gonsalves
Associate II
May 11, 2017
Question

STM32F103RBT6 GPIO Interrupt

  • May 11, 2017
  • 1 reply
  • 1173 views
Posted on May 11, 2017 at 09:19

Hello, 

I've designed my project using STM32F103RBT6. I've connected two switches to PC10 and PA10. 

Now I need external interrupt on both the swithes, but using cubeMX I'm able to set external interrupt to only one of the switches. 

How can I set external interrupt to two switches PC10 and PA10 ??

Thank you

#stm-32 #gpio #stm32f103rbt6 ##interrupt
This topic has been closed for replies.

1 reply

Zt Liu
Senior III
June 6, 2017

Posted on June 06, 2017 at 12:03

 

 

 

hi, if I understood correctly.

There is nothing to do with the cubeMX,

You simply cannot do that.

External Interrupt can only work as followed:(from 

http://www.st.com/content/ccc/resource/technical/document/reference_manual/59/b9/ba/7f/11/af/43/d5/CD00171190.pdf/files/CD00171190.pdf/jcr:content/translations/en.CD00171190.pdf

)

p.209 

As for registers, you may check AFIO_EXTICRx registers in 9.4.3

So, PC10 and

PA10

 can only be the trigger source of EXTI10 exclusively. 

Good Luck!