Skip to main content
n.serina
Associate III
June 6, 2019
Solved

SDMMC card detect interrupt and lcd touch interrupt on same EXTI line

  • June 6, 2019
  • 2 replies
  • 869 views

Hello,

in STM32F746 DISCO.

Microsd detect pin is : PC13

LCD touch interrupt is : PI13

how to make use of both interrupts in the application ?

This topic has been closed for replies.
Best answer by Danish1

The short answer is "you can't". At least not using EXTI interrupt.

So how might you achieve the desired result instead?

PC13 happens to be RTC_TAMP1, so you could enable and use the corresponding RTC interrupt, leaving EXTI13 wired to PI13.

Or, since (in my experience) it takes quite a long time to mount a microSD card once it is inserted, maybe the detection of its insertion could be delayed by (say) up to 100 ms. In that case all you need do is poll PC13 in software every 100 ms. I suspect some real-time operating-systems make this fairly easy. But you could also do this in response to a timer interrupt.

Hope this helps,

Danish

2 replies

Danish1
Danish1Best answer
Lead III
June 6, 2019

The short answer is "you can't". At least not using EXTI interrupt.

So how might you achieve the desired result instead?

PC13 happens to be RTC_TAMP1, so you could enable and use the corresponding RTC interrupt, leaving EXTI13 wired to PI13.

Or, since (in my experience) it takes quite a long time to mount a microSD card once it is inserted, maybe the detection of its insertion could be delayed by (say) up to 100 ms. In that case all you need do is poll PC13 in software every 100 ms. I suspect some real-time operating-systems make this fairly easy. But you could also do this in response to a timer interrupt.

Hope this helps,

Danish

n.serina
n.serinaAuthor
Associate III
June 6, 2019

Hello Danish,

Great insights . Thanks for the clarification .