cancel
Showing results for 
Search instead for 
Did you mean: 

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

n.serina
Associate III

Hello,

in STM32F746 DISCO.

Microsd detect pin is : PC13

LCD touch interrupt is : PI13

how to make use of both interrupts in the application ?

1 ACCEPTED SOLUTION

Accepted Solutions
Danish1
Lead II

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

View solution in original post

2 REPLIES 2
Danish1
Lead II

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

Hello Danish,

Great insights . Thanks for the clarification .