cancel
Showing results for 
Search instead for 
Did you mean: 

STM8L052 external interrupt issue?

Glodhi
Associate II

STM8L052XX – External interrupt on same pin number with different ports (PC0 & PF0)

I am using STM8L052R8T6.
I have already configured an external interrupt on PC0 (PORTC, pin 0).
Now I want to configure an external interrupt on PF0 (PORTF, pin 0) as well.

Since both pins have the same pin number but belong to different ports, I would like to know:

Can PC0 and PF0 generate external interrupts independently?

How should the EXTI configuration be done for multiple ports?

Which EXTI registers and interrupt handlers should be used for PORTF?

Could someone please provide guidance or a simple example for configuring external interrupts on PC0 and PF0 on STM8L devices?

Thank you.

1 REPLY 1

Duplicative, pick which of you asks the same questions.

https://community.st.com/t5/stm8-mcus/stm8l052r8t6-external-interrupt-on-same-pin-number-with/td-p/869038

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..