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

how to write on SD Card?

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



Joined: 16 Oct 2010
Posts: 20

View user's profile Send private message

how to write on SD Card?
PostPosted: Thu Apr 21, 2011 1:31 pm     Reply with quote

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.
Ttelmah



Joined: 11 Mar 2010
Posts: 19510

View user's profile Send private message

PostPosted: Fri Apr 22, 2011 1:59 am     Reply with quote

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
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Apr 22, 2011 5:46 am     Reply with quote

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.
doryme



Joined: 16 Oct 2010
Posts: 20

View user's profile Send private message

PostPosted: Fri Apr 22, 2011 10:08 am     Reply with quote

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
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Apr 22, 2011 12:55 pm     Reply with quote

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 ?
doryme



Joined: 16 Oct 2010
Posts: 20

View user's profile Send private message

PostPosted: Fri Apr 22, 2011 4:19 pm     Reply with quote

I am using mmc card
but i think mmc card is a type of SD Cards .. seems that i was wrong Embarassed
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

RE:
PostPosted: Sun Apr 24, 2011 1:22 am     Reply with quote

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.
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Sun Apr 24, 2011 2:21 pm     Reply with quote

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
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

RE:
PostPosted: Sun Apr 24, 2011 11:59 pm     Reply with quote

Quote:
I used a sharpee marker.

To erase, I use rubbing alcohol.


Laughing Laughing Laughing Laughing Thats funny...

Quote:
You could start by reading and writing data to the card first


I guess that's misleading...
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