You need to use EasyEDA editor to create some projects before publishing
Sd card: detection switch connections?
4960 3
Markl 6 years ago
Hi, I am setting a schematics with a micro sd card connector. If the 8 pins are clearly understood. The DM3AT-SF-PEJM5 has a card detector. It translates to 2 lines forming a switch. So the sd card connector has 10 pins. Where to/from should these extra two connect? It is a general pcb question as any sd card reader may have it. Thanks
Comments
andyfierman 6 years ago
Hi Markl, Have you tried just Googling: `Sd card: detection switch connections` There seems to be some useful looking stuff comes back from that. :)
Reply
Markl 6 years ago
I did! :) Before I asked, I was thinking that I would put a pull up resistor to the A and connect the B output to a gpio pin of my CPU. That way, I should have an interrupt on card insert. Is there any flaw in my thinking? thanks ;)
Reply
andyfierman 6 years ago
Sorry about the delay in replying. If you look at: [https://www\.hirose\.com/product/en/download\_file/key\_name/DM3AT\-SF\-PEJM5/category/Drawing%20\(2D\)/doc\_file\_id/44099/?file\_category\_id=6&item\_id=06090031000&is\_series=](https://www.hirose.com/product/en/download_file/key_name/DM3AT-SF-PEJM5/category/Drawing%20%282D%29/doc_file_id/44099/?file_category_id=6&item_id=06090031000&is_series=) it shows the card detect switch as: ![image.png](//image.easyeda.com/pullimage/SyueMXtfCxVTKX0v1uiTh4wt3kDn726tAfBKCe2B.png) ![image.png](//image.easyeda.com/pullimage/JYhuUwDz8f7iyVAN1cxsYywVWJ3eKapypNGhhizj.png) ![image.png](//image.easyeda.com/pullimage/sL4sRnQALnvDZmydALl31ui1JDtjtgQ9tber2NaG.png) (The Hirose drawing is not great because there does not seem to be a corresponding ![image.png](//image.easyeda.com/pullimage/baNe8E0IQ0dMbWkXeEHaVglfGm33h4fCJbbRwl33.png)  in the diagram.) If the diagram is correct however, you can connect either of the A or B pins to ground (or a supply) and then use a pullup (or pull down) on the other and then sense the voltage at the junction of the switch and the pullup (pulldown) resistor. This gives a very clear distinction between the voltage levels indicating the two states of card inserted and no card. It is safer to do that than to connect the switch in series between a pullup (or pulldown) and a GPIO pin because you would need a pulldown (or pullup) on the GPIO pin to ensure it does not float when the switch is open (i.e. no card inserted). This then reduces the voltage differnce between the voltage levels indicating the two states of card inserted and no card because when the dard is inserted you have a pullup fighting a pulldown. Be careful to debounce the sense input in some way to avoid false card registrations. :)
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,建议访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus-@1x -mockplus-

Cookie Notice

Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice