Need more RAM
Thomas Garaio
Posts: 3
Hi there,
how can I address more main memory? Let's say, I would be happy to address 0.5megs instead of the 32kbytes? I am only software minded and have no idea, how to wire and address external ram (or flash). Goal: I would like to enhance the main program memory and the video buffer (to support VGA or even XGA).
thank you in advance for you help
-- Thomas
how can I address more main memory? Let's say, I would be happy to address 0.5megs instead of the 32kbytes? I am only software minded and have no idea, how to wire and address external ram (or flash). Goal: I would like to enhance the main program memory and the video buffer (to support VGA or even XGA).
thank you in advance for you help
-- Thomas
Comments
However, SparkFun has several boards that can get you more ram using SPI/I2C and that is rather simple hardware to wire up. Just type "ram" in the search engine and you should get some great threads on what others have done.
For video, you'd need to use a counter for the address register and can be initialized byte serially from the 8-bit data bus when it's not being used during the active scan line. This way, you could limit the I/O pins used to 12-16 and yet transfer a byte maybe every 200ns. It would be a close thing to get it to work and you'd have to use several synchronized cogs and ...
Does anybody know, if parallax is working on new versions of the chip with more ram on it - or at least - with the ability to add more main memory using external ram? It doesn't make sense for me to ship an 8 cpu chip with vga/tv support, but almost no ram and: no possibility to add some externally... or is there no need of such on the market? Maybe I am the only one that seems, it should have more...
what are you mean?
Thomas
The Hydra uses sprites rather than bitmapped graphics and the memory bandwidth requirements are different. Be sure to look at the Hydra Manual when it comes out (soon).
Unfortunaly I am really "only" focused on software (compiler construction). Is there anybody who can help to give me some tips/tricks how to start with this project (wiring, creating an SPI based communication to/from an SD-card)?
Thank you
Mike, I did not yet found any further information about the availabilty of the Hydra system. Anyway, I am very interested and I keep my eyes on the forum entries
SPI usually involves 4 pins. There's a clock pin, an input data pin, an output data pin, and a select pin. The SPI routines deal either with the clock pin and the input pin (for SHIFTIN) or the clock pin and the output pin (for SHIFTOUT). The select pin is usually set HIGH (1) just before a data transfer and LOW (0) after the transfer and a transfer may involve more than one byte. Your program will have to deal with the select pin. Sometimes (depending on the device) the input pin and output pin can be the same I/O pin. Sometimes they have to be separate. The documentation for the device will usually discuss this. The documentation will also indicate which bit is sent/received first (least significant or most significant) and whether the I/O pins are to be sampled on the leading (low to high) edge of the clock or the trailing edge (high to low). The SPI routines need to know this.
The details of talking to the actual device, sending valid commands, and receiving data in a useful way are up to you. There are some examples in the Propeller Object Exchange you could look at (like for the DS1620).