blue = horizontal trace of 1 row
red = horizontal retrace
green = vertical retrace
The time between the end of the pixel data for a line and the beginning of a horizontal sync pulse is called the front porch, and the time between the end of the sync pulse and the beginning of the new line data is called the back porch.
The vertical sync pulse, also has a front and back porch, but it is
generally measured in terms of a number of rows (horizontal sync pulses).
The clock rate and the timing of pixel information, blanking times, and sync pulses determine the resolution of the screen. For example, for a marginless resolution of 640x480 with a 33-MHz pixel clock, a single row actually lasts for 832 clock pulses: 640 for the pixel data, 32 for the front porch, 64 for the horizontal sync time, and 96 for the back porch. Similarly, a pass of the entire screen has 503 horizontal sync pulses: 480 for the screen data (1 for each row), 1 for the front porch, 3 for the vertical sync, and 19 for the back porch.
Although these values of sync and porch times can vary and sometimes depend on the model of the monitor being used, too much deviation from the standards can result in flickering screens, or failure to synchronize with the monitor. Unsynchronized monitors display a blank screen. Also some newer models' power indicators may turn yellow or flash, or their screens may display an error message when they fail to synchronize.
The following table shows the timing values of some typical resolutions.
The horizontal values are counted in clock pulses, and the vertical values
are counted in rows.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To easily determine timing values for essentially any resolution and
clock frequency, there is a standard VESA generalized timing formula which
all monitors must support. This Excel Spreadsheet
taken from www.vesa.org will calculate the timing
values using this formula for any resolution, at any clock, vertical or
horizontal frequency.
The number of colors available depend on the digital precision of the
system. VGA is 8-bit color: 3 bits for red, 3 for blue, and 2 for green.
These bits correspond to different intensity levels, so red and blue will
have 3^2 or 8 levels each, and green will have 2^2 or 4 levels. Each digital
color is sent through a digital-to-analog convertor to set the appropriate
voltage level to the monitor. The 3 primary colors are combined with their
different intensities to create the color seen on the screen, so the total
number of colors available in VGA is 2^8 or 256 colors. Most monitors today
use 24-bit SVGA, which corresponds to 16.8 million colors.
If you have any questions/comments, send an e-mail to
dng@ualberta.ca
Written by Dave Ng, Mel Lumague, Ben Talbot, Nitin Parimi,
Emy Egbogah