Cov txheej txheem:

Xaiv SD Interface rau ESP32: 12 Cov Kauj Ruam (nrog Duab)
Xaiv SD Interface rau ESP32: 12 Cov Kauj Ruam (nrog Duab)

Video: Xaiv SD Interface rau ESP32: 12 Cov Kauj Ruam (nrog Duab)

Video: Xaiv SD Interface rau ESP32: 12 Cov Kauj Ruam (nrog Duab)
Video: Зависает Wi Fi роутер и майнинг останавливается? Решение! 2024, Kaum ib hlis
Anonim
Xaiv SD Interface rau ESP32
Xaiv SD Interface rau ESP32

Cov lus qhia no qhia qee yam txog kev xaiv SD interface rau koj li ESP32 txoj haujlwm.

Kauj ruam 1: SD Interface

Hauv thawj lub tsev qiv ntawv Arduino SD, SD cuam tshuam yog siv SD SPI npav hloov chaw.

SD yeej muaj ntau hom kev hloov pauv:

  • Hom tsheb npav SPI: ESP32 muaj ntau dua 1 lub npav SPI, nws tuaj yeem hloov kho thaum pib
  • 1-ntsis / 4-ntsis SD npav hom: ESP32 mob siab rau lwm lub tsev qiv ntawv hu ua SD_MMC los siv SD npav hom API
  • SD UHS-II hom: ESP32 tsis txhawb

Ref.: Yog

www.arduino.cc/en/reference/SD

en.wikipedia.org/wiki/SD_card

docs.espressif.com/projects/esp-idf/en/lat…

Kauj Ruam 2: ESP32 GPIO Pins Mapping

Nov yog lub neej ntawd ESP32 GPIO pins kapping:

SD card pin MicroSD tus pin Lub Npe 4-ntsis SD npav 1-ntsis SD npav SPI npav (HSPI / VSPInative pins)
1 2 D3 13 - SS (15 /5)
2 3 CMD 15 15 TSO (13/23)
3 - VSS GND GND GND
4 4 VDD 3.3v ua 3.3v ua 3.3v ua
5 5 CLK 14 14 SIB (14/18)
6 6 VSS GND GND GND
7 7 D0 2 2 TSO (12/19)
8 8 D1 4 - -
9 1 D2 12 - -

GPIO pins qhia ntawm 1-ntsis / 4-ntsis SD npav tsis tuaj yeem hloov pauv.

Hu yooj yim SD_MMC pib () rau thawj 4-ntsis SD npav npav:

SD_MMC.begin ();

1-ntsis SD npav hom tuaj yeem xaiv ntawm SD_MMC pib () txoj hauv kev, piv txwv li

SD_MMC.begin ("/cdcard", tseeb);

Lub npav SPI (HSPI lossis VSPI) tuaj yeem xaiv thaum tsim SPIClass piv txwv, piv txwv li

SPIClass spi = SPIClass (HSPI);

Raws li koj tuaj yeem pom 1-ntsis / 4-ntsis SD npav npav sib koom pin nrog HSPI tab sis daim npav SD daim npav qhia tsis zoo ib yam. Yog li yog tias kho vajtse txuas nrog raws li daim npav SD daim npav npav, nws tsis tuaj yeem siv ncaj qha HSPI tus pin. GPIO tus pin tuaj yeem thim rov qab ntawm SPIClass pib () txoj hauv kev, piv txwv li

SPIClass spi = SPIClass (HSPI);

spi.begin (14 / * SCK * /, 2 / * MISO * /, 15 / * MOSI * /, 13 / * SS * /);

Thiab tseem SD tsev qiv ntawv tuaj yeem hla tus lej SS, SPI npav thiab tsheb npav ntau zaus ntawm SD pib () txoj hauv kev, piv txwv li

SD.begin (13 / * SS * /, spi, 80000000);

Kauj Ruam 3: Yuav Tsum Tau Rub SD

Yog tias koj xav siv 4-ntsis SD npav npav, thov ua raws li ESP32 SD Pull-up Requirements, tshwj xeeb yog:

  • Rub tawm qhov teeb meem ntawm GPIO13
  • Teeb meem ntawm Bootstrap thiab SDIO ntawm DAT2

