6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 3:11 am

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Sat Jan 30, 2021 6:05 am 
Offline

Joined: Sat Jan 30, 2021 5:57 am
Posts: 3
So I have recently come across Ben Eater's "World's worst video card" series of videos, and his 6502 oriented computer videos - and it has rekindled an interest in electronics. I haven't done much for many years, but I have been quite interested in the structure of video cards - specifically the VGA because of how easy (mostly) it is to connect to.

But when going over specs on memory access speeds and pixel access rates, it looked like I could get ahold of memory that could do the job but it would be somewhat close - if I wanted to try a full resolution solution. I realize that I can cut down the pixels like Ben Eater does to increase the time I have, or have pixels that take up less than a byte. Which I am considering, I was thinking about doing a text mode first (there are certain aspects about it that fascinate me - trying to figure out in my own mind how certain things can be done).

But then a friend mentioned RAMDACs that were actually use in the before time. I understand with HDMI it isn't really necessary anymore, so they are basically obsolete (even before because they were integrated into the chipsets).

But are there any discrete RAMDACs that are still being made and are accessible to these kinds of projects?


Top
 Profile  
Reply with quote  
PostPosted: Sat Jan 30, 2021 9:53 am 
Offline

Joined: Mon May 21, 2018 8:09 pm
Posts: 1462
I don't think dedicated devices are still being made, no. Generally if an OEM needs a basic display output, they integrate something like an ATI Rage128 which has a RAMDAC built in (but also a lot of other stuff), or they implement DSI or DPI directly to an LCD panel.

The new RP2040 microcontroller (aka Raspberry Pi Pico), however, has the capability to bit-bang DVI/HDMI signals at modest resolutions through programmable I/O state machines. It has enough internal RAM to hold a text or bitmap display with limited colour. If you can find a way to also interface it to an external RAM, then you could use it as a pseudo RAMDAC.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jan 30, 2021 12:29 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Welcome zzing! I too would rather suspect no RAMDACs presently being made. There are outlets for used parts, but buyer beware.

The Pico has 26 I/Os so stands a chance of emulating a 28 pin RAMDAC. It's a fair project to do this though. And officially the Pico isn't 5V tolerant.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jan 30, 2021 7:31 pm 
Offline

Joined: Sat Jan 30, 2021 5:57 am
Posts: 3
Thank you both, I have decided to just use a set of parallel resistors for the part of the output.

