cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to set different EXTI trigger condition at same port ?

jeffrey23
Associate II
Posted on May 15, 2010 at 04:29

Is it possible to set different EXTI trigger condition at same port ?

4 REPLIES 4
brazov22
Associate II
Posted on May 17, 2011 at 15:08

Hi,

no it's not possible. Configuration refers to the whole port.

brazov

jeffrey23
Associate II
Posted on May 17, 2011 at 15:08

In STM8S103F3, I used both PC.3 and PC.6 as falling edge trigger source.

But how to distinguish them during EXTI_PORTC_ISR (IRQ5 interrupt service routine) ?
dhutchison1945
Associate II
Posted on May 17, 2011 at 15:08

You must enable both falling and rising edge on that port.

And after you must discriminate every interrupt on that port with an xor manually

It's complicated but this is the way.

b.r.

Spectre

jeffrey23
Associate II
Posted on May 17, 2011 at 15:08

Hi Spectre,

Thanks for your input. 

Is there an easier way ?

However, I got a solution finally.