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.

DM8168, use tvp7002 capture 1080I YPbpr, the picture have one Column black macroblock.

Other Parts Discussed in Thread: TVP7002, THS8200

Hi all

    I use custom DM8168 board. have one tvp7002 used to capture 1080I60 ypbpr picture.

   I connect the camera to a monitor , seems the picture is ok.

   I store the yuv capture from the captureLink and store the h.264 stream file from the venc. all of them have about 12 column pixels is error.

  

  • Hi ,

    WOuld you pls show me the correct image that from the camera ?

    Are you  talking about the black thread across the image ?   Or the white one in the left side of hte highlighttend area?  

    BR,

    Eason

  • Hi Eason

       Thanks for reply.

       The area in  the red rect is the error black area. the white in the left side is of  yuv player.

       I will show the correct image later, because now the monitor is used by other people..      

  • Hi  Eason

      the right.jpg is the picture show in a monitor. i take this photo by mobilephone.   

     the black_edge.jpg is capture by dm8168 vip0.    

  • OK.... finally I think I understand your question.

    Try the AVID start/stop   registers in TVP7002.

    The value stop-start should not exceed the total active pixel number , otherwise the image might disappear.

    BR,

    Eason

  • Hi Eason

       Can you tell me more obvious how to modify?

       Thank you very much!

  • AVID Start Pixel

    AVID Stop Pixel

    search in datasheet

  • Hi Eason

       I set the AVID start Pixel of addr 0x40-0x41 as 0x0106.  AVID stop pixel as 0x088a. 

       Use the new value ,the left edge of picture have real pixel but a green rect. conver on it  and the right edge of picture have black rect.

  • Hi ,

    an issue image is needed.

    I want to check the register values of TVP7002.  

    Are you refering to http://www.ti.com/lit/zip/slec029   ? 

    And , have you tried other YPbPr video source ?

    BR,

    Eason

  • Hi Eason

      I can't open  http://www.ti.com/lit/zip/slec029.

      I tried other ypbpr camera, all have same problem.   

      my register value and the issue image.

      i change the AVID start pixel and AVID stop pixel, and the right edge didn't have black edge , but still not correct pixel.

      

    static UInt8 gTvp7002Value1080i60EmbSync[] =
    {
    0x89u, /* HPLL_DIVIDER_MSB */
    0x80u, /* HPLL_DIVIDER_LSB */
    0x98u, /* HPLL_CTRL */
    0xA0u, /* HPLL_PHASE_SELECT */
    0x32u, /* CLAMP_START */
    0x20u, /* CLAMP_WIDTH */
    0x60u,//0x20u, /* HSYNC_OUT_WIDTH */
    0x5Bu, /* SYNC_CTRL1 */
    0x01u, /* HPLL_PRE_COAST */
    0x00u, /* HPLL_POST_COAST */
    0x00u, /* MISC_CTRL3 */
    0x00u, /* IN_MUX_SELECT1 */
    0x6Au, /* IN_MUX_SELECT2 */
    0x0Du, /* HSOUT_OUT_START */
    0x00u, /* MISC_CTRL4 */
    0x50u, /* ADC_SETUP */
    0x5Au, /* ALC_PLACEMENT */
    0x00u,//0xF1u, /* AVID_START_PIXEL_LSB */
    0x01u,//0x00u, /* AVID_START_PIXEL_MSB */
    0x80u, /* AVID_STOP_PIXEL_LSB */
    0x08u, /* AVID_STOP_PIXEL_MSB */
    0x02u, /* VBLK_FLD0_START_OFFSET */
    0x02u, /* VBLK_FLD1_START_OFFSET */
    0x16u, /* VBLK_FLD0_DURATION */
    0x17u, /* VBLK_FLD1_DURATION */
    0x00u, /* FBIT_FLD0_START_OFFSET */
    0x00u /* FBIT_FLD1_START_OFFSET */
    };

  • 3683.slec029a.zip

    That is the content of the link.

    You can extract it and compare the register setting in under C:\work\TVP\TVP7002 misc all\TVP7002and5\SLEC029A_tvp7002_ths8200_evm_setups\tvp7002_ths8200_YPbPr_to_YCbCr_422_ES_to_YPbPr

    File   TVP7002_YPbPr_to_YCbCr_422_ES_common.inc and   TVP7002_THS8200_YPbPr_to_YCbCr_422_ES_to_YPbPr.cmd

    I assume you are using the YUV 16bit Embedded Sync interfacing w/ DM8168.

    BR,

    Eason

  • Hi Eason

      I've checked the content of TVP7002_THS8200_YPbPr_to_YCbCr_422_ES_to_YPbPr.cmd,     no command for 1080i60.

  • You can refer to 1080i30 settings.  I doubt it is a typo anyway.

    I want to know where is your setting come from.   

    The settings should come from slec029a, it is for standard signal