SD card detection without additional pins
Rayman
Posts: 14,827
My SD card adapter has a switch to detect the presence of a card.· (There's also another switch to check the write-protect status).
I was thinking that additional pins would be needed to use this feature.· But, now I'm considering double use of 2 of the SD card pins.
I'm guessing that the SD card is disabled when it's CS pin is low.· Also, the·SD card·outputs or inputs shouldn't mind they're connected to a say 10k resistor to either GND or VDD.· The SD adapter switches ground when activated.· So, 10k pull-ups to those pins and then series 10k to·1 (or two)·of the SD card IO pins should do the trick...
Anybody tried this? (Or, think it won't work?)
Update:· It works! (but not the way I originally wanted...)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
visit http://www.rayslogic.com
Post Edited (Rayman) : 5/5/2009 11:57:41 AM GMT
I was thinking that additional pins would be needed to use this feature.· But, now I'm considering double use of 2 of the SD card pins.
I'm guessing that the SD card is disabled when it's CS pin is low.· Also, the·SD card·outputs or inputs shouldn't mind they're connected to a say 10k resistor to either GND or VDD.· The SD adapter switches ground when activated.· So, 10k pull-ups to those pins and then series 10k to·1 (or two)·of the SD card IO pins should do the trick...
Anybody tried this? (Or, think it won't work?)
Update:· It works! (but not the way I originally wanted...)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
visit http://www.rayslogic.com
Post Edited (Rayman) : 5/5/2009 11:57:41 AM GMT
Comments
I'm not sure about the best way to do it but happy to investigate further.
I use a molex 47309-2651 microsd header. The detect switch actually comes out to 2 separate pads so it would be possible to connect one end to something other than ground (though that is the easiest given the pad layout)
cheers
tubular
if you get this to work, could you please elaborate on how to actually implement it?
thanks,
Mark
Wanted to use the one input to the Prop (data out from SD) to do it, but that doesn't work because the SD card drives that pin high once it's been accessed, even if unmounted.
Besides, there's really two switches I want to monitor "card detect" and "write protect"...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
visit http://www.rayslogic.com