View previous topic :: View next topic |
Author |
Message |
doryme
Joined: 16 Oct 2010 Posts: 20
|
how to write on SD Card? |
Posted: Thu Apr 21, 2011 1:31 pm |
|
|
Hello
I want to make a program make TXT file on mmc card, and write on it. Any hints how to begin. Initialization?? Functions?? I made search but I didn't find useful results. |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19366
|
|
Posted: Fri Apr 22, 2011 1:59 am |
|
|
fat.c
Big question is what hardware you have. Remember the card will be using 3.3v. If you have a 5v PIC, you _must_ have proper level translators. 90% of the problems you get here with people not being able to get the cards working, are with the voltage translation.
The second set of problems are with address handling. Fixes have been posted here for these.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
temtronic
Joined: 01 Jul 2010 Posts: 9173 Location: Greensville,Ontario
|
|
Posted: Fri Apr 22, 2011 5:46 am |
|
|
Like T says...use a 3.3 volt PIC ! The couple of bucks spent now will save you days if not weeks of pain.NO need for the proper level translation chips,easier to wire up,simpler power supply,etc.
Just cut code and it works.If not ,then it's 100% CODE issue NOT hardware.
It's cheaper in the long run ,a better product and more reliable. |
|
![](templates/subSilver/images/spacer.gif) |
doryme
Joined: 16 Oct 2010 Posts: 20
|
|
Posted: Fri Apr 22, 2011 10:08 am |
|
|
Hello
I use pic18f452 with 8MHz clock. about 3.3v, I use resistors for this purpose.
May you give me examples for 3.3v PIC?!
and still want to know, it is possible to make TXT file on mmc card?
thanks |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Apr 22, 2011 12:55 pm |
|
|
I have a question. Why does the title of your thread refer to an "SD card"
but inside the thread, you want information about an "MMC card". They
are not the same thing. Which one are you really using ? |
|
![](templates/subSilver/images/spacer.gif) |
doryme
Joined: 16 Oct 2010 Posts: 20
|
|
Posted: Fri Apr 22, 2011 4:19 pm |
|
|
I am using mmc card
but i think mmc card is a type of SD Cards .. seems that i was wrong ![Embarassed](images/smiles/icon_redface.gif) |
|
![](templates/subSilver/images/spacer.gif) |
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
RE: |
Posted: Sun Apr 24, 2011 1:22 am |
|
|
MMC card is different from SD card. The initialisation procedures for these are different.
The sdcard and mmc drivers provided in the PICC folder works well.
You could start by reading and writing data to the card first, this would also check your hardware, then move on to the FAT handler later.
What level translator are you using ??
Quote: | I use pic18f452 with 8MHz clock. about 3.3v, I use resistors for this purpose. |
Explain what you mean by this ??
the 5V part and 3.3V parts use the same code, there is no difference between these parts, except the supply voltages. |
|
![](templates/subSilver/images/spacer.gif) |
bkamen
Joined: 07 Jan 2004 Posts: 1611 Location: Central Illinois, USA
|
|
Posted: Sun Apr 24, 2011 2:21 pm |
|
|
I used a sharpee marker.
To erase, I use rubbing alcohol.
(running away) _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
![](templates/subSilver/images/spacer.gif) |
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
RE: |
Posted: Sun Apr 24, 2011 11:59 pm |
|
|
Quote: | I used a sharpee marker.
To erase, I use rubbing alcohol. |
Thats funny...
Quote: | You could start by reading and writing data to the card first |
I guess that's misleading... |
|
![](templates/subSilver/images/spacer.gif) |
|