View previous topic :: View next topic |
Author |
Message |
axmanjr
Joined: 07 Aug 2007 Posts: 25 Location: Las Vegas, NV
|
mmc/sd help |
Posted: Sat Aug 18, 2007 2:08 pm |
|
|
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 |
|
|
Miniman
Joined: 30 Apr 2007 Posts: 44
|
|
Posted: Sat Aug 18, 2007 2:36 pm |
|
|
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
|
|
Posted: Sat Aug 18, 2007 3:10 pm |
|
|
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
|
|
Posted: Sat Aug 18, 2007 3:48 pm |
|
|
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
|
|
Posted: Thu Aug 23, 2007 3:14 pm |
|
|
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 |
|
|
|