Page 1 of 1

Clarification on SD_CARD Pins

Posted: Tue May 09, 2017 9:37 am
by rudi ;-)
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 8974 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 8974 times



hope this helps


best wishes
rudi ;-)

@ivan
do you plan SD CARD SPI Version ?

Re: Clarification on SD_CARD Pins

Posted: Mon May 22, 2017 6:59 am
by rudi ;-)
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 8862 times

Re: Clarification on SD_CARD Pins

Posted: Mon May 22, 2017 7:33 am
by ESP_igrr
do you plan SD CARD SPI Version ?
Yes, the SD SPI driver is almost ready! Hope to release it soon.

Re: Clarification on SD_CARD Pins

Posted: Mon May 22, 2017 8:15 am
by rudi ;-)
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 8851 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 8851 times