RFC - please dissect my design on a 6502 + VGA

For discussing the 65xx hardware itself or electronics projects.
ThePhysicist
Posts: 60
Joined: 17 Jun 2020

Re: RFC - please dissect my design on a 6502 + VGA

Post by ThePhysicist »

Here is the first iteration. It uses 3 dual pot rams now - one for the character value, one for foreground and one for background. So in the end you should be able to define foreground and background color of each character. It also sprouts basic ROM and 512 MB character RAM (simply because I have those chips lying around)
vga_text_V01.jpg
vga_text_v01.pdf
(455.26 KiB) Downloaded 49 times
No simulation survives contact with reality!
ThePhysicist
Posts: 60
Joined: 17 Jun 2020

Re: RFC - please dissect my design on a 6502 + VGA

Post by ThePhysicist »

Again - it was a very long time since the last post - but the project is still alive. Actually it's better than alive, it's working. This is a test image of pure TEXT output.
vga_text_testimage.JPG
Here's how it looks like on a breadboard:
vga_text_breadboard.JPG
I attached the schematics as well.

Now why did it take so long?
  • it was complicated - far more complex than I imagined
  • if you have only 30-60min each day at night when you are tired progress is slow
  • you don't have any time to yourself during Christmas vacation :P
  • you are bound to make many mistakes, and motivation to debug sometimes is low
  • especially when something works, than does not work next day
  • only after I discovered load from a logic analyzer might positively impact your design things became more stable
  • pull-up resistors are better stabilizers than load from a measurement device
happy hacking
Michael
Attachments
vga_text_v02_bw.pdf
schematic in BW
(587.07 KiB) Downloaded 42 times
vga_text_v02_color.pdf
schematic in color
(599.32 KiB) Downloaded 39 times
No simulation survives contact with reality!
gfoot
Posts: 871
Joined: 09 Jul 2021

Re: RFC - please dissect my design on a 6502 + VGA

Post by gfoot »

ThePhysicist wrote:
.
  • only after I discovered load from a logic analyzer might positively impact your design things became more stable
  • pull-up resistors are better stabilizers than load from a measurement device
Ha ha. Nice work. Regarding lack of time, I know the feeling, we often have other things to prioritise over our hobbies. But the hobbies are still there for us when we get back to them. Sometimes they even still work!
User avatar
Oneironaut
Posts: 734
Joined: 25 May 2015
Location: Gillies, Ontario, Canada
Contact:

Re: RFC - please dissect my design on a 6502 + VGA

Post by Oneironaut »

Mighty fine work!
ThePhysicist
Posts: 60
Joined: 17 Jun 2020

Re: RFC - please dissect my design on a 6502 + VGA

Post by ThePhysicist »

Thanks Brad, actually I copied the Graphic part from your design :)
No simulation survives contact with reality!
ThePhysicist
Posts: 60
Joined: 17 Jun 2020

Re: RFC - please dissect my design on a 6502 + VGA

Post by ThePhysicist »

The PCB I created (and ordered from China) worked mostly. Here are both cards combined showing text output
IMG_2280_text.jpg
and here doing graphics
IMG_2279_graphic.jpg
There are 2 problems still. Column 0 of the text output is not 100% correct, some timings seem to be off. Far worse is an issue caused by the 4 Y address lines connecting the 2 boards. If they are directly connected via short pin headers the output goes black. If I connect them via 40cm wires as shown in the pictures it's working. Either reflections, or timings, or cross-talk is causing an issue here.
Still as "proof of concept" this worked out. But I probably would not repeat this exercise and instead use one or more CPLDs or even a FPGA for my next iteration. There are simply too many chips in this "bug cemetery" :)
No simulation survives contact with reality!
Post Reply