cancel
Showing results for 
Search instead for 
Did you mean: 

External interrupts question

matic
Associate III
Posted on August 08, 2016 at 20:22

Hi.

Currently I use PA15 pin as external interrupt. The ISR routine is common for lines 10 through 15 and it is called EXTI15_10_IRQHandler. Now, I would like to have another signal connected to pin PB12, which has same IRQ Handler as PA15, and enable interrupt also for PB12. But I don't want to come into ISR when event on PB12 occurs. I just want to poll for the flag in EXTI->PR register. Interrupt (ISR) should occur only at event on PA15.

Is this possible or should I move one signal to different pin?

Thanks

3 REPLIES 3
Posted on August 08, 2016 at 20:36

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/External%20interrupts%20question&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx&currentviews=21]Duplicate Thread

I don't know, try experimenting..

Obvious things to try are just looking at the GPIO->IDR, or using a pin on a timer with Input Capture that just time-stamps the event and not interrupt, where it would still latch as a CCx event. If the number of pulses were critical, it could be an External Clock.

Sounds like you want it to latch, and review later even if it goes away.

Does the EXTI differentiate between a pin change ''event'' and masking an interrupt, like other peripheral?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
matic
Associate III
Posted on August 08, 2016 at 23:09

Yes, the idea was to latch an event and review it later, even if it goes away before.

I don't know if a flag in EXTI->PR register could be raised without triggering interrupt, when pin between numbers 10 - 15 is used and when another pin with one of these numbers is already used as EXT interrupt.

From: clive1

Posted: Monday, August 08, 2016 8:36 PM

Subject: External interrupts question

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/External%20interrupts%20question&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https%3a//my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx&currentviews=21]Duplicate Thread

I don't know, try experimenting..

Obvious things to try are just looking at the GPIO->IDR, or using a pin on a timer with Input Capture that just time-stamps the event and not interrupt, where it would still latch as a CCx event. If the number of pulses were critical, it could be an External Clock.

Sounds like you want it to latch, and review later even if it goes away.

Does the EXTI differentiate between a pin change ''event'' and masking an interrupt, like other peripheral?

troy1818
Senior
Posted on August 09, 2016 at 08:43

Hi, I am curious about your dilemma. It would be interesting to know if this is possible.

As another solution, depending on the frequency of the signal on PB12 and the frequency running your MCU, you could make that pin a normal input pin and just try and poll it from time to time.

Could you please explain why you do not want to have PB12 as interrupt ?