MMC PICBasicPro Code MMSDIO.BAS
(C) COMPSys, 2001
Author: Ranjit Diol
Email:  rsdiol@compsys1.com
Date:   Nov 11th, 2001

    ********************************************************************
    *   DISCLAIMER: This file is being released as non-commericial     *
    *   software. It is being provided "AS IS", neither the author,    *
    *   nor COMPSys shall be held liable for any damages caused        *
    *   by its use either directly or indirectly in any form or manner.*
    ********************************************************************


I've had numerous requests for some PIC basic code to interface with an MMC/SD. This code will
demonstrate reading and writing to an MMC/SD using a PIC16F876 (see the MMC/SD project section at http://www.compsys1.com/workbench/ for more details )

The MMSDDEMO.BAS file here includes just the basic routines necessary to read and write an unformatted MMC/SD using a PIC.

I am currently finishing up the code which allows one to use a Windows formatted MMC/SD. The code works with a single file (FAT12 or FAT16 depending on the size of the MMC/SD) and is able to read and write to that file. It is being designed for projects which require long term data logging, being able to store huge amounts of data. Once the data is collected it can then be easily read on a Windows98 PC and a PC MMC/SD card reader/writer.

The easiest way to interface the MMC/SD is to use a 3.3v MCU (I run the PIC16F876 at 3.3 volts), otherwise you will need to perform voltage translation between the MMC/SD<->MCU data lines (5v > 3.3 v and 3.3v > 5v).

This code is some preliminary work that I did and is being released for NON-COMMERCIAL USE ONLY and is provided AS-IS.

A good site for MMC documentation is http://www.sandisk.com and http://www.sd.org for SD cards.


Cheers,
Ranjit