I have found some really fast ram that works at 5V the 71256SA12TPG ( https://www.digikey.ca/en/products/deta ... PG/2011023 ).

There are a few questions that I haven't worked out the answer yet, mostly because I haven't investigated it nor actually applied to look into it.

The most important question: Is it possible to use this ram with the 6502? (or its 16bit successor)

If the answer to that question is yes, preferably an unqualified yes, then the next question is how to make it work for both video and cpu.

I have seen the idea of dual port memory, but I haven't found anything that is particularly satisfactory. I would like to be able to spec memory that can be as fast as possible to allow for flexibility later in per pixel times.

So one thought I had was to have effectively a double buffering going on. If the video memory is effectively 32kbytes, then I would have two chips, and would swap between them on the low bit of the counter. In the period of time where it isn't accessing one of the chips, another chip can transfer the video memory over from main memory without taking too much cpu time away.

That is the high level idea I am thinking about without specific means for doing any of it yet. So it might turn out that I can't do any of it or some of it for some reason or another.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jan 30, 2021 7:52 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
It's advice rarely taken, but often given, and it's good advice: start simple. Proceed in stages. Learn how to build and how to debug. You'll be much more likely to finish the job if you build up confidence and competence. It's a common failure mode to overreach and become demotivated.

The best place to start is with an existing working design, and build that, and debug your build.

Having said which... figure out the bandwidths you need. Draw the diagrams, do the arithmetic, figure out how many accesses per second are needed, and how wide they are. And draw out the bus structure. Where do addresses come from, where does data go.


Top
 Profile  
Reply with quote  
PostPosted: Sun Jan 31, 2021 11:15 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
I should apologise if my previous post was too harsh - as the idea was to prevent discouragement, it would be pretty bad if it actually caused discouragement.

What I should have tried to do is to encourage you to start by building a simple-as-possible system and work up from there.


Top
 Profile  
Reply with quote  
PostPosted: Sun Jan 31, 2021 5:38 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8507
Location: Midwestern USA
BigEd wrote:
It's advice rarely taken, but often given, and it's good advice: start simple.

I completely agree with Ed.

While it is good to have ambitions and want to build a machine with cool features, the reality is a first-time build with too much complexity is almost-never successful. My moto is learn how to fly a single-engine plane before you climb into the cockpit of a 747. Building a more basic unit makes the inevitable troubleshooting much easier and when you get it running, gives you that all-important feeling of being on the right track with your project. A simple, working contraption is always much better than a DOA one.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Sun Jan 31, 2021 6:11 pm 
Offline

Joined: Sat Jan 30, 2021 5:57 am
Posts: 3
Quote:
I should apologise if my previous post was too harsh


Oh not at all. I am working off of two existing projects already (I think I mentioned them up above). Ben Eater's breadboard 6502 and breadboard video card. His 6502 computer is built up rather slowly over a few videos so I will get some familiarity there. His video card is a little bit more basic, so I am probably going to try to adapt it to what I am hoping for.

My direction is to reproduce what he did on the computer using the kit he sells (its one way I can support/thank him for the resources he has provided), and then work from there. I am wanting to look at the larger picture in a theoretical way - it is early to do that yes - but it is one of the parts that is fascinating.

Now I have seen the link to http://wilsonminesco.com/6502primer/ and I am taking some of the information down. I am interested in looking at an oscilloscope sometime after I get some of the kit stuff going.


Top
 Profile  
Reply with quote  
PostPosted: Sun Jan 31, 2021 6:29 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8507
Location: Midwestern USA
zzing wrote:
Now I have seen the link to http://wilsonminesco.com/6502primer/ and I am taking some of the information down. I am interested in looking at an oscilloscope sometime after I get some of the kit stuff going.

Just an opinion, but I feel Garth's primer is better at explaining the nuances of building a 6502 contraption than Ben's videos. The videos are good, and it is, of course, worthwhile to see actual, working hardware in action. However, what makes the primer better, again, in my opinion, is the written narratives on each primer page have much more depth in discussing principles, alternatives and "gotchas."

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 02, 2021 7:49 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1431
RAM-DACs are supposed to be no longer in production.

DigiKey has AnalogDevices RAM-DACs from Rochester Electronics (year 2021), but if the stock is gone, it's gone.
For some chips the minimum quantity is a bit high, some other chips might be a bit too expensive for a hobby project.

EF9369 (PDF page 216) is around $20 at ebay, but wheter chips at ebay are fully functional originals or not would be going to be a different topic.


Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 05, 2021 12:38 am 
Offline

Joined: Wed Jun 17, 2020 10:51 am
Posts: 60
did you find any datasheets for those chips?

_________________
No simulation survives contact with reality!


Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 05, 2021 2:24 am 
Offline

Joined: Thu Mar 10, 2016 4:33 am
Posts: 181
The Brooktree RAMDAC's look like they'd be quite easy to interface with. They are out of production but there are still NOS ones around, but the prices are quite high. The BT101 is a VideoDAC, so has no lookup table, The BT450 is a 4-bit RAMDAC, and there are plenty of 8-bit ones, like the BT468. Datasheets are quite easy to find on the internet.


Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 05, 2021 6:37 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1431
ThePhysicist wrote:
did you find any datasheets for those chips?

The AnalogDevices homepage still has datasheets of obsolete RAMDAC chips, just use the "search" function.
Also take a look at Bitsavers: 1992 Analog Devices Audio Video Reference Manual, PDF page 522, 6-3.

TI still (year 2021) manufactures video DACs without a lookup table, and Mouser has them on stock:
THS8135: 3*10 Bit 240MSPS.
THS8136: 3*10 Bit 180MSPS.
THS8200: 3*11 Bit 205MSPS.

For a dissection of an old (monochrome) video DAC module containing ECL chips and transistors, go here.

Edit:
Related thread: ANALOG's "COMPUTER GRAPHICS AND RAM-DACs"


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: