36
Video Input/Output Daughter Card
UG235 (v1.2.1) October 31, 2007
Chapter 4:
DVI/VGA Input Interface
R
The HSYNC and VSYNC signals are critical to the VGA interface, but can be encoded in
several ways. The most basic is with separate sync signals for each, increasing the number
of signals to 5: RGBHV. These syncs can be active high or low, and different resolutions
typically have different combinations of sync polarity. A second encoding is composite HV,
with HSYNC and VSYNC combined onto a single signal. This is preformed through a
logical XOR of the two signals. The end result looks like the original HSYNC signal, except
that its polarity is inverted during VSYNC. This mode reduces the number of signals to 4.
A third mode of encoding the sync signals is by combining the composite sync signal with
the green data. This is referred to as “sync-on-green” (SOG). As mentioned previously, the
typical signal levels are 0-700mV. SOG offsets this by 300mV to 300mV-1V. The drop from
300mV to 0 is used to indicate the composite sync.
Setting the PLL and Phase
The AD9887A digitizes the analog video waveforms using three 8-bit analog-to-digital
converters. For this analog-to-digital conversion to operate properly, it must sample each
pixel at the appropriate time (
).
To explain VGA sampling theory, it is useful to use a greatly simplified example.
shows a single line from a frame with the horizontal front porch set to 1, the sync length set
to 1, and the horizontal back porch set to 2. The line has 12 active pixels. In order to receive
the video data, these are the only signals available.
illustrates the ideal ADC sampling positions for this line. To generate these
sample times, the AD9887A includes a PLL that locks to the incoming HSYNC,
multiplying the HSYNC frequency by a factor set by the feedback divider. The frequency
multiplication factor is set to the total number of clock cycles per HSYNC period. For the
example, the multiplication value is 1+1+2+12 = 16. The PLL in the AD9887A is
free-running, so ADC samples occur during blanking (gray arrows) as well as active video
Table 4-1:
VGA Standards
Pix
Clock
Freq
(MHz)
HSync
Freq
(kHz)
Horizontal Timings
(in clk cycles)
Vertical Timings
(in Lines)
Front
Porch
Sync
Back
Porch
Active
Front
Porch
Sync
Back
Porch
Active
VGA60
40
37.9
40
128
88
800
1
4
23
600
XGA60
65
48.4
24
136
160
1024
3
6
29
768
SXGA60
108
64
48
112
248
1280
1
3
38
1024
UXGA60
162
75
64
192
304
1600
1
3
46
1200
Figure 4-4:
Pixel Sampling
HSYNC
RGB
0
1
2
3
4
5
6
7
8
9
10
11
2
1
1
2
1
1
10
11
0
12 Active Pixels
www.BDTIC.com/XILINX