2021-05-16 06:54 AM
Hi,
I have my design using STM32H750 (which does not matter in fact it is general question) and I uses Yamaichi microSD connector hat does not have card detect pin. In single data mode, I use one of the SD-Card pins to detect card bit obviously I cannot use that pin in quad data mode.
What are my options do detect removal/insertion? Periodically check SD card?
Any suggestion?
Thanks!
2021-05-16 07:38 AM
If you have pull-ups on the pins, any of them being low, at any point, would be a reasonable indicator.
2021-05-16 09:48 AM
Technically true, but if I am not mistaken I cannot read them via GPIO if I have assigned them to SDIO DATA pins. And especially I cannot create an interrupt on that. Unless there is some hidden functionality within SDIO itself that I am not aware.
2021-05-16 11:30 AM
The GPIO IDR and EXTI should work either way.
You could send simple command to see it the card responds.