MMC (MultiMediaCard) and SD (Secure Digital) memory cards provide embedded devices with a very inexpensive and convenient way of storing anything from very small to very large amounts of data. Using a MMC or SD card in your embedded device with the FAT filing system allows you to very easily read and write multiple files and exchange this data with other embedded devices and PC’s. Apart from the convenience of such a powerful and flexible filing system, being able to read and write PC compatible files can add huge benefits to your product. However writing a MMC/SD FAT filing system driver is a complex and daunting task. This driver removes that complexity for you and allows you to read and write files with ease using either card type and the various mini versions of the MMC or SD card.
This driver has been specifically designed from the ground up for embedded applications using 8, 16 or 32 bit processors or microcontrollers. Whilst the code has been kept as small as possible, it hasn’t been reduced to such a point that the driver becomes difficult to use. Instead great importance has been put on being able to use as many of the standard ANSI-C file system functions as possible and with as many of each of their features as possible.
The MMC / SD card FAT16 / FAT32 driver code has been designed and tested using ANSI compliant C compliers. Using the driver with other ANSI compliant C compliers and with other processors / microcontrollers should not present significant problems, but you should ensure that you have sufficient programming expertise to carry out any modifications that may be required to the source code. Embedded-code.com source code is written to be very easy to understand by programmers of all levels. The code is very highly commented with no lazy programming techniques. All function, variable and constant names are fully descriptive to help you modify and expand the code with ease.
The MMC / SD card FAT16 / FAT32 driver and associated files are provided under a licence agreement. Please see www.embedded-code.com/licence.php for full details.
The remainder of this manual provides a wealth of technical information about the driver as well as useful guides to get you going. We welcome any feedback on this manual and the driver.
As with any development project you should ensure that backup copies are made of any files stored on a MMC or SD card that is used with the driver until you have completed your development and thoroughly tested the operation of the driver in your application.


