SAMV71 Xplained Ultra Software Package 1.3

Basic SDIO Card Example

Purpose

The Basic SDIO Card Example will help you to get familiar with HSMCI interface on SAM Microcontrollers. It can also help you to get familiar with the SDIO operation flow which can be used for fast implementation of your own SD drivers and other applications related.

Requirements

This package can be used with SAM V71 Xplained Ultra board.

Description

The demonstration program detects SDIO device connected and perform R/W operation on it.

Open HyperTerminal before running this program, use SAM-BA to download this program to SRAM , make the program run, the HyperTerminal will give out the test results.

Usage

  1. Build the program and download it inside the SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf
  2. 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
  3. Start the application
  4. In HyperTerminal, it will show something like
          -- Basic HSMCI SDIO Example xxx --
          -- SAMxxxxx-xx
          -- Compiled: xxx xx xxxx xx:xx:xx --
          -I- Please connect a SD card ...
          -I- SD card connection detected
          -I- Cannot check if SD card is write-protected
          -I- SD/MMC card initialization successful
          R/W Direct test:
          ...
    
  5. After card inserted following commands can be used:
    • 'f' Change current function number
    • 'r' Dump SDIO register value
    • 'w' Write to SDIO register

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines