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

Simple doubt with MMC / SD.

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



Joined: 11 Dec 2010
Posts: 60

View user's profile Send private message

Simple doubt with MMC / SD.
PostPosted: Sat Feb 19, 2011 9:43 am     Reply with quote

Friends,

I need to know if I can connect an MMC / SD card to a microcontroller in order to have a memory expansion.

That is, I have a pic that will do some basic operations, but need to save many values. Can I use a 16F88 connected via SPI to a SD card?

I do not need to read the data on my computer ... the card will only be used to store values of the PIC.

I will use basic functions such as: write, read and delete, nothing more.



My thanks.
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: Simple doubt with MMC / SD.
PostPosted: Sat Feb 19, 2011 10:17 am     Reply with quote

Dave_25152 wrote:
Friends,

I need to know if I can connect an MMC / SD card to a microcontroller in order to have a memory expansion.

That is, I have a pic that will do some basic operations, but need to save many values. Can I use a 16F88 connected via SPI to a SD card?

I do not need to read the data on my computer ... the card will only be used to store values of the PIC.

I will use basic functions such as: write, read and delete, nothing more.



My thanks.


Your main constraint is that you need to write in increments of 512 bytes. This generally leads to the requirement for a PIC with lots of RAM.
_________________
Regards, Andrew

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



Joined: 11 Dec 2010
Posts: 60

View user's profile Send private message

PostPosted: Sat Feb 19, 2011 10:34 am     Reply with quote

Thanks for the reply.

From the moment I have no SRAM, so I wanted to use the MMC / SD card instead.

But I need that much RAM? If you use the code "spi_write ()" PIC does not write the on the SD card?


Regards.
Ttelmah



Joined: 11 Mar 2010
Posts: 19515

View user's profile Send private message

PostPosted: Sat Feb 19, 2011 11:00 am     Reply with quote

Realistically, for 'memory expansion', consider an FRAM chip instead. Advantages, effectively instantaneous write, and 'byte' addressable, rather than having to work in blocks.
Smaller than you can get for a given dollar price than an SD card, but compared to the size of a PIC, even a 1Mbit chip, is a big area of memory.

Best Wishes
Dave_25152



Joined: 11 Dec 2010
Posts: 60

View user's profile Send private message

PostPosted: Sat Feb 19, 2011 11:08 am     Reply with quote

OK, thank you both.

Then I shall have to await the arrival of RAM ...




With best wishes
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