Description
Graph
basic-sd-spi-project
Purpose
The Basic-sd-spi-project will help you to get familiar with
sdmmc_spi interface on AT91SAM microcontrollers. It can also help you to get familiar with the SD operation flow which can be used for fast implementation of your own sd
drivers and other applications related.
You can find following information depends on your needs:
- Usage of auto detection of sdcard insert and sdcard write-protection detection
- sdspi interface initialize sequence and interrupt installation
- Sdcard driver implementation based on spi-interface (sdmmc_spi)
- Sdcard physical layer (spi-interface) initialize sequence implementation
- Sample usage of sdcard write and read
See
- sdmmc_spi : sdcard physical layer driver with spi-interface
- sdspi : spi-bus driver
Requirements
This package can be used with all Atmel evaluation kits that have SPI and EBI interface, the package runs at SRAM or SDRAM, so SDRAM
device is needed if you want to run this package in SDRAM Please note that the AT91SAM7L-EK, AT91SAM7S-EK and AT91SAM7SE-EK don't have SDCARD inside board.
Description
Open HyperTerminal before running this program, use SAM-BA to download this program to SRAM or SDRAM, make the program run, the HyperTerminal will give out the test results.
Usage
- Build the program and download it inside the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User Guide, depending on your chosen solution.
- On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
- 115200 bauds
- 8 bits of data
- No parity
- 1 stop bit
- No flow control
- Start the application
- In HyperTerminal, it will show something like
-I- Testing block [ 4216 - 4217] ...
0x00000000: 02000000 02040004 0A000800 0A040804
0x00000010: 02100010 02140014 0A100810 0A140814
0x00000020: 22002000 22042004 2A002800 2A042804
0x00000030: 22102010 22142014 2A102810 2A142814
0x00000040: 02400040 02440044 0A400840 0A440844
|
Source
The documentation for this Directory was generated from the following files:
main.c