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.

Question about the vpfe configuration of the "video_loopback" example in the EVMDM6437

Other Parts Discussed in Thread: TVP5158

Hi, all

In the EVMDM6437 example "video_loopback",  in the function "static void vpfe_init( Uint32 ntsc_pal_mode )":

    /*
     *  sph = 1, nph = 1440, according to page 32-33 of the CCDC spec
     *  for BT.656 mode, this setting captures only the 720x480 of the
     *  active NTSV video window
     */
    VPFE_CCDC_HORZ_INFO = width << 1;   // Horizontal lines
    VPFE_CCDC_HSIZE_OFF = width << 1;   // Horizontal line offset
    VPFE_CCDC_VERT_START = 0;           // Vertical start line
    VPFE_CCDC_VERT_LINES = height >> 1; // Vertical lines

according to the SPRU977A page 129 and the above "sph = 1, nph = 1440",   the configuration should be VPFE_CCDC_HORZ_INFO = 1<<16 + width << 1, if XY code in the SAV/EAV is not outputed by CCD controller. why VPFE_CCDC_HORZ_INFO is configed as width << 1 instead of  1<<16 + width << 1 if only active pixels are outputed?

Now, i want to ccd controller to output the XY code and stard code coming from tvp5158,  from which 2Ch video is multiplexed by line interleaved mode. how should i config the VPFE_CCDC_HORZ_INFO, VPFE_CCDC_HSIZE_OFF,  VPFE_CCDC_VERT_START  and VPFE_CCDC_VERT_LINES ?

thanks.

Guishanjun