Memory storage
Memory storage
Since i am building some sbc computers, i would like to have a permanent memory for saving data and programs. Since the floppy drive is kinda tricky i thought about using eeproms, but i don't know which would be bast and cheapest. I was thinking about the 28c256, but i am not sure if this is the best choise for a rewritable memory. What other memories would do? (SD cards need a controller, but i don't have a clue how to make one...)...
- BigDumbDinosaur
- Posts: 9427
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Memory storage
Dajgoro wrote:
Since i am building some sbc computers, i would like to have a permanent memory for saving data and programs. Since the floppy drive is kinda tricky i thought about using eeproms, but i don't know which would be bast and cheapest. I was thinking about the 28c256, but i am not sure if this is the best choise for a rewritable memory. What other memories would do? (SD cards need a controller, but i don't have a clue how to make one...)...
EEPROMs are kind of slow for general storage purposes, although that may not be an issue in your situation. The circuitry required to write to an EEPROM may be a hassle to rig up, as timing can be touchy. The 28C256 has a 32 KB capacity. Will that meet your requirements?
You could look at battery-backed static RAM. Static RAMs are available that use very little power to retain data for a long time (vidi the RAM used in PCs to retain setup data). A CR2032 battery would be all that is required to maintain the RAM when powered down, and you can rig up circuitry to supply juice to the RAM when your SBC is powered up. The only real consideration is the capacity vs. power consumed angle.
Flash memory is another possibility, which can be organized along the lines of disk storage, and can offer much greater capacity. Others here have used flash memory in their projects.
Yet another possibility, for which circuitry has been worked out, is to interface a PATA (aka IDE) hard disk. Although PATA disks are no longer used as OEM hardware in PCs, they will be available for some time to come. Capacity certainly won't be an issue.
If you are a bit more adventurous, you could rig up SCSI as I did for my POC unit, and give yourself access to disks, DVD/CD readers, tapes, etc. Might be overkill though.
x86? We ain't got no x86. We don't NEED no stinking x86!
Well, i would like to have as much capacity as i can get...
I looked at the static ram datasheet, and it seems that it consumes 2mA in standby, which is 2 weeks with 700mah ni-cd battery...
A hard drive would be nice, but i also don't have a clue from where to start... I am opened to any suggestions, i even thought about audio tapes, but then i have to carry my big deack tape player, which is bigger than the sbc itself, and walkman stuff is inposible to get any more. At the end i think it the 28c256 is a much better solution than tapes...
I would like to have fancy hard drives and flash memories, but my budget allows only cheap ic, so i can't get my hands on any fancy fpga or simmilar expencive stuff, the pic/atmel controllers are my budget limit...
I looked at the static ram datasheet, and it seems that it consumes 2mA in standby, which is 2 weeks with 700mah ni-cd battery...
A hard drive would be nice, but i also don't have a clue from where to start... I am opened to any suggestions, i even thought about audio tapes, but then i have to carry my big deack tape player, which is bigger than the sbc itself, and walkman stuff is inposible to get any more. At the end i think it the 28c256 is a much better solution than tapes...
I would like to have fancy hard drives and flash memories, but my budget allows only cheap ic, so i can't get my hands on any fancy fpga or simmilar expencive stuff, the pic/atmel controllers are my budget limit...
Re: Memory storage
Dajgoro wrote:
Since i am building some sbc computers, i would like to have a permanent memory for saving data and programs. Since the floppy drive is kinda tricky i thought about using eeproms, but i don't know which would be bast and cheapest. I was thinking about the 28c256, but i am not sure if this is the best choise for a rewritable memory. What other memories would do? (SD cards need a controller, but i don't have a clue how to make one...)...
http://6502.org/source/io/xmodem/xmodem.htm
A more advanced method would be to use my 65SPI and SPI-IDE/CF controller that supports the FAT-16 protocol on IDE Hard Drives or CF modules up to 2GB. More info can be found here (look under SPI IO):
http://sbc.rictor.org/
Daryl
- BigDumbDinosaur
- Posts: 9427
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Memory storage
8BIT wrote:
If you have an RS-232 port on your SBC, you could use a PC to store your files. I wrote an X-Modem file transfer protocol that uses the SBC's UART to send and receive a file from a PC. That has served me quite well on my SBC-2 boards. The code is in the source code repository:
http://6502.org/source/io/xmodem/xmodem.htm
http://6502.org/source/io/xmodem/xmodem.htm
Quote:
A more advanced method would be to use my 65SPI and SPI-IDE/CF controller that supports the FAT-16 protocol on IDE Hard Drives or CF modules up to 2GB. More info can be found here (look under SPI IO):
http://sbc.rictor.org/
http://sbc.rictor.org/
x86? We ain't got no x86. We don't NEED no stinking x86!
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
There are bigger ones in the 24256 family also. 24256 is only 32Kx8. There's a 128Kx8 also. There probably won't ever be any huge I²C ones though because of the transfer speed. I²C's low speed won't be a problem for you, but nobody would want to wait for it to transfer 10 megapixel photos for example. There are a lot of SPI flash ICs with several megabytes, including 8-pin ones that are very small. Here's one of my half-postage-stamp-sized EEPROM modules:

