View previous topic :: View next topic |
Author |
Message |
franksmith Guest
|
SD using CCS driver |
Posted: Tue Dec 02, 2008 9:35 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Tue Dec 02, 2008 4:34 pm |
|
|
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!! |
|
![](templates/subSilver/images/spacer.gif) |
franksmith Guest
|
|
Posted: Wed Dec 03, 2008 7:22 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Wed Dec 03, 2008 8:10 am |
|
|
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!! |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Wed Dec 03, 2008 9:19 am |
|
|
asmallri: are your SD drivers compatible with the dsPIC30F chips? |
|
![](templates/subSilver/images/spacer.gif) |
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Wed Dec 03, 2008 10:20 am |
|
|
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!! |
|
![](templates/subSilver/images/spacer.gif) |
franksmith Guest
|
|
Posted: Wed Dec 03, 2008 11:06 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
andreluizeng
Joined: 04 Apr 2006 Posts: 117 Location: Brasil
|
|
![](templates/subSilver/images/spacer.gif) |
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Sat Jul 09, 2011 1:13 am |
|
|
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!! |
|
![](templates/subSilver/images/spacer.gif) |
|