View previous topic :: View next topic |
Author |
Message |
Dave_25152
Joined: 11 Dec 2010 Posts: 60
|
Simple doubt with MMC / SD. |
Posted: Sat Feb 19, 2011 9:43 am |
|
|
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: 1635 Location: Perth, Australia
|
Re: Simple doubt with MMC / SD. |
Posted: Sat Feb 19, 2011 10:17 am |
|
|
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
|
|
Posted: Sat Feb 19, 2011 10:34 am |
|
|
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: 19520
|
|
Posted: Sat Feb 19, 2011 11:00 am |
|
|
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
|
|
Posted: Sat Feb 19, 2011 11:08 am |
|
|
OK, thank you both.
Then I shall have to await the arrival of RAM ...
With best wishes |
|
|
|