The 8-pin DIP is a 24256. The 4-position socket on the end has Vcc, ground, clock, and data (although Daryl and I agreed that all future I²C plugs and modules will use a 6-pin, with one hole blocked so you can't plug it in upside down, and one pin for IRQ\ for things like a keybad controller, RTC with alarms, etc.). I don't put the LED on them anymore. I put the LEDs on the computer so I could see when the power is off and the lines are low so I can know it's safe to plug it in or unplug it. The shorting bar on the far left is for write protect.
As for battery-backed SRAM, the 2mA you mention is the maximum current for being fully powered up. When you deselect it and go down to its low-power retention mode, the data sheet may specify 2uA max, and have typical currents in the nA range. I had a 10uF capacitor keep the memory intact on an 8Kx8 SRAM for 24 hours 25 years ago.
As for audio tape, it's cheap and there's a way to make a modem for a dollar or two, but the speed is extreeeeeeemely slow compared to even I²C, and you can't jump around without a lot of fast-forward or rewind time. You also don't get much on a C-90 cassette. I've done it but there's no justification for it anymore.

The 8-pin DIP is a 24256. The 4-position socket on the end has Vcc, ground, clock, and data (although Daryl and I agreed that all future I²C plugs and modules will use a 6-pin, with one hole blocked so you can't plug it in upside down, and one pin for IRQ\ for things like a keybad controller, RTC with alarms, etc.). I don't put the LED on them anymore. I put the LEDs on the computer so I could see when the power is off and the lines are low so I can know it's safe to plug it in or unplug it. The shorting bar on the far left is for write protect.
As for battery-backed SRAM, the 2mA you mention is the maximum current for being fully powered up. When you deselect it and go down to its low-power retention mode, the data sheet may specify 2uA max, and have typical currents in the nA range. I had a 10uF capacitor keep the memory intact on an 8Kx8 SRAM for 24 hours 25 years ago.
As for audio tape, it's cheap and there's a way to make a modem for a dollar or two, but the speed is extreeeeeeemely slow compared to even I²C, and you can't jump around without a lot of fast-forward or rewind time. You also don't get much on a C-90 cassette. I've done it but there's no justification for it anymore.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The idea is that the data may be stored widouth a separate computer...
The i2c looks interesting, it would be also interesting to be able to use a hard drive... I would like to give it a try and connect ide hard drive, but i never used the SPI interface before, and how do i convert it to a 6502 bus compatible format(running it throught a microcontroller may get a bit slow...)(65SPI-out of budget?)?
As for the serial link it is useful for data transfers...
And the tapes, did anyone ever tried to use vhs tapes for digital data storage?
The i2c looks interesting, it would be also interesting to be able to use a hard drive... I would like to give it a try and connect ide hard drive, but i never used the SPI interface before, and how do i convert it to a 6502 bus compatible format(running it throught a microcontroller may get a bit slow...)(65SPI-out of budget?)?
As for the serial link it is useful for data transfers...
And the tapes, did anyone ever tried to use vhs tapes for digital data storage?
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Dajgoro wrote:
The i2c looks interesting, it would be also interesting to be able to use a hard drive... I would like to give it a try and connect ide hard drive, but i never used the SPI interface before
Quote:
, and how do i convert it to a 6502 bus compatible format(running it throught a microcontroller may get a bit slow...)(65SPI-out of budget?)?
Quote:
And the tapes, did anyone ever tried to use vhs tapes for digital data storage?
If you use SPI, I would encourage you to implement a 65SIB (serial interface bus) which we devised here. It accommodates Microwire and dumb 74HCxxx shift registers as well. With primary addressing, it allows seven devices on the bus at the same time. There is a list of advantages given at the linked post.
- BigDumbDinosaur
- Posts: 9427
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Memory storage
Dajgoro wrote:
And the tapes, did anyone ever tried to use vhs tapes for digital data storage?
You may be able to scrounge up an old DDS-2 tape drive (8 GB per cartridge) from one of the liquidators but you'd need a SCSI port to connect to it.
x86? We ain't got no x86. We don't NEED no stinking x86!
If you want maximum capacity, you should go for SD card, using SPI interface.
Here's some info:
http://elm-chan.org/docs/mmc/mmc_e.html
http://www.roland-riegel.de/sd-reader/
Here's some info:
http://elm-chan.org/docs/mmc/mmc_e.html
http://www.roland-riegel.de/sd-reader/
Re: Memory storage
BigDumbDinosaur wrote:
Dajgoro wrote:
And the tapes, did anyone ever tried to use vhs tapes for digital data storage?
Practice safe HEX !
Dajgoro wrote:
I looked at the static ram datasheet, and it seems that it consumes 2mA in standby, which is 2 weeks with 700mah ni-cd battery...
If using a CMOS RAM, it is important to ensure that the chip select pin (CS or CE) is held high when the system is in battery mode. If this pin is allowed to go low, the chip becomes active and its current consumption can increase enormously.
Shift to the left,
Shift to the right,
Mask in, Mask Out,
BYTE! BYTE! BYTE!
Shift to the right,
Mask in, Mask Out,
BYTE! BYTE! BYTE!
- BigDumbDinosaur
- Posts: 9427
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
PaulF wrote:
If using a CMOS RAM, it is important to ensure that the chip select pin (CS or CE) is held high when the system is in battery mode. If this pin is allowed to go low, the chip becomes active and its current consumption can increase enormously.
x86? We ain't got no x86. We don't NEED no stinking x86!
You can buy DIP modules with a builtin lithium battery and power sequencing/conditioning, for example Maxim/Dallas DS1543 is 64k x8 with a clock, or DS1245 is 128k x8. STM do a M48Z35 too, similar idea.
andysa has a Dallas part on his Sym-1 board.
Maxim have an app note talking about the power conditioning problem - they are selling a solution of course.
Cheers
Ed
andysa has a Dallas part on his Sym-1 board.
Maxim have an app note talking about the power conditioning problem - they are selling a solution of course.
Cheers
Ed