找回密码
 注册
搜索
查看: 8894|回复: 21

[资料] 关于用SD卡DATA3检测卡插入的问题

[复制链接]
发表于 2008-6-3 23:34:27 | 显示全部楼层 |阅读模式
1:实现的原理是什么?
2:硬件要在DATA3上加上下拉电阻吗?
3:软件怎么来实现检测呢?
发表于 2009-3-26 17:46:52 | 显示全部楼层

T卡电路设计

【文件名】:09326@52RD_T卡电路设计.pdf
【格 式】:pdf
【大 小】:209K
【简 介】:
【目 录】:
点评回复 1 0

使用道具 举报

发表于 2008-6-5 15:41:57 | 显示全部楼层
顶一下[em13]
点评回复

使用道具 举报

发表于 2008-6-10 13:05:23 | 显示全部楼层
[em13]
点评回复

使用道具 举报

发表于 2008-12-12 16:21:13 | 显示全部楼层
SD卡的插入与拔出都有检测,是中断检测,
电路上DATA1好像是接一个10K电阻和双向晶闸管接地的
软件上通过消息传递来完成
点评回复

使用道具 举报

发表于 2008-12-14 17:55:35 | 显示全部楼层
楼主,DATA3并不是用于检测卡插入的引脚,有专门的CD脚(卡座带的)。DATA3是SPI模式下的CS和SDIO的数据线[em03]
点评回复

使用道具 举报

发表于 2008-12-14 22:01:35 | 显示全部楼层
有个DETEC脚,在卡座上,软件是通过它来检测的
点评回复

使用道具 举报

发表于 2008-12-15 14:57:50 | 显示全部楼层
以前有接触过,
DATA3好像在SD卡端有拉高。
所以需要在控制器端通过电阻下拉到地
而其他DATA线通常是上拉的,需要注意区分
点评回复

使用道具 举报

发表于 2008-12-21 16:53:50 | 显示全部楼层
[em13]
点评回复

使用道具 举报

发表于 2008-12-22 12:46:42 | 显示全部楼层
是不是软件实现检测阿?
点评回复

使用道具 举报

发表于 2009-2-21 22:09:37 | 显示全部楼层
以下是引用kully在2008-12-14 17:55:35的发言:
楼主,DATA3并不是用于检测卡插入的引脚,有专门的CD脚(卡座带的)。DATA3是SPI模式下的CS和SDIO的数据线[em03]

正解。
点评回复

使用道具 举报

发表于 2009-3-28 10:10:00 | 显示全部楼层
[em03]感谢楼上那位好心人
点评回复

使用道具 举报

发表于 2009-3-30 15:45:03 | 显示全部楼层
谢谢,学习到东西了[em01]
点评回复

使用道具 举报

发表于 2009-3-30 16:26:05 | 显示全部楼层
收藏下。。
点评回复

使用道具 举报

发表于 2009-4-3 09:17:26 | 显示全部楼层
1.At power up this line(DAT3) has a 50KOhm pull up enabled in the card. This resistor serves two functions Card detection and
Mode Selection. For Mode Selection, the host can drive the line high or let it be pulled high to select SD mode. If the host
wants to select SPI mode it should drive the line low. For Card detection, the host detects that the line is pulled high.

above is from SD Version 2.00 spec
[em01]

2.When DAT3 is used for card detection, pulled-up resistor for DAT3 should be unconnected,another pulled-down resistor
should be connected to the ground.

3.
  step1:set a timer;
  step2:as the timer expires,open the power.
  step3:if the card is in ,then the I/O will detect a High edge trigger.

4.there is three ways for detect,
      1).one pin that are part of the socket as a external interupt,but some socket does not have this pin
      2).set the timer ,polling ,send the one CMD ,then check the response,if getting the response,the card is in.
      3). DAT3 as detect pin
[此贴子已经被作者于2009-4-3 14:29:47编辑过]
点评回复

使用道具 举报

发表于 2009-4-4 09:56:50 | 显示全部楼层
谢谢,学习到东西了
点评回复

使用道具 举报

发表于 2014-3-19 11:10:15 | 显示全部楼层
zhangyicpptn 发表于 2009-3-26 17:46
【文件名】:09326@52RD_T卡电路设计.pdf
【格 式】:pdf
【大 小】:209K

看看啊
点评回复

使用道具 举报

发表于 2014-3-21 09:07:13 来自手机 | 显示全部楼层
SD插入检测其实有几种方法。lz说的是其中一种,原因是sd卡的DATA3与电源之间有一个上拉电阻,所以你可以对地接一个大电阻。来自: Android客户端
点评回复

使用道具 举报

发表于 2016-5-13 14:35:08 | 显示全部楼层
看看,谢谢分享
点评回复

使用道具 举报

发表于 2017-3-4 17:06:52 | 显示全部楼层
[em01]
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-4-19 01:29 , Processed in 0.088800 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表