2026-01-07 9:22 AM
Dear ST Team,
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.
2026-01-07 9:42 AM
>>Can PC0 and PF0 generate external interrupts independently?
No, they combine in a OR sense
You'd typically pick different pin# for individual sources
"When several input pins connected to the same interrupt line are selected simultaneously, they are logically ORed."
2026-01-07 9:45 AM
https://community.st.com/t5/stm8-mcus/stm8l052-external-interrupt-issue/td-p/869037
2026-01-07 8:18 PM
Thank You,
"logically ORed"? What does it mean?
Could you please share some info?