Proyectos con Memorias mmc sd microsd

Memorias mmc sd microsd


Wiki space sd ojpg

 http://antikhyteradomotica.wikispaces.com/memorias+mmc+sd

 Manual sd ( Informacion tecnica )MANEJO DE UNA MEMORIA SD/MMC CON UN PIC16F87x.

 








The SD card can be talked to with three different transfer modes: 1-bit SD mode, 4-bit SD mode and SPI mode. According to Wikipedia, all cards must support all three modes except for micro SD where the SPI mode is optional. I will nonetheless try to read my micro SD with the SPI mode.
Your microSD pin descriptions are wrong.
microSD Memory Card – Pins Definition
SD Mode
PIN NO NAME TYPE DESCRIPTION
1 DAT2 I/O/PP DATA Line [Bit 2]
2 CD / DAT3 I/O/PP Card Detect / DATA Line [Bit 3]
3 CMD PP Command / Response
4 VDD S Supply voltage
5 CLK I Clock
6 VSS S Supply voltage ground
7 DAT0 I/O/PP DATA Line [Bit 0]
8 DAT1 I/O/PP DATA Line [Bit 1]
SPI Mode
PIN NO NAME TYPE DESCRIPTION
1 RSV — Reserved (*)
2 CS I CHIP Select(Negative true)
3 DI I DATA IN
4 VDD S Supply voltage
5 SCLK I Clock
6 VSS S Supply voltage ground
7 DO O/PP DATA OUT
8 RSV — Reserved (*)

The SD card pinout is correct, and the uSD to SD converter will convert correctly, but from your graphics it would appear that uS D(1) is the same as SD(1) which it is not. The correct translator values is the following: (SD Bus)
(I destroyed a translator/converter to verify)
SD, uSD, Description
9, 1, DAT2
1, 2, DAT3/CD
2, 3, CMD
4, 4, Vdd
5, 5, CLK
3&6, 6, Vss
7, 7, DAT0
8, 8, DAT1

Pinouts

Note: Diagrams somewhat to scale, not exact. Illustrative purposes only. Pin numbering is arbitrary. May not be consistent across all datasheets.
Key: S: Power Supply; I: Input; O: Output; PP: Push-Pull
Pin number and size diagram for Secure Digital (SD) memory card format
SD Card
Pin No.SD ModeSPI Mode
NameTypeDescriptionNameTypeDescription
1CD/DATI/O/PPCard Detect/Data Line [Bit 3]CSIChip Select (active low)
2CMDPPCommand/ResponseDI/MOSIIData In/Master Out Slave In
3Gnd1/Vss1SGroundGND/VSSSGround
4VddSPower (2.7V to 3.6V DC)VDDSPower (2.7V to 3.6V DC)
5CLKIClockSCLKIClock
6Gnd2/Vss2SGroundGnd2/Vss2SGround
7DAT0I/O/PPData Line [Bit 0]DO/MISOO/PPData Out/Master In Slave Out
8DAT1I/O/PPData Line [Bit 1]RSVReserved
9DAT2I/O/PPData Line [Bit 2]RSVReserved
Pin number and size diagram for 'micro' Secure Digital (microSD) memory card format
microSD Card
Pin No.SD ModeSPI Mode
NameTypeDescriptionNameTypeDescription
1DAT2I/O/PPData Line [Bit 2]RSVReserved
2CD/DAT3I/O/PPCard Detect / Data Line [Bit 3]CSIChip Select
3CMDPPCommand/ResponseDI/MOSIIData In/Master Out Slave In
4VddSPowerVddSPower
5CLKIClockSCLKIClock
6Gnd/VssSGroundGnd/VssSGround
7DAT0I/O/PPData Line [Bit 0]DO/MISOO/PPData Out/Master In Slave Out
8DAT1I/O/PPData Line [Bit 1]RSVReserved

The information and layout of the following table was lifted from the Wikipedia page on the MultiMediaCard card standard:
TypeMMCSDmicroSD
SPI ModeOptionalYesOptional
1 bit modeYesYesYes
4 bit modeNoOptionalOptional
Xfer clock0–20 MHz0–25 MHz - 0–50 MHz0–25 MHz?
Max Transfer20 Mbit/s100 Mbit/s - 200 Mbit/s100 Mbit/s
Max SPI Transfer20 Mbit/s25 Mbit/s25 Mbit/s
DRM Aval.NoYesYes



The SD card

Let's have a look at the requirements to access an SD card via the simplest available protocol: SPI (Serial Peripheral Interface).
SD PinSD function(SPI Mode)DirectionThe SD Card pin assignment
1Chip Select (CS) *INImage:WHR_G54S_SD_MOD-SD_Card.png
2Data In (DI)IN
3Ground-
4Vcc (3.3v)-
5Clock (CLK)IN
6Ground-
7Data Out (DO)OUT
8Reserved-
9Reserved-
(*) A low level on "Chip Select" selects the chip