Ref.: Yog

docs.espressif.com/projects/esp-idf/en/lat…

Kauj Ruam 4: Ntau Yam Kho Vajtse

Ntau Yam Kho Vajtse
Ntau Yam Kho Vajtse

ESP32 muaj tons ntawm cov khoom siv dev thiab pawg thawj coj saib dev, qee qhov ntawm lawv muaj built-in MicroSD daim npav qhov.

Nov yog qee qhov piv txwv hauv kuv txhais tes:

  • TTGO T-Watch, nws txuas nrog GPIO pins 2, 13, 14 thiab 15 raws li 1-ntsis SD npav hom, yog li nws tuaj yeem siv 1-ntsis SD npav npav thiab hom tsheb npav SPI
  • M5Stack Series, nws txuas nrog GPIO pins 4, 18, 19 thiab 23 raws li VSPI haiv neeg pins, yog li nws tuaj yeem siv lub hauv paus SD lub tsev qiv ntawv teeb tsa [SD.begin (4)]
  • ODROID-GO, nws txuas nrog GPIO pins 18, 19, 22 thiab 23 raws li VSPI haiv neeg pins, yog li nws tuaj yeem siv lub hauv paus SD lub tsev qiv ntawv teeb tsa [SD.begin (22)]
  • ESP32-CAM, nws txuas nrog GPIO pins 2, 4, 12, 13, 14 thiab 15 raws li 4-ntsis SD npav hom, yog li nws tuaj yeem siv txhua 4-ntsis / 1-ntsis SD npav npav thiab hom tsheb npav SPI
  • TTGO T8 dev board, nws txuas nrog GPIO pins 2, 13, 14 thiab 15 raws li 1-ntsis SD npav hom, yog li nws tuaj yeem siv 1-ntsis SD npav npav thiab hom tsheb npav SPI

www.lilygo.cn/prod_view.aspx?Id=1123

docs.m5stack.com/

wiki.odroid.com/odroid_go/odroid_go

wiki.ai-thinker.com/esp32-cam

github.com/LilyGO/TTGO-T8-ESP32

Kauj Ruam 5: SD Card Slot Breakout Board

SD Card Slot Breakout Board
SD Card Slot Breakout Board
SD Card Slot Breakout Board
SD Card Slot Breakout Board

Dev board nrog built-in MicroSD daim npav qhov yuav tsis txuas nrog txhua tus pin thiab feem ntau tsis tuaj yeem siv 4-ntsis SD npav npav. Ib tus kheej daim npav SD daim npav tawg pawg thawj coj muab kev yooj yim dua.

Nyob rau tib lub sijhawm, ntau lub LCD tawg pawg thawj coj saib kuj tseem nthuav tawm qhov loj me SD daim npav qhov. Txawm li cas los xij, lawv feem ntau tsuas yog tawg tawm SPI hom koob. Nws tsis txaus siv raws li 4-ntsis SD npav npav, tab sis koj tseem tuaj yeem siv nws li 1-ntsis SD npav npav los ntawm qhov txuas txuas no:

LCD -> ESP32

SD_CS -> nil SD_MOSI -> 15 SD_MISO -> 2 SD_SCK -> 14

Kauj Ruam 6: Tshem GPIO 2 Thaum Txoj Haujlwm

Txiav GPIO 2 Thaum Txoj Haujlwm
Txiav GPIO 2 Thaum Txoj Haujlwm

4-ntsis SD npav npav sib txuas ua rau ESP32 ua tsis tau haujlwm hom kev ua haujlwm. Thov nco ntsoov tshem GPIO 2 los ntawm SD daim npav qhov tawm ntawm pawg thawj coj saib xyuas DAT0 ua ntej tso qhov program tshiab.

Kauj ruam 7: Benchmark

Qhov ntsuas
Qhov ntsuas
Qhov ntsuas
Qhov ntsuas

Kuv tau sau qhov program Arduino yooj yim rau qhov ntsuas:

github.com/moononournation/ESP32_SD_Benchm…

Nov yog kho vajtse rau qhov ntsuas:

ESP32

