CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

mmc card help

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
aruna1



Joined: 14 Oct 2008
Posts: 103

View user's profile Send private message

mmc card help
PostPosted: Thu Dec 02, 2010 12:10 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 02, 2010 11:45 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 02, 2010 11:48 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group