Author Topic: how to interface cmos to VGA  (Read 720 times)

0 Members and 3 Guests are viewing this topic.

Offline Dan MoosTopic starter

  • Frequent Contributor
  • **
  • Posts: 357
  • Country: us
how to interface cmos to VGA
« on: June 04, 2021, 03:09:11 am »
What is the proper way to interface a 5 volt signal to the red, green and blue  channels of a vga monitor? Lets assume I am going for white, full brightness. I know how to create a simple resistor DAC.

I know from research the upper voltage level of the signal is .7 volts (sounds suspiciously like the monitor input is diode clamped)

I've found that leaving the signals at 5 volts results in a "smeared" looking image. a 1k resistor in series cleans it up considerably. Haven't tried a diode to ground yet to clamp the signal. Resistor divider obviously results in a less bright image. I get pretty passable results with the 1k resistor in series between the logic and the monitor input.

This is a home rolled VGA video circuit for a home-brew computer . It works great, but I've kinda procrastinated on properly doing this part.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9161
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: how to interface cmos to VGA
« Reply #1 on: June 04, 2021, 03:14:40 am »
The VGA signals have a 75 ohm termination, so 470 ohms is the closest standard resistor value to give the ideal signal level. Maybe bump that down to 390 ohms to compensate for the impedance of the output drivers.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline Dan MoosTopic starter

  • Frequent Contributor
  • **
  • Posts: 357
  • Country: us
Re: how to interface cmos to VGA
« Reply #2 on: June 04, 2021, 03:30:07 am »
So just to make sure I'm following, What I am trying to do is create a voltage divider with the 75 ohm termination that results in .7 volts at full input? Thus, the 1k I'm currently using is a slightly attenuated signal compared to what I could send?

Also, is any sort of filtering recommended? My pixels are sent at a 25.175 Mhz  clock rate. Should I be high or low pass filtering this signal? With the 1k series resistor, i get very faint smearing of the signal. You have to really look to see it.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9161
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: how to interface cmos to VGA
« Reply #3 on: June 04, 2021, 04:21:55 am »
No need to filter, the whole point is to have the pixel values transition as quickly as possible.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: how to interface cmos to VGA
« Reply #4 on: June 04, 2021, 06:00:08 am »
This is commonly done with FPGAs using a simple resistor DAC, for an example see here http://searle.x10host.com/Multicomp/index.html

With additional resistors you can get 4 or more bits per pixel.

Keep in mind the above example is 3.3V rather than 5V.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf