This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

tvp7002 采集图像花屏

Other Parts Discussed in Thread: TVP7002

实验过程中使用的tvp7002寄存器都是按照SLEC029A进行的配置,采集1024*768的时候图像是正常的如图1所示,但是采集1400*1050分辨率图像却混乱了如图2所示。麻烦大神们帮忙看看可能是什么问题导致的~~

图1

图2

  • 你好,

    请问和TVP7002连接的接收端的水平偏移是否配置正确?

  • 都是按照表格里给的填写的啊,下面是所有寄存器配置部分的代码,会是水平偏移的问题么,要是是他的问题我应该怎么去测试和修改啊
    ./tvp7002_default_settings.sh $1

    # embedded syncs
    ./tvp7002_vga_ycbcr_422_es_common.sh $1

    # discrete syncs
    #./tvp7002_vga_ycbcr_422_ds_common.sh $1

    i2cset -f -y $1 0x5d 0x01 0x74 # H-PLL Feedback Divider MSBs - 1864 pixels -------------分辨率1400*1050
    i2cset -f -y $1 0x5d 0x02 0x80 # H-PLL Feedback Divider LSBs
    i2cset -f -y $1 0x5d 0x03 0x98 # H-PLL Control
    i2cset -f -y $1 0x5d 0x07 0x90 # HSYNC Output Width
    i2cset -f -y $1 0x5d 0x0E 0x16 # Sync Control 1 - HSout+ VSout+
    i2cset -f -y $1 0x5d 0x2C 0x80 # ADC Setup

    # embedded sync setup
    i2cset -f -y $1 0x5d 0x40 0x92 # AVID Start Pixel LSB - 25 + HS + Hbp = 26 + 144 + 232 = 402 pixels --------转16进制192
    i2cset -f -y $1 0x5d 0x41 0x01 # AVID Start Pixel MSB
    i2cset -f -y $1 0x5d 0x42 0x0E # AVID Stop Pixel LSB - AVID Start + Act Pix + 4 = 402 + 1400 + 4 = 1806 pixels ------转16进制70E
    i2cset -f -y $1 0x5d 0x43 0x07 # AVID Stop Pixel MSB
    i2cset -f -y $1 0x5d 0x44 0x03 # VBLK F0 Start Line Offset - 1 line
    i2cset -f -y $1 0x5d 0x45 0x03 # VBLK F1 Start Line Offset
    i2cset -f -y $1 0x5d 0x46 0x27 # VBLK F0 Duration - 50 lines
    i2cset -f -y $1 0x5d 0x47 0x27 # VBLK F1 Duration

    #print all reg
    i2cdump -f -y $1 0x5d


    # Common register settings for 5-wire VGA input
    i2cset -f -y $1 0x5d 0x04 0x00 # H-PLL Phase Select (default), 0 degrees, CKDI, CKDI, DIV2
    i2cset -f -y $1 0x5d 0x05 0x06 # Clamp Start
    i2cset -f -y $1 0x5d 0x06 0x10 # Clamp Width
    i2cset -f -y $1 0x5d 0x0F 0x2E # H-PLL and Clamp Control (default)
    i2cset -f -y $1 0x5d 0x10 0x58 # Sync On Green Threshold, RGB clamp
    i2cset -f -y $1 0x5d 0x11 0x40 # Sync Separator Threshold
    i2cset -f -y $1 0x5d 0x12 0x01 # H-PLL Pre-Coast
    i2cset -f -y $1 0x5d 0x13 0x00 # H-PLL Post-Coast (default)
    i2cset -f -y $1 0x5d 0x19 0x22 # Input Mux Select 1, CH3 selected (VGA connector)
    i2cset -f -y $1 0x5d 0x1A 0xCA # Input Mux Select 2, SOG LPF bypassed, 4.8MHz CLP LPF, EXT REFCLK, HSYNC_A and VSYNC_A selected
    i2cset -f -y $1 0x5d 0x26 0x80 # ALC Enable (default)
    i2cset -f -y $1 0x5d 0x28 0x53 # ALC Filter (default)
    i2cset -f -y $1 0x5d 0x2A 0x87 # Fine Clamp Control, CM offset enabled, fine clamp enabled
    i2cset -f -y $1 0x5d 0x2B 0x00 # Power Control (default), SOG ON
    i2cset -f -y $1 0x5d 0x31 0x18 # ALC Placement
    i2cset -f -y $1 0x5d 0x35 0x00 # VSYNC Alignment
    i2cset -f -y $1 0x5d 0x36 0x00 # Sync Bypass (default)
    i2cset -f -y $1 0x5d 0x3D 0x06 # Line Length Tolerance (Pixel Tolerance)
    i2cset -f -y $1 0x5d 0x3F 0x00 # Video Bandwidth Control (default), maximum B/W selected

    # Common register settings for 20-bit YCbCr 4:2:2 output
    i2cset -f -y $1 0x5d 0x08 0x04 # Blue Fine Gain (default)
    i2cset -f -y $1 0x5d 0x09 0x04 # Green Fine Gain (default) = 256*((876/1024)*1000mV/700mV/1.2 - 1)
    i2cset -f -y $1 0x5d 0x0A 0x04 # Red Fine Gain (default)
    i2cset -f -y $1 0x5d 0x0B 0x90 # Blue Fine Offset MSBs
    i2cset -f -y $1 0x5d 0x0C 0x90 # Green Fine Offset MSBs
    i2cset -f -y $1 0x5d 0x0D 0x90 # Red Fine Offset MSBs
    i2cset -f -y $1 0x5d 0x15 0x43 # Output Formatter, BT.601 coding range, CbCr order, 20-bit 4:2:2 output, embedded syncs enabled
    i2cset -f -y $1 0x5d 0x16 0x11 # MISC Control 1 (default), normal CbCr alignment
    i2cset -f -y $1 0x5d 0x17 0x02 # MISC Control 2, FID output, SOG output disabled, outputs enabled
    i2cset -f -y $1 0x5d 0x18 0x11 # MISC Control 3, CSC enabled, normal FID polarity, data clocked out on falling edge
    i2cset -f -y $1 0x5d 0x21 0x22 # HSOUT Output Start, 39 - 5 = 34 = 22h
    i2cset -f -y $1 0x5d 0x22 0x00 # MISC Control 4, Macrovision stripper
  • 你好,

    能否把通过TVP7002采集到的数据存下来。在PC上看看,确认是采集的问题,还是显示的问题?
  • 不行啊,看不到数据,我这端只能看到我配置的脚本文件,和最终的一个显示状态,中间过程文件都看不到。视频源我都是调整笔记本分辨率输出的,1080P正常,1024*768正常,1280*1024正常,1400*1050不正常显示就是这个状态,还有一个800*600显示也不正常图像会变成这样的显示一小部分,所以感觉是不是我这两种分辨率哪里配置的不对

  • 你好,

    slec029a配置表格里面同一个分辨率针对不同的frame rate有不同的配置,请问你设置的配置和你的电脑输出frame rate一致么?
  • 是一致的,电脑输出的Frame rate都配置成了60Hz,我在表格里也都选择60Hz配置的