好文档 - 专业文书写作范文服务资料分享网站

VGA视频信号详解_maik

天下 分享 时间: 加入收藏 我要投稿 点赞

VGA视频信号详解

最近做了一些关于视频的工作,稍微研究了一下V4L2和硬件上

的视频知识,其中包括了VGA、component、PAL等信号。在这里总结一下关于VGA信号波形方面的知识。

在学习VGA的视频输出的时候,很容易就可以从网上找到相关的引脚定义:

1 红色视频信号(Red, 75 ohm, 0.7 V p-p) 2 绿色视频信号(Green, 75 ohm, 0.7 V p-p) 3 蓝色视频信号(Blue, 75 ohm, 0.7 V p-p) 4显示器标识信号#2(Monitor ID Bit 2) 5地线(Gnd)

6红色视频信号地线(Red Gnd) 7绿色视频信号地线(Green Gnd) 8蓝色视频信号地线(Blue Gnd) 9未连接(No Pin)

10 同步信号地线(Sync Gnd)

11 显示器标识信号#0(Monitor ID Bit 0)

12 显示器标识信号#1/SDA(Monitor ID Bit 1 or SDA)

13 水平/复合同步信号(Horizontal Sync or Composite Sync) 14 垂直同步信号(Vertical Sync)

15 显示器标识信号#3/SCL(Monitor ID Bit 3 or SCL)

根据上面的定义,可以看出VGA其实就是将我们平常的3基色数据放到了三根模拟信号线中传输。但是我以前错误地认为水平和垂直同步信号是必须的,但是在这次硬件设计的时候发现,一个TI的公板上的VGA只有3基色信号和地,并且在软件调试的时候可以正常的让液晶显示器显示高清画面,所以上网搜索了一下,才发现了VGA的多种同步方式。 VGA接口根据同步信号的不同可分为下列三种: 1.3线同步(绿同步)

2.4线同步(3基色信号+复合同步信号) 3.5线同步(3基色信号+场行同步信号)

首先我先找到了网上较为详细的一篇英文资料:VGA Signal information,大家可以先看看。

Introduction

VGA is a high-resolution video standard used mostly for computer monitors, where ability to transmit a sharp, detailed image is essential. VGA uses separate wires to transmit the three color component signals and vertical and horizontal synchronization signals.

VGA Signals

Like any video format, VGA video is a stream of frames: each frame is made up of a series of horizontal lines, and each line is made up of a series of pixels. The lines in each frame are transmitted in order from top to bottom (VGA is not interlaced), and the pixels in each line are transmitted from left to right. Separate horizontal and vertical synchronization signals are used to define the ends of each line and frame. A composite synchronization signal (actually an XOR of the horizontal and vertical signals) is also encoded on the green color channel.

The ADV7125 video DAC reads an 8-bit value for each of the red, green, and blue channels on each cycle of the pixel clock. There is a two-cycle pipeline delay between when the digital codes are read by the DAC and when the corresponding analog voltages appear on the DAC outputs. The RGB input signals can be overridden by the sync and blank signals: The active low blank signal forces all three DAC outputs to their black level, while the active low sync signal forces the green DAC to a special sync level below the normal black level.

Each line of video begins with an active video region, in which RGB values are output for each pixel in the line. The active region is followed by a blanking region, in which black pixels are transmitted. In the middle of the blanking interval, a horizontal sync pulse is transmitted. The blanking interval before the sync pulse is known as the \and the blanking interval after the sync pulse is known as the \dedicated horizontal sync signal output from the FPGA directly to the VGA connector must be delayed by two clock cycles relative to the composite sync signal passed to the DAC chip, to account for the pipeline delay of the DAC.

Frames are constructed from lines in much the same way as lines are constructed from pixels. The beginning of a frame contains all of the lines that will actually be displayed on the screen, followed by a number of black lines that make up the front porch. Next comes a vertical sync pulse that lasts for several lines, and then more black lines to make up a back porch. Note that the composite sync signal embedded in the green channel appears inverted during the vertical sync pulse: remember that the composite sync is an XOR of the horizontal and vertical sync signals.

其中讲述了绿同步的原理:其实就是在绿色模拟信号中复合了场行同步信号,下面我用真实的示波器输出解释3线同步(绿同步)信号的波形。

实验视频源:开发板输出的1080P-60帧/秒 VGA信号(绿同步),硬件上仅用杜邦线连接三基色信号和地到VGA接口:

为了方便观测,开发板输出彩条信号:

首先我们从总体的波形上观察:

从上面的线号波形上看,绿色信号和其他两个信号比不太一样,似乎上面罩这一层“雾”一样的。其实这层“雾”就是叠加在上面的场行同步信号。

从一场的信号中,我们可以和显示器上的颜色对应上(这也是我为什么用简单彩条信号的原因,有利于分析):

大家都知道,视频数据的场、行同步信号都是场、行的消隐期发生变化的,所以我们要研究场行同步信号就必须研究消隐期的波形。 下面先看行消隐波形:

VGA视频信号详解_maik

VGA视频信号详解最近做了一些关于视频的工作,稍微研究了一下V4L2和硬件上的视频知识,其中包括了VGA、component、PAL等信号。在这里总结一下关于VGA信号波形方面的知识。在学习VGA的视频输出的时候,很容易就可以从网上找到相关的引脚定义:1红色视频信号(Red,75ohm,0.7Vp-p)
推荐度:
点击下载文档文档为doc格式
1apbl6hcd56rgfk162fj
领取福利

微信扫码领取福利

微信扫码分享