Is it hard to interface a compact flash / secure digital card / etc. with the S
das
Posts: 3
Hi,
I was buying a 1GB secure digital card for my digital camera and thought, "·Hey, would it be possible to interface the SD card with the Stamp so that I could store· 1GB of code or data on it"?
Does anyone know if there is an interface guide / chip that a consumer can purchase to do this?
I was shopping for EEPROM's and they· usually come in small sizes (e.g. 64kb, 128kb) and cost about as much as a 512MB SD card.
Thanks,
Dean
I was buying a 1GB secure digital card for my digital camera and thought, "·Hey, would it be possible to interface the SD card with the Stamp so that I could store· 1GB of code or data on it"?
Does anyone know if there is an interface guide / chip that a consumer can purchase to do this?
I was shopping for EEPROM's and they· usually come in small sizes (e.g. 64kb, 128kb) and cost about as much as a 512MB SD card.
Thanks,
Dean
Comments
·· This question seems to come up at least once per month.· If you search the forums for the word flash, you will find a bunch of other threads on this subject.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Is it easy? no
There are many complications when interfacing with MMC (SD cards support MMC SPI interface), the biggest issue is that the smallest write block the things handle is 512 bytes, more data memory than a stamp (or even SX) can handle internally. This is my current project, the spec sheet I am using as a reference is http://www.sandisk.com/pdf/oem/manual-rs-mmcv1.0.pdf·and I find the specs a bit daunting, even though I am a·rather seasoned programmer. I have confidence I can make the thing work (Ill be using a FRAM memory to temporarily hold data until a 512 block is prepared), but I fully expect to experience many "gotcha's" before I get the thing to work properly. Right now Im still in the preliminary stage, I have the basic hardware components but need to buy some more before I can get a functioning hardware setup.
There is a pre-rolled package you can get that provides an interface to them and formats the disk in a FAT compatible method so you can access the data on a PC as well, but its in the $100 price range. Search the forums as Chris suggested to find the name of the module, because I always forget the name of it. (after a quick search it's called ALFAT)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 10/12/2005 6:54:03 PM GMT
http://www.ghielectronics.com
http://www.ghielectronics.com/ALFAT DEV.htm
ABOUT $90 MAJOR PRICE DROP
http://www.ghielectronics.com/ALFAT-SD.htm
ABOUT $50
73
SPENCE
K4KEP
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Like Chris says, search around and you'll find lots of info, including my code in a response to an earlier similar question.
I did find that once a write is initiated, there is no problem with feeding your 512 bytes of data in as slowly as you want; the MMC/SD clock has no lower speed limit. So there should be no need for any sort of temporary data store.
David
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10