NodeMCU ESP32-32S V1.1 (WROOM-32)

SD Card Qhov

MicroSD daim npav qhov qhib lub rooj sib tham

Daim npav SD

Kuv muaj SanDisk 8 GB MicroSD thiab qub 128 MB MicroSD hauv tes.

Kauj Ruam 8: SD_MMC 4-ntsis Hom Benchmark

SanDisk 8 GB MicroSD

20: 27: 46.000 -> Xeem sau /test_1k.bin

20: 27: 59.399 -> Sau cov ntaub ntawv siv: 13404 ms, 312.914368 KB/s 20: 27: 59.399 -> Ntsuas sau /test_2k.bin 20: 28: 17.248 -> Sau cov ntaub ntawv siv: 17834 ms, 235.185822 KB/s 20: 28: 17.248 -> Xeem sau /test_4k.bin 20: 28: 21.122 -> Sau cov ntaub ntawv siv: 3873 ms, 1082.959961 KB /s 20: 28: 21.122 -> Test test /test_8k.bin 20: 28: 23.147 -> Sau cov ntaub ntawv siv: 2024 ms, 2072.284668 KB/s 20: 28: 23.147 -> Xeem sau /test_16k.bin 20: 28: 27.237 -> Sau cov ntaub ntawv siv: 4097 ms, 1023.750061 KB/s 20: 28: 27.237 -> Test sau /test_32k.bin 20: 28: 30.088 -> Sau cov ntawv siv: 2842 ms, 1475.828247 KB /s 20: 28: 30.088 -> Xeem sau /test_64k.bin 20: 28: 31.882 -> Sau cov ntaub ntawv siv: 1811 ms, 2316.015381 KB /s 20: 28: 31.882 -> Xeem nyeem /test_1k.bin 20: 28: 35.422 -> Nyeem cov ntaub ntawv siv: 3520 ms, 1191.563599 KB /s 20: 28: 35.422 -> Xeem nyeem /test_2k.bin 20: 28: 38.813 -> Nyeem cov ntaub ntawv siv: 3389 ms, 1237.622925 KB/s 20: 28: 38.813 -> Xeem nyeem /test_4k.bin 20: 28: 42.273 -> Nyeem cov ntaub ntawv siv: 3474 ms, 1207.341431 KB/s 20:28: 42.273 -> Xeem nyeem /test_8k.bin 20: 28: 45.752 - > Nyeem cov ntaub ntawv siv: 3487 ms, 1202.840210 KB/s 20: 28: 45.752 -> Xeem nyeem /test_16k.bin 20: 28: 48.988 -> Nyeem cov ntaub ntawv siv: 3213 ms, 1305.416748 KB/s 20: 28: 48.988 -> Xeem nyeem /test_32k.bin 20: 28: 52.077 -> Nyeem cov ntaub ntawv siv: 3093 ms, 1356.063354 KB /s 20: 28: 52.077 -> Xeem nyeem /test_64k.bin 20: 28: 55.141 -> Nyeem cov ntaub ntawv siv: 3080 ms, 1361.786987 KB/s

Qub 128 MB MicroSD

20: 30: 43.309 -> E (274) sdmmc_sd: sdmmc_check_scr: xa_scr rov qab 0x109

20: 30: 43.309 -> Card Mount Failed

Kauj Ruam 9: SD_MMC 1-ntsis Hom Benchmark

SanDisk 8 GB MicroSD

20: 31: 45.194 -> Xeem sau /test_1k.bin

