I am looking for some CCS code that will enable me to write data to a SD card. Does anyone have some code that will write eg number 1 to 10 to the card and then read them back?
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Mon Oct 08, 2007 4:23 pm
If you use the SD card in SPI-bus mode than it is almost identical to an MMC card, only the startup sequence is slightly different.
Please note that for MMC it is much easier to get the specifications than for SD, unless you are willing to pay a lot of money. MMC cards tend to be a little bit cheaper and have more available memory because the DRM hardware is missing.
Guest
Posted: Fri Oct 12, 2007 4:35 am
So are is there any example code out there using the CCS complier with MMC cards?
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Fri Oct 12, 2007 5:05 am
Use the search function of this forum, this topic has been discussed many times.
CCS provides a driver in picc\drivers\mmc_spi.c
The code library section of this forum contains some FAT implementations.
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