cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103RBT6 GPIO Interrupt

Praveen Gonsalves
Associate II
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
1 REPLY 1
Zt Liu
Senior III
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 

0690X00000602PIQAY.bmp

As for registers, you may check AFIO_EXTICRx registers in 9.4.3

0690X00000602SzQAI.bmp

So, PC10 and

PA10

 can only be the trigger source of EXTI10 exclusively. 

Good Luck!