20: 31: 59.506 -> Sau cov ntaub ntawv siv: 14325 ms, 292.796082 KB/s 20: 31: 59.506 -> Ntsuas sau /test_2k.bin 20: 32: 17.686 -> Sau cov ntaub ntawv siv: 18163 ms, 230.925735 KB/s 20: 32: 17.686 -> Xeem sau /test_4k.bin 20: 32: 21.291 -> Sau cov ntaub ntawv siv: 3611 ms, 1161.535278 KB /s 20: 32: 21.291 -> Test test /test_8k.bin 20: 32: 23.939 -> Sau cov ntaub ntawv siv: 2652 ms, 1581.562622 KB/s 20: 32: 23.939 -> Xeem sau /test_16k.bin 20: 32: 28.397 -> Sau cov ntaub ntawv siv: 4448 ms, 942.964050 KB/s 20: 32: 28.397 -> Test sau /test_32k.bin 20: 32: 31.835 -> Sau cov ntawv siv: 3429 ms, 1223.185791 KB /s 20: 32: 31.835 -> Xeem sau /test_64k.bin 20: 32: 33.882 -> Sau cov ntaub ntawv siv: 2058 ms, 2038.048584 KB /s 20: 32: 33.882 -> Xeem nyeem /test_1k.bin 20: 32: 38.031 -> Nyeem cov ntaub ntawv siv: 4146 ms, 1011.650757 KB /s 20: 32: 38.031 -> Xeem nyeem /test_2k.bin 20: 32: 42.062 -> Nyeem cov ntaub ntawv siv: 4019 ms, 1043.618774 KB/s 20: 32: 42.062 -> Xeem nyeem /test_4k.bin 20: 32: 46.170 -> Nyeem cov ntaub ntawv siv: 4106 ms, 1021.506104 KB/s 20:32: 46.170 -> Xeem nyeem /test_8k.bin 20: 32: 50.288 -> Nyeem cov ntaub ntawv siv: 4121 ms, 1017.787903 KB/s 20: 32: 50.288 -> Xeem nyeem /test_16k.bin 20: 32: 54.112 -> Nyeem cov ntaub ntawv siv: 3840 ms, 1092.266724 KB/s 20: 32: 54.112 -> Test nyeem /test_32k.bin 20: 32: 57.840 -> Nyeem cov ntaub ntawv siv: 3739 ms, 1121.771606 KB /s 20: 32: 57.840 -> Xeem nyeem /test_64k.bin 20: 33: 01.568 -> Nyeem cov ntaub ntawv siv: 3711 ms, 1130.235474 KB/s

Qub 128 MB MicroSD

20: 33: 27.366 -> Xeem sau /test_1k.bin

20: 33: 42.386 -> Sau cov ntaub ntawv siv: 15020 ms, 279.247925 KB/s 20: 33: 42.386 -> Ntsuas sau /test_2k.bin 20: 33: 57.927 -> Sau cov ntaub ntawv siv: 15515 ms, 270.338654 KB/s 20: 33: 57.927 -> Xeem sau /test_4k.bin 20: 34: 13.108 -> Sau cov ntaub ntawv siv: 15195 ms, 276.031860 KB /s 20: 34: 13.108 -> Test write /test_8k.bin 20: 34: 28.162 -> Sau cov ntaub ntawv siv: 15048 ms, 278.728333 KB/s 20: 34: 28.162 -> Xeem sau /test_16k.bin 20: 34: 43.287 -> Sau cov ntaub ntawv siv: 15142 ms, 276.998016 KB/s 20: 34: 43.287 -> Test sau /test_32k.bin 20: 34: 58.278 -> Sau cov ntaub ntawv siv: 14964 ms, 280.292969 KB /s 20: 34: 58.278 -> Test test /test_64k.bin 20: 35: 13.370 -> Sau cov ntaub ntawv siv: 15101 ms, 277.750092 KB /s 20: 35: 13.370 -> Xeem nyeem /test_1k.bin 20: 35: 17.563 -> Nyeem cov ntaub ntawv siv: 4197 ms, 999.357666 KB /s 20: 35: 17.563 -> Xeem nyeem /test_2k.bin 20: 35: 21.746 -> Nyeem cov ntaub ntawv siv: 4191 ms, 1000.788330 KB/s 20: 35: 21.746 -> Xeem nyeem /test_4k.bin 20: 35: 25.942 -> Nyeem cov ntaub ntawv siv: 4181 ms, 1003.182007 KB/s 20:35: 25.942 -> Xeem nyeem /test_8k.bin 20: 35: 30.101 -> Nyeem cov ntaub ntawv siv: 4176 ms, 1004.383118 KB/s 20: 35: 30.101 -> Xeem nyeem /test_16k.bin 20: 35: 34.279 -> Nyeem cov ntaub ntawv siv: 4174 ms, 1004.864380 KB/s 20: 35: 34.279 -> Test nyeem /test_32k.bin 20: 35: 38.462 -> Nyeem cov ntaub ntawv siv: 4173 ms, 1005.105225 KB /s 20: 35: 38.462 -> Xeem nyeem /test_64k.bin 20: 35: 42.612 -> Nyeem cov ntaub ntawv siv: 4173 ms, 1005.105225 KB/s

