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 support@ccsinfo.com

SD Card

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



Joined: 07 Feb 2012
Posts: 5

View user's profile Send private message

SD Card
PostPosted: Wed Feb 08, 2012 5:35 am     Reply with quote

Pls i am new to this, i want to read dat into my sd card using a PIC 18F4520
I'm not to sure if the syntaxes to use in initializing and sending information to the SD card, i have an MMC driver that I'm to use.
Pls i need help, don't mind my ignorance
_________________
Believe and u would see
temtronic



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

View user's profile Send private message

PostPosted: Wed Feb 08, 2012 6:26 am     Reply with quote

Rule number one. Be sure to use proper logic level conversion chip between the 5 volt PIC and the 3 volt SD card.

Unless you have the correct hardware, your program will never work.

Rule number two. Learn to use the 'search' function of this forum. There are dozens of 'SD card' related topics.99% of all the problems you have will already be answered !

Rule number three. Never forget rule #1 and rule #2 !!
Dasat



Joined: 07 Feb 2012
Posts: 5

View user's profile Send private message

PostPosted: Wed Feb 08, 2012 8:22 am     Reply with quote

Believe me I've done number 2 but didn't get the basics I need to start. I don't mind a book or a small tutorial. What i want to do is do an adc conversion: store the various for a number of samples in the card and the print it on a Nokia lcd screen. I can now work with the Nokia screen. But for the cards, I'm not sure of which functions to invoke first, how to view the result so far in my code, etc.
_________________
Believe and u would see
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

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

RE:
PostPosted: Thu Feb 09, 2012 12:39 am     Reply with quote

Hi,

Study the CCS code examples in the PICC folder. See the various functions procedures used, the initialisation of the card is most important part without which the card will not work properly. The CCS code drivers have all the functions/procedures for reading and writing to the card.

Before all this get the hardware ready, as pointed out by temtronic, logic level conversion is very important here.

There are numerous projects in internet, just Google for it.

Please post the datasheet for the Nokia LCD screen...

thanks
a
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

Re: SD Card
PostPosted: Fri Feb 10, 2012 3:01 am     Reply with quote

Dasat wrote:
Pls i am new to this, i want to read dat into my sd card using a PIC 18F4520
I'm not to sure if the syntaxes to use in initializing and sending information to the SD card, i have an MMC driver that I'm to use.
Pls i need help, don't mind my ignorance


A PIC18F4520 can be used for this however you might want to consider using a PIC with more RAM such as a pin compatible PIC18F4620.

You will find examples for electrically integrating an SD/MMC card with a 5 volt PIC.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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