question about VGA timing
dr hydra
Posts: 212
I am working on a driver for a VGA display using the propeller. How come VGA (640 x 480 60hz) timing is listed with a dot clock of 25.175 mhz or 39.72194 ns. Using the active horizontal video timing of 25.17us, I get only 633 or 634 pixels. Not 640. To get 640 pixels the dot clock would need to be 25.427 mhz or 39.328 ns....right?
Comments
NTSC is the same, think in terms of the entire line being "pixels" then some is active, some is sync. In fact, this is how we write all the video drivers for VGA and NTSC.
Andre'
Great, thank you. 800 clocks will work (horizontal). For the vertical, do you use 525 lines (480 active the other 45 Vsync/front porch etc.)
http://www.epanorama.net/faq/vga2rgb/calc.html
Then figure out the syncs and porches, which leaves active pixels.
From there, you can make choices about your actual pixel clock during the active time, and or adjusting the porches to round things to convenient multiples of PLLA. You can also then figure out how the syncs will be generated.
Andre'