MMC PICBasicPro Code MMC_DEMO.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. This code will demonstrate reading and writing to an MMC using a PIC16F876 (see the MMC project section at http://www.compsys1.com/workbench/ for more details ) The MMC_DEMO.BAS file here includes just the basic routines necessary to read and write an unformatted MMC using a PIC. I am currently finishing up the code which allows one to use a Windows formatted MMC. The code works with a single file (FAT12 or FAT16 depending on the size of the MMC) 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 Windows PC and a PC MMC card reader/writer. The easiest way to interface the MMC 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<->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 Cheers, Ranjit