Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Using SRAM

Status
Not open for further replies.

Rasenger

New Member
Hi!

I'm building a simple "computer", and I'll use SRAM as video ram and also on the mainboard as a communication register between different parts of the computer. The problem is, I haven't found any examples of how to use SRAM with microcontroller. Of course I've checked some datasheets but they are not very beginner friendly. Could anyone point me to right direction?

I'd also like to know if there are SRAMs where can be written to and read from simultaneously..? If I understand right, only one device can read from SRAM at the same time, so different devices should communicate and decide when to access ram to avoid conflict..?
 
Rasenger said:
Hi!

I'm building a simple "computer", and I'll use SRAM as video ram and also on the mainboard as a communication register between different parts of the computer. The problem is, I haven't found any examples of how to use SRAM with microcontroller. Of course I've checked some datasheets but they are not very beginner friendly. Could anyone point me to right direction?

I'd also like to know if there are SRAMs where can be written to and read from simultaneously..? If I understand right, only one device can read from SRAM at the same time, so different devices should communicate and decide when to access ram to avoid conflict..?

Pick an SRAM, and look at the datasheet. It should have the wiring you need. The coding is a different matter entirely if the processor wasn't designed for use with SRAM and you are using it in "real-time" since the coding foudnation doesn't exist and you have to make it. It's mainly just a lot of work with the digital port isn't it? Setting pins high and low to control the RAM based on it's datasheet and doing the same to send data, and reading the port and writing the value to a register to read data?

Don't try going for dual-port SRAM- it's ridiculously expensive- really really really expensive. In fact, SRAM is really expensive too if you need anything more than a couple of K. You might try going for a processor and using DRAM instead as it is much much cheaper and the processor probably has the refresh circuitry built into it.
 
Last edited:
Rasenger said:
Hi!

I'm building a simple "computer", and I'll use SRAM as video ram and also on the mainboard as a communication register between different parts of the computer. The problem is, I haven't found any examples of how to use SRAM with microcontroller. Of course I've checked some datasheets but they are not very beginner friendly. Could anyone point me to right direction?

I'd also like to know if there are SRAMs where can be written to and read from simultaneously..? If I understand right, only one device can read from SRAM at the same time, so different devices should communicate and decide when to access ram to avoid conflict..?

You're starting off with a false premise, you don't want a micro-controller, they have internal RAM, and almost none of them can access external RAM.

If you want to build a 30 year old computer, than use 30 year old bits - Z80 or 6502 were the most popular.

And if you want to build your own video system, then buy a copy of the "Cheap Video Cookbook".

Depending what you're trying to do, you may be better off with a micro-controller and an OSD chip for your video.
 
Nigel Goodwin said:
You're starting off with a false premise, you don't want a micro-controller, they have internal RAM, and almost none of them can access external RAM.

A few AVRs, e.g. Megaa8515, Mega64, Mega128 and Mega162, can allow connection to upto 64K external SRAMs.
 
The 8051 has always supported external memory. 64K of code space and 64K of data space for a total of 128K bytes.
 
Thanks for the advices! I decided not to use SRAM - just plain microcontrollers, to keep things simple. This will limit some functionality and screen resolution, but I think I can overcome these things.

Here's my plan:

**broken link removed**

EDIT: S-Video should be Composite video.
 
Last edited:
Rasenger,

Maybe you should tell us what you are really doing. By video are talking about “text” or pictures of trees and hillsides. If you want to make red and green text then this project should go one way. If you want to process broadcast video then that’s another direction.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top