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/sd help

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



Joined: 07 Aug 2007
Posts: 25
Location: Las Vegas, NV

View user's profile Send private message

mmc/sd help
PostPosted: Sat Aug 18, 2007 2:08 pm     Reply with quote

I have searched through the forum to read up on using mmc/sd and I am utterly confused. I don't have a clue where to start!

I am using a PIC18F4680 and want to write/save data from the PIC to an SD card, where I can later read it on the PC. I just don't know how to approach this. Could someone help me with some example code and "dumbed-down" info Laughing
Miniman



Joined: 30 Apr 2007
Posts: 44

View user's profile Send private message

PostPosted: Sat Aug 18, 2007 2:36 pm     Reply with quote

I would suggest my code on this link: http://www.ccsinfo.com/forum/viewtopic.php?t=31532

An example is in the code comments.
This code only works for MMC cards larger (or equal) to 64MB of size.

With the code you just open, read, write and close files almost like normal computer programming. very easy.
Just ask if there are somthing that you do not understand or if you need help

Best regards
miniman
axmanjr



Joined: 07 Aug 2007
Posts: 25
Location: Las Vegas, NV

View user's profile Send private message

PostPosted: Sat Aug 18, 2007 3:10 pm     Reply with quote

I'll give it a try tonight. I am using an SD card, so will this pose a problem?
Miniman



Joined: 30 Apr 2007
Posts: 44

View user's profile Send private message

PostPosted: Sat Aug 18, 2007 3:48 pm     Reply with quote

Yes, I do not think it will work for SD cards without some modification
axmanjr



Joined: 07 Aug 2007
Posts: 25
Location: Las Vegas, NV

View user's profile Send private message

PostPosted: Thu Aug 23, 2007 3:14 pm     Reply with quote

im hoping to mess with this tonight, since i got caught up with life last week...

I'm thinking of trying to approach this one step at a time. So I just want to be able to write to the SD card, it doesn't matter if I can understand it (using the FAT library and whatnot), I just want to see data being written to the SD card, so that when I put the car into a cardreader, I can open up a saved file and see the contents. An example code would really help me. Keep i nmind that Im a noob Laughing
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