13. Sdio_sdcard_cpu
13.1. Function description:
The demo is that SDCard writes data to SDCard and then reads data from it via cpu 1/4-line mode.
13.2. Test result:
If the data of SDCard received is equal to SDCard transmitted, print the corresponding correct string, if not print the fail one.
13.3. IO connection:
PAD |
PAD |
|---|---|
pad_sdion_sdclk |
sdcard_clk |
pad_sdion_sdcmd |
sdcard_cmd |
pad_sdion_sddat0 |
sdcard_dat0 |
pad_sdion_sddat1 |
sdcard_dat1 |
pad_sdion_sddat2 |
sdcard_dat2 |
pad_sdion_sddat3 |
sdcard_dat3 |
Note
The ‘n’ in “sdion” indicate the peripheral number.
1/4 line and cpu/dma mode is configurable.