2016-08-08 11:22 AM
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
2016-08-08 11:36 AM
[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¤tviews=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?2016-08-08 02:09 PM
[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¤tviews=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?2016-08-08 11:43 PM
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 ?