Secure Digital SD Card Source Code Driver Project
Section 01. Driver Overview

b) Features

Designed for both FAT16 and FAT32 formatted SD, SDHC (high capacity), MMC and MMCplus (high capacity) cards with a 4 pin serial interface to a microcontroller or processor.

Optimised for embedded designs. Only a single 512 data buffer is required for all operations. (It is not possible to write to MMC or SD cards without a 512 byte buffer as sectors have to be read to local memory, modified and written back as a whole).

Intelligent use of the local ram sector buffer. Read and writes of sector data only occur when necessary, avoiding unnecessary and slow repeated read or write operations to the MMC or SD card.

Optimised file delete function for fast deleting of large files. Instead of altering each FAT table entry one at a time, a complete sector of FAT table entries are altered in one operation before writing back to the card, resulting in a large speed improvement.

Provides the following standard ANSI-C functions:

fopen, fseek, ftell, fgetpos, fsetpos, ffs_rewind, fputc, putc, fgetc, getc, fputs, fgets, fwrite, fread, fflush, fclose, remove, rename, clearer, feof and ferror

Standard DOS ‘*’ and ‘?’ wildcard characters may be used in file operations.

Multiple files may be opened at the same time.

Optional real time clock support for applications that include time keeping. File creation, last modified and last accessed time and date values are automatically stored.