Kauj Ruam 10: SD SPI Hom ntawm HSPI Bus Benchmark

SanDisk 8 GB MicroSD

08: 41: 19.703 -> Xeem sau /test_1k.bin

08: 41: 53.458 -> Sau cov ntaub ntawv siv: 33743 ms, 124.301453 KB/s 08: 41: 53.458 -> Ntsuas sau /test_2k.bin 08: 42: 10,000 -> Sau cov ntaub ntawv siv: 16540 ms, 253.585495 KB/s 08: 42: 10.000 -> Xeem sau /test_4k.bin 08: 42: 17.269 -> Sau cov ntaub ntawv siv: 7298 ms, 574.719666 KB /s 08: 42: 17.308 -> Test test /test_8k.bin 08: 42: 22.640 -> Sau cov ntaub ntawv siv: 5345 ms, 784.715454 KB/s 08: 42: 22.640 -> Xeem sau /test_16k.bin 08: 42: 32.285 -> Sau cov ntawv siv: 9662 ms, 434.103088 KB/s 08: 42: 32.285 -> Test sau /test_32k.bin 08: 42: 36.659 -> Sau cov ntawv siv: 4355 ms, 963.100830 KB /s 08: 42: 36.659 -> Xeem sau /test_64k.bin 08: 42: 39.594 -> Sau cov ntaub ntawv siv: 2949 ms, 1422.280151 KB /s 08: 42: 39.594 -> Xeem nyeem /test_1k.bin 08: 42: 44.774 -> Nyeem cov ntaub ntawv siv: 5192 ms, 807.839783 KB /s 08: 42: 44.774 -> Xeem nyeem /test_2k.bin 08: 42: 49.969 -> Nyeem cov ntaub ntawv siv: 5189 ms, 808.306824 KB/s 08: 42: 49.969 -> Xeem nyeem /test_4k.bin 08: 42: 55.123 -> Nyeem cov ntaub ntawv siv: 5161 ms, 812.692139 KB/s 08:42: 55.158 -> Xeem nyeem /test_8k.bin 08: 43: 00.300 -> Nyeem cov ntaub ntawv siv: 5176 ms, 810.336914 KB/s 08: 43: 00.334 -> Xeem nyeem /test_16k.bin 08: 43: 05.277 -> Nyeem cov ntaub ntawv siv: 4948 ms, 847.676636 KB/s 08: 43: 05.277 -> Xeem nyeem /test_32k.bin 08: 43: 10.028 -> Nyeem cov ntaub ntawv siv: 4773 ms, 878.756348 KB /s 08: 43: 10.028 -> Xeem nyeem /test_64k.bin 08: 43: 14.760 -> Nyeem cov ntaub ntawv siv: 4731 ms, 886.557617 KWB/s

Qub 128 MB MicroSD

08: 43: 47.777 -> Xeem sau /test_1k.bin

