Clarification on SD_CARD Pins

User avatar
rudi ;-)
Posts: 1727
Joined: Fri Nov 13, 2015 3:25 pm

Clarification on SD_CARD Pins

Postby rudi ;-) » Tue May 09, 2017 9:37 am

hi

i have seen some circuits and all have the same "not ideal thinking" about SD Card.
the most creator think this for SD CARD

SD_CLK ( IO6 )
SD_DAT0 ( IO7 )
SD_DAT1 ( IO8 )
SD_DAT2 ( IO9)
SD_DAT3 ( IO10 )
SD_CMD ( IO11 )
SD_Flash_Pins.png
SD_Flash_Pins.png (46.55 KiB) Viewed 8972 times
be sure your circuit is well mean - this are pins for the SPI Flash
and just in time there is no sharing code available with this as SD Card and SPI Flash

the SD Card Demo example is on this pins

SD_HOST_CLK ( IO14 )
SD_HOST_D0 ( IO2 ) ( switched for Firmware flash )
SD_HOST_D1 ( IO4 )
SD_HOST_D2 ( IO12 )
SD_HOST_D3 ( IO13 )
SD_HOST_CMD ( IO15 )
SD_Example_Code.png
SD_Example_Code.png (66.33 KiB) Viewed 8972 times



hope this helps


best wishes
rudi ;-)

@ivan
do you plan SD CARD SPI Version ?
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1727
Joined: Fri Nov 13, 2015 3:25 pm

Re: Clarification on SD_CARD Pins

Postby rudi ;-) » Mon May 22, 2017 6:59 am

Wire and Connection: 1-Bit Mode
You need Hardware Pullups!
Software Pullups does not work!
SD_1-BIT.png
SD_1-BIT.png (17.15 KiB) Viewed 8860 times
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Clarification on SD_CARD Pins

Postby ESP_igrr » Mon May 22, 2017 7:33 am

do you plan SD CARD SPI Version ?
Yes, the SD SPI driver is almost ready! Hope to release it soon.

User avatar
rudi ;-)
Posts: 1727
Joined: Fri Nov 13, 2015 3:25 pm

Re: Clarification on SD_CARD Pins

Postby rudi ;-) » Mon May 22, 2017 8:15 am

ESP_igrr wrote:
do you plan SD CARD SPI Version ?
Yes, the SD SPI driver is almost ready! Hope to release it soon.
txs.

for completion now:

SD Mode
like the Demo in ESP-IDF
you can use 4Bit Mode (Dat0, Dat1, Dat2, Dat3) or 1Bit Mode (Dat0 )
01_SD_SPI_SDIO-MMC.png
01_SD_SPI_SDIO-MMC.png (33.62 KiB) Viewed 8849 times

SPI Mode ( driver comes like Ivan sayed )
you can drive by usually SPI Master then with MISO, MOSI, CLK, CS
02_SPI_SDIO-MMC.png
02_SPI_SDIO-MMC.png (22.31 KiB) Viewed 8849 times
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: Bing [Bot] and 89 guests