From this we can see what is needed:
  • Ground
  • Power, 3.3 volt
  • 3 outputs (that are going to control the 3 inputs of the SD card)
  • 1 input (that is going to read the data from the SD card output)

In fact we do not actually need to actively select the SD card via the Chip Select line. We can just always select it by grounding the signal. So in that case we only need 2 outputs. Now let's get to it and open our router to find what we need.

Image:WHR_G54S_SD_MOD-SD_Card.png

Image:SD pins.png
IMAGE:WHR_G54S_SD_MOD-5.25_Inch_floppy_connector.jpg
 Use a 5.25 inch floppy disk cable connector. The pitch of this cable is the same as what is used with SD cards. This is quite a bulky solution, but it works ok. I'm not sure if you will be able to close your router when choosing this solution.


Name:  MicroSD.JPG
Views: 302
Size:  47.1 KB

Name:  MicroSD.JPG
Views: 274
Size:  21.5 KB


Can I use SDFS with MicroSD cards that have 8 pads? From searching in google, I found that these MicroSD cards can operate in two modes, SPI and SD modes. Please take a look at the attached pics.

Name:  SPI-Mode.JPG
Views: 288
Size:  22.3 KBName:  SD-Mode.JPG
Views: 271
Size:  21.7 KB


spi-to-usd






Secure Digital is what SD means, it is a flash based removable memory card. The card format may also be used other device functions in addition to data storage.


The SD card size dimensions are: 24mm wide x 32mm long. The standard width is 2.1mm, while the ThinSD Memory Card has a width 1.4mm. 
SD Card Pinout
Pin Pin NameSD Signal Function SD ModeSPI Signal Function SPI Mode
1DAT3/CSData Line 3Chip Select/Slave Select [SS]
2CMD/DICommand LineMaster Out/Slave In [MOSI]
3VSS1GroundGround
4VddVoltage Supply [2.7v or 3.6v]Voltage Supply [2.7v or 3.6v]
5ClockClockClock [SCK]
6Vss2GroundGround
7DAT0/D0Data Line 0Master In Slave Out [MISO]
8DAT1/IRQData Line 1Unused or IRQ
9DAT2/NCData Line 2Unused

MiniSD Card is a type of Removable NAND flash memory card format
miniSD cards have memory capacities ranging from 256MB to 4GB. However, some of the capacity may be used for formatting and other functions, and not available for data storage. A miniSD card will fit in an SD card slot with a miniSD Adapter, miniSD Adaptes makes miniSD memory cards compatible with all SD-based devices. 
There are 3 speed grades: Class 2, 2MB/s, Class 4, 4MB/s and class 6 card, 6MB/s.



The MiniSD Card measures 20mm x 21.5mm and 1.4mm thick.

miniSD Pinout Configuration
Pin #Pin NameSD Signal Function SD ModeSPI Signal Function SPI Mode
1CD/DAT3Chip Detect/Data Line 3Chip Select
2CMDCommand LineData In [DI]
3VSS1GroundGround
4VddVoltage Supply [2.7v or 3.6v]Voltage Supply [2.7v or 3.6v]
5ClockClockClock [SCK]
6Vss2GroundGround
7DAT0Data Line 0Data Out [DO]
8DAT1Data Line 1Unused
9DAT2Data Line 2Unused
10NCFor future useFor future use
11NCFor future useFor future use

microSD Card is also a type of Removable NAND-type small flash memory card format, and has a dimensions of 11mm x 15mm and 1mm thick. MicroSD is short hand for Micro-Secure Digital [Transflash].



microSD Pinout, SD Mode
Pin #Pin NameSignal Function
1DAT2Data Bit 2
2CD/DAT3Card Detect / Data Bit 3
3CMDCommand Line
4VddSupply Voltage 2.7v / 3.6v
5CLKClock
6VssGround
7DAT0Data Bit 0
8DAT1Data Bit 1


microSD Pinout, SPI Mode
Pin #Pin NameSignal Function
1NCNo Connect
2/CSChip Select
3DIMaster Out/Slave In (MOSI)
4VddSupply Voltage 2.7v / 3.6v
5CLKClock
6VssGround
7DOMaster In/Slave Out (MISO)
8RSVReserved

硬件连接电路




LECTO-GRABADOR de tarjetas MMC , SD, MicroSD con pic 16F877A



ç




Comenzando con memorias SD/MMC. Librería a nivel hardware.




Referencia

Reading an SD card with an ATMEGA168


Secure Digital (SD) Card Spec and Info







Deremate



SHARE

Oscar perez

Arquitecto especialista en gestion de proyectos si necesitas desarrollar algun proyecto en Bogota contactame en el 3006825874 o visita mi pagina en www.arquitectobogota.tk

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comentarios:

Publicar un comentario