View previous topic :: View next topic |
Author |
Message |
aruna1
Joined: 14 Oct 2008 Posts: 103
|
mmc card help |
Posted: Thu Dec 02, 2010 12:10 pm |
|
|
Hi guys
I'm trying to write a file to a mmc card (using Proteus).
I haven't done this before. I found lot of codes and few examples but couldn't understand them.
So can someone please post a small code that will simply create a text file on root directory of mmc and with some content in it? So I will be able to follow it
Thank you. |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Thu Dec 02, 2010 11:45 pm |
|
|
This is not a simple task. Your best bet is to download Microchip's free library that handles using FAT on SD/MMC media.
It comes with a help .CHM file that explains all the libraries.
Next, get online and google "fat file system" and look at the various websites that explain it. (Wikipedia isn't a bad place to start.)
You'll also want to download SanDisk's SD/MMC card specification...
Have fun!
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Thu Dec 02, 2010 11:48 pm |
|
|
p.s. Proteus is a SIMULATOR... written in software... software has bugs.
Do not be surprised when your code in proteus doesn't work quite right.
In fact, you can download and write you code in MPLAB which has a free simulator written by the company that makes the processors(!). If anyone has the most at stake to make their simulator most closely emulate their bread'n'butter products, it's Microchip.
Ultimately, HARDware needs to be built and TESTed before anything can be considered working properly.
Cheers,
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
|