SD card to Stamp
kroki
Posts: 21
Hi!
I just figured, that my project need more data space then a 24LC512 (64Kb), and found an SD card and a socket.
I found the documentation of the SD, and am curious, if anyone had tried to use it with a Stamp.
So can anyone help me to use it with a BS2sx or P24?
Best regards:
Kroki
I just figured, that my project need more data space then a 24LC512 (64Kb), and found an SD card and a socket.
I found the documentation of the SD, and am curious, if anyone had tried to use it with a Stamp.
So can anyone help me to use it with a BS2sx or P24?
Best regards:
Kroki
Comments
I forgot, but now here it is.
(I'm a fast reader ...)
It seems that it is supposed to be written to in chunks of 512Bytes at a time, and that will probably be the biggest problem as you'll have trouble setting up so much data.
How much data space do you need?
Can't you just use a couple more 24LC512 chips?
Just hook the Enable pins to either a 74xx138 3-to-8 demultiplexer and reserve 3 pins on the BS2 to do the chip-select, or possible a row of shift-registers.
I fantasized about a replacable storage, even in a closed box. But it's a dream
A bunch of 24LC512s should be good, no?· Jameco also sells 24C1024 (128Kb) chips in both DIP and SMD.
Mike
·
Is that an option?· Would be easier on the code too....lets the device handle the protocol and you send it TTL/RS232.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
In fact, a 128MB card has 262,144 blocks of 512 bytes.· So if you just fill up the 128MB card once you exceed the life expentancy of the EEPROM.
Mike
I thought the stamps own Eprom had a MTBF of 1million writes.· But is that writes AND rewrites....cuz it has to erase it before it writes it....or does it (I'm still a magnetic tape guy! haha).
Anyhow, it's like cars these days....they build them so they'll last for 150kms.· If they built them to last longer, then the industry wouldn't be as strong.· BUT, some people can get 200-300km's out of them.· I know a guy that just flipped to 400km last summer.
Anyways....it's not like you can duct tape a bumper to your Eprom to get it to go the distance either.
Those Eprom's surface mount?·· buy some extra's and replace on your own (~$5 item).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
"Another SPI common characteristic, whitch is implemented in the SD Card as well, is·byte transfers. All data tokens are multiples of 8-bit bytes and always byte aligned to the CS signal. The SPI standard defines the physical link only and not the complete data transfer protocol. In SPI Bus mode, the DS Card uses a subset of the SD Card protocol and command set."
Do i read correct, that i can use it in 8 bit cycles, and it can be controlled with the CS signal?
????????
p.s.: I'm from Hungary, so forgive me, but I think I need a little help in the understandig of the manual. Or is it not just me, who doesn't understand every sentence of it?
Certainly from the first sentence, you'd think it's possible.
Just have to figure out how to do it and if there are 'consequences' of any sort.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
in a few days.
if it's working, i'll keep U up to date!
The "8 bits" being referred to is part of the communication protocol, not the storage of data.· An SPI command is made up of several bytes (each 8-bits).· And it takes many commands to fill a block.· Even though you send data to it byte-by-byte, you're not writing individual bytes.· There's no way to start writing in the middle of a block.
-Mike
·
Only Atmel makes the 1024Kbit 24C1024, though.
-Mike
U just mentioned the idea i have:
I will use some SRAM module, to store the data till the 512 bytes are "full", and then i shift it to the SD Card.
But it's only possible, if the data is not continous.
Now I have many ideas, and some of they may work:-)
http://www.ghielectronics.com/ALFAT.htm
- Bob -
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
THAT IS THE TIP I HAVE BEEN WAITING FOR. HAVE SUGGESTED THEY ADD I2C I/O ALSO.....
NO I WONDER IF THE ALFAT DEV BOARD WOULD WORK THRU THE IDE INTER FACE TO IOMEGA 100,250 AND 750 IDE DRIVES. SINCE THEY CLAIM IT WILL WORK WITH HARD DRIVES, IT SHOULD.
THIS COULD DEVELOPE INTO A VERY BIG BOONE FOR MICROPROCESSOR USERS OF ALL TYPES........
73
SPENCE
K4KEP
"Writing to the MMC can be at any speed (i.e. 1byte per hour), but the "sector" is only saved if 512bytes were transmitted. "
I like that.· I'll have to try it out.· It means that you don't have to worry about buffering·512 bytes in RAM.
-Mike
No need for a buffer now.· Cool.
I'll see if I can get my code to work for a Stamp this weekend.
-Mike
Jim
www.roguerobotics.com/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=5&MMN_position=6:2:5
Mike
·
Yeah, the DS1210. I'm traveling down a similar path with my project. I too had settled on using an MMC card, but for me the loss of a block would be more critical. I was planning on accumulating data into an SRAM using the DS1210 to protect against data loss. I have an Atmel AT45DBxxx MMC card, but had completely missed that you could buffer the data into the card before doing the write. Thanks Tracy!!! So now the question is, can the DS1210 be used to provide battery backup for the volatile portion of the MMC card? I haven't read the datasheet on it or the card about that possibility. But if it could be done it would be nice as it would remove another component from the design.
Jim
Edit: Forgot to mention that another prototyping option for MMC cards is from BiPom. I ordered their MMC-RTC-1 card www.bipom.com/periph_boards.shtm. It is pretty straight forward and includes a DS1307 RTC chip. It does not provide FAT support. It is basically a hardware interface, you do your own data structuring. OTH, it's half the price of the Rogue unit. It also has, in my opinion, a much better MMC card mounting for embedded applications. Just my $0.02
Post Edited (Jim McCorison) : 2/10/2005 4:09:53 PM GMT
My application isn't critical to have the last block, but I'm going to have a button on my circuit that commits the partial block to the MMC.
-Mike
·
Jim
·· The write cycles are per cell...So you would need to write the entire card over 100,000+ times to deplete it's life span.· Writing to an individual cell or block repeatedly would be the same thing.· Hence, you should use this type of memory as a RAM substitute.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--==<{Chris}>==--
Post Edited (Paul Baker) : 2/11/2005 4:43:55 PM GMT
The 3 volt power for the AT45DBxxx can be left on and battery backed to maintain the RAM buffers. Or, even if the power goes off, a few bytes can be added in the middle of a flash page by shadowing the whole page into the RAM buffer, writing the bytes at the appropriate address, and then writing the RAM back to the flash page. The engineers at Atmel recommend doing an erase before write to be sure that all the cells are solidly set, even if that means a few more writes to an individual page.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com