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 using CCS driver

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







SD using CCS driver
PostPosted: Tue Dec 02, 2008 9:35 am     Reply with quote

Just looking for information, has anyone used the SD driver in the CCS library, and also the example of how to read and write to SD?
Was it successful and seem to work ok?

I need to implement a SD on a pic, and I think if it works the driver could save a lot of time, what do you think?

thanks

frank
asmallri



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

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

PostPosted: Tue Dec 02, 2008 4:34 pm     Reply with quote

If you are looking for a file system driver, as opposed to a low level media driver, and want to save a lot of time you might like to check out my drivers.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
franksmith
Guest







PostPosted: Wed Dec 03, 2008 7:22 am     Reply with quote

hi, i see that there is 2 sd items listed on your website, can you tell me which one does what?
also does the driver come with any example code for read/write?
thanks

frank
asmallri



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

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

PostPosted: Wed Dec 03, 2008 8:10 am     Reply with quote

franksmith wrote:
hi, i see that there is 2 sd items listed on your website, can you tell me which one does what?
also does the driver come with any example code for read/write?
thanks

frank


The "SD/MMC Card driver and test utilities" are the low level SPI drivers for the SD/MMC cards. The utilities enable you to explore the media and dump sectors. The drivers include write routines but the utilities only read the media with the exception of a QFormat command that clears any FAT data structures - similar to a quick format under DOS/Windows.

The "Software driver for SD/MMC Card File System for Microchip Microcontrollers" includes support for DOS/Windows FAT file system. This will let you read and write files to the media which can then be read by a PC, Camera or other device that supports the FAT file system. The software includes the low level SD/MMC drivers but does not include the QFormat function. This software comes with a fully functional data logging application that demonstrates real time data logging.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Guest








PostPosted: Wed Dec 03, 2008 9:19 am     Reply with quote

asmallri: are your SD drivers compatible with the dsPIC30F chips?
asmallri



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

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

PostPosted: Wed Dec 03, 2008 10:20 am     Reply with quote

Anonymous wrote:
asmallri: are your SD drivers compatible with the dsPIC30F chips?

I do not have a port for the CCS PCD compiler (PIC24 and dsPIC). I have a PIC24 version for the C30 compiler but have not yet tested with the dsPIC.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
franksmith
Guest







PostPosted: Wed Dec 03, 2008 11:06 am     Reply with quote

Thanks for your information andrew, I will keep your code etc in mind.
I am progressing slowly with the example and drive code from the ccs compiler examples.

I have the mmcsd.c driver to initialise the card, and gives me the read and write function as in ex_mmcsd.c. it seems to read some kind of data from the card, giving me either a 0 or a random hex value depending upon location read.
I think this is what the ex_mmcsd.c file is meant to do? It would be helpful if there were some application notes other than the comments at the top of the file.

frank
andreluizeng



Joined: 04 Apr 2006
Posts: 117
Location: Brasil

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

PostPosted: Fri Feb 27, 2009 11:02 am     Reply with quote

I just got mmc and fat32 working and I already posted it in another topic.

http://www.ccsinfo.com/forum/viewtopic.php?t=37463&highlight=mmc


regards.
_________________
Andre
asmallri



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

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

PostPosted: Sat Jul 09, 2011 1:13 am     Reply with quote

asmallri wrote:
Anonymous wrote:
asmallri: are your SD drivers compatible with the dsPIC30F chips?

I do not have a port for the CCS PCD compiler (PIC24 and dsPIC). I have a PIC24 version for the C30 compiler but have not yet tested with the dsPIC.


I finally have a version for the PCD compiler. Special thanks to the dedicated individuals (you know who you are) that helped work around some PCD challenges.
_________________
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