08: 44: 04.148 -> Sau cov ntaub ntawv siv: 16390 ms, 255.906281 KB/s 08: 44: 04.183 -> Ntsuas sau /test_2k.bin 08: 44: 20.648 -> Sau cov ntaub ntawv siv: 16494 ms, 254.292709 KB/s 08: 44: 20.648 -> Xeem sau /test_4k.bin 08: 44: 36.674 -> Sau cov ntaub ntawv siv: 16001 ms, 262.127625 KB /s 08: 44: 36.674 -> Test write /test_8k.bin 08: 44: 52.849 -> Sau cov ntaub ntawv siv: 16175 ms, 259.307831 KB/s 08: 44: 52.849 -> Xeem sau /test_16k.bin 08: 45: 09.225 -> Sau cov ntaub ntawv siv: 16397 ms, 255.797043 KB/s 08: 45: 09.225 -> Test sau /test_32k.bin 08: 45: 25.363 -> Sau cov ntaub ntawv siv: 16143 ms, 259.821838 KB /s 08: 45: 25.397 -> Xeem sau /test_64k.bin 08: 45: 41.632 -> Sau cov ntaub ntawv siv: 16263 ms, 257.904694 KB /s 08: 45: 41.632 -> Xeem nyeem /test_1k.bin 08: 45: 46.488 -> Nyeem cov ntaub ntawv siv: 4856 ms, 863.736389 KB /s 08: 45: 46.488 -> Xeem nyeem /test_2k.bin 08: 45: 51.332 -> Nyeem cov ntaub ntawv siv: 4840 ms, 866.591736 KB/s 08: 45: 51.332 -> Xeem nyeem /test_4k.bin 08: 45: 56.163 -> Nyeem cov ntaub ntawv siv: 4834 ms, 867.667358 KB/s 08:45: 56.163 -> Xeem nyeem /test_8k.bin 08: 46: 00.998 -> R ead cov ntaub ntawv siv: 4827 ms, 868.925598 KB/s 08: 46: 00.998 -> Xeem nyeem /test_16k.bin 08: 46: 05.808 -> Nyeem cov ntaub ntawv siv: 4825 ms, 869.285828 KB/s 08: 46: 05.843 -> Test nyeem /test_32k.bin 08: 46: 10.637 -> Nyeem cov ntaub ntawv siv: 4824 ms, 869.466003 KB /s 08: 46: 10.637 -> Xeem nyeem /test_64k.bin 08: 46: 15.478 -> Nyeem cov ntaub ntawv siv: 4825 ms, 869.285828 KB/s

Kauj Ruam 11: SD SPI Hom ntawm VSPI Bus Benchmark

SanDisk 8 GB MicroSD

08: 54: 17.412 -> Xeem sau /test_1k.bin

08: 54: 48.398 -> Sau cov ntaub ntawv siv: 30994 ms, 135.326324 KB/s 08: 54: 48.398 -> Ntsuas sau /test_2k.bin 08: 55: 06.079 -> Sau cov ntaub ntawv siv: 17677 ms, 237.274658 KB/s 08: 55: 06.079 -> Xeem sau /test_4k.bin 08: 55: 13.357 -> Sau cov ntaub ntawv siv: 7274 ms, 576.615906 KB /s 08: 55: 13.357 -> Test write /test_8k.bin 08: 55: 18.691 -> Sau cov ntaub ntawv siv: 5323 ms, 787.958679 KB/s 08: 55: 18.691 -> Xeem sau /test_16k.bin 08: 55: 28.336 -> Sau cov ntaub ntawv siv: 9669 ms, 433.788818 KB/s 08: 55: 28.336 -> Test sau /test_32k.bin 08: 55: 32.646 -> Sau cov ntaub ntawv siv: 4309 ms, 973.382202 KB /s 08: 55: 32.646 -> Test test /test_64k.bin 08: 55: 35.551 -> Sau cov ntaub ntawv siv: 2915 ms, 1438.869263 KB /s 08: 55: 35.584 -> Xeem nyeem /test_1k.bin 08: 55: 40.745 -> Nyeem cov ntaub ntawv siv: 5183 ms, 809.242554 KB /s 08: 55: 40.745 -> Xeem nyeem /test_2k.bin 08: 55: 45.916 -> Nyeem cov ntaub ntawv siv: 5182 ms, 809.398682 KB/s 08: 55: 45.949 -> Xeem nyeem /test_4k.bin 08: 55: 51.091 -> Nyeem cov ntaub ntawv siv: 5162 ms, 812.534668 KB/s 08:55: 51.091 -> Xeem nyeem /test_8k.bin 08: 55: 56.257 -> Nyeem cov ntaub ntawv siv: 5177 ms, 810.180420 KB/s 08: 55: 56.293 -> Xeem nyeem /test_16k.bin 08: 56: 01.244 -> Nyeem cov ntaub ntawv siv: 4956 ms, 846.308289 KB/s 08: 56: 01.244 -> Xeem nyeem /test_32k.bin 08: 56: 06.006 -> Nyeem cov ntaub ntawv siv: 4764 ms, 880.416443 KB /s 08: 56: 06.006 -> Xeem nyeem /test_64k.bin 08: 56: 10.716 -> Nyeem cov ntaub ntawv siv: 4728 ms, 887.120117 KWB/s

