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.

SD Component Video

Other Parts Discussed in Thread: TVP7002, THS7353, THS7303

I am trying to pass thru SD 480i component video on the dm365 evm board.

I have set the PLL to 27 MHz.

The CPLD to TVP7002

The THS7353 to MODE_SDTV_480i

The TVP7002 to MODE_SDTV_480i

The THS7303 to MODE_SDTV_480i

The vpfe width = 720, height = 480

The vpbe as:

  basep_x = 122;
  basep_y = 18;
  width   = 720;
  height  = 480;

VDAC_CONFIG         = 0x081141CF;   // Take DACs out of power down mode
VPSS_CLKCTL         = 0x00000018;   // Enable DAC and VENC clock, both at 27 MHz
VPSS_VPBE_CLK_CTRL  = 0x00000011;   // Select enc_clk*1, turn on VPBE clk
VENC_CLKCTL         = 0x00000001;   // Enable venc & digital LCD clock

OSD_BASEPX     = basep_x;
OSD_BASEPY     = basep_y;
OSD_VIDWIN0XP  = 0;
OSD_VIDWIN0YP  = 0;
OSD_VIDWIN0XL  = width;
OSD_VIDWIN0YL  = height >> 1;

VENC_VMOD   = 0x1003;
VENC_VDPRO  = 0x0000;   // Normal mode, not colorbars
VENC_DACTST = 0x0000;   // Power on DACs
VENC_DACSEL = 0x0543;   // Component out on DACs

I have also tried 0x0003 and 0x0001 for VENC_VMOD

I get nothing out of the board.

The documentation does seem to indicate that it should handle component SD.

The VMOD register is not clear on how to set it for component SD.

Any advice is welcome.

Thanks,

Sam

 

  • Hi,

    It seems you are using vpbe internal dac to do component output, and this is supported.

    I'd first make sure DM365 VPBE display works. You can use the dm365 spectrum digital color bar testcase and simply modify DACSEL register. When you get display working, then add the capture side.

    please let me know whether you can 1)get spectrum digital color bar to work 2) whether you can get the same testcase to output component.

     

  • Thanks Paul,

    I have run the Spectrum Digital SD color bars program and I get bars at the composite output.

    If I change only the VENC_DACSEL to 0x0543 I get nothing at the component output and wide gray bars at the composite output.

    I have tried hardwiring the component video to the monitor so I know my equipment is working

    Do I need to change any other registers?

    SV

     

  • I changed VENC_DACSEL to 0x0345 and now I get what looks like the Y signal on the composite output jack.  I looked at the three component outputs with the CVBS monitor and there is nothing there at all.

     

     

  • Also... I noticed that the component outputs are tied to the THS7303 device.  Do I need to configure that?

     

  • This is what I did:

    Added the ths7303_setup() function passing MODE_SDTV_480I

    Set VDAC_CONFIG to: 0x081141EF

    Set VENC_DACSEL to: 0x00000543

     

    Works like a champ.

     

    Thanks for guiding me in the right direction.

     

    Sam V

     

  • Thanks for the update Sam. I wasn't aware that we need to programmable the amplifier in this case. It's good for all of us to know. We didn't have a programmable amplifier for our other devices.

     

    Thanks again.

  • Of course that only takes care of the output.

    I still don't get good loopthru of component.

    I get a squeezed purple and green bars when I use the component input.

    I've tried changing some of the settings in the tvp7002 setup and also the ISIF setup but nothing helped.

    I don't know where else to fiddle.

     

    SV

     

  • Success.

    I have passed SD Component thru the board.

    Besides the configurations already mentioned above, I had to set ISIF_MODSET to 0x1F84 (The F is is what was in the sample but I think the datasheet says it should be 0)

    I also set ISIF_CCDCFG to 0x0000

    The rest of the settings are what was in the vpfe_init() function in the Spectrum Digital composite loopthru example.

     

    SV