cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S105 _ EXTI interrupts

thibaut2
Associate II
Posted on September 03, 2012 at 15:00

Hi all.

I'm developping an application on stm8S105S4, requiring among other peripherals, the use of 7 EXTI interrupts.

-2 on port D

-3 on port B

-2 on port E.

Scanning the forum, i ve read there is no ITpending flag to clear for these interrupts, nor status register allowing to see which pin has set the interrupts.

Is there any way to see which pin has triggered ?

I still may change pinning for 2nd run to split EXT ITs on the different ports, but anyway i still need 7 and there are only 5 ports which allow interrupts....

I see a walk around by using timers in input capture mode, but it's not really power efficient...

Anyone has a clue ?
2 REPLIES 2
klaasdc
Associate II
Posted on September 05, 2012 at 15:28

The only thing I can think of is to make a copy of the GPIO register every time the interrupt is called. It's only 1 byte per port so not too heavy. Then you can mask the ''previous'' register status with the current one to check if a pin has changed.

somnathshendge
Associate
Posted on February 13, 2015 at 11:10

Hello friends,

I have problem related to external interrupt on PORTA.

is PA1 in STM8S105 have external interrupt feature ?

please explain in detail with reference.