Qub 128 MB MicroSD

08: 51: 01.939 -> Xeem sau /test_1k.bin

08: 51: 18.358 -> Sau cov ntaub ntawv siv: 16422 ms, 255.407623 KB/s 08: 51: 18.358 -> Ntsuas sau /test_2k.bin 08: 51: 34.529 -> Sau cov ntaub ntawv siv: 16173 ms, 259.339874 KB/s 08: 51: 34.529 -> Xeem sau /test_4k.bin 08: 51: 50.911 -> Sau cov ntaub ntawv siv: 16372 ms, 256.187653 KB /s 08: 51: 50.911 -> Xeem sau /test_8k.bin 08: 52: 07.056 -> Sau cov ntaub ntawv siv: 16137 ms, 259.918457 KB/s 08: 52: 07.056 -> Xeem sau /test_16k.bin 08: 52: 23.383 -> Sau cov ntaub ntawv siv: 16351 ms, 256.516663 KB/s 08: 52: 23.383 -> Test sau /test_32k.bin 08: 52: 39.533 -> Sau cov ntaub ntawv siv: 16128 ms, 260.063507 KB /s 08: 52: 39.533 -> Test test /test_64k.bin 08: 52: 55.764 -> Sau cov ntaub ntawv siv: 16250 ms, 258.111023 KB /s 08: 52: 55.764 -> Xeem nyeem /test_1k.bin 08: 53: 00.645 -> Nyeem cov ntaub ntawv siv: 4855 ms, 863.914307 KB /s 08: 53: 00.645 -> Xeem nyeem /test_2k.bin 08: 53: 05.459 -> Nyeem cov ntaub ntawv siv: 4839 ms, 866.770813 KB/s 08: 53: 05.459 -> Xeem nyeem /test_4k.bin 08: 53: 10.306 -> Nyeem cov ntaub ntawv siv: 4833 ms, 867.846863 KB/s 08:53: 10.306 -> Xeem nyeem /test_8k.bin 08: 53: 15.127 -> R ead cov ntaub ntawv siv: 4827 ms, 868.925598 KB/s 08: 53: 15.127 -> Xeem nyeem /test_16k.bin 08: 53: 19.963 -> Nyeem cov ntaub ntawv siv: 4826 ms, 869.105652 KB/s 08: 53: 19.963 -> Test nyeem /test_32k.bin 08: 53: 24.758 -> Nyeem cov ntaub ntawv siv: 4824 ms, 869.466003 KB /s 08: 53: 24.792 -> Xeem nyeem /test_64k.bin 08: 53: 29.592 -> Nyeem cov ntaub ntawv siv: 4824 ms, 869.466003 KB/s

Kauj Ruam 12: Hloov Mus

4-ntsis SD npav npav muaj kev ua tau zoo tshaj plaws, 1-ntsis SD npav hom yog nyob ib puag ncig 20% qeeb dua thiab hom SPI nyob ib puag ncig 50% qeeb dua. Ib qho laj thawj tseem ceeb yog SD_MMC txheej txheem txheej txheem tsis ua txhua yam kev xauv tab sis SPI ua. Thiab kuj yog 4-ntsis SD npav npav muaj ob kab cov ntaub ntawv yog li kev xav ob zaug nrawm dua. Tab sis kuv tus qub MicroSD tsis tuaj yeem txhawb nqa 4-ntsis SD npav npav.

Kuv yuav pom zoo 1-ntsis SD npav npav feem ntau, vim tias:

  • kev ua tau zoo
  • zoo dua SD daim npav sib xws
  • looser SD Rub tawm qhov xav tau
  • tsuas yog 3 GPIO pins xav tau
  • tsawg dua tus qauv teeb tsa
  • ntau cov khoom siv dev, pawg thawj coj saib dev thiab pawg thawj coj tawg tuaj yeem siv hom no

Pom zoo: