Altera_Forum
Honored Contributor
15 years agoCVO and PAL - How?
Hi all,
I am trying to generate a PAL video output using the VIP suite. At the moment my device (A cyclone 2c35) only has the test pattern generator and the clocked video output. I have to use seperate sync signals to drive my DAC (its the same as used on the lancelot board) and no matter what I do I can't get a decent signal out. It keeps 'losing' half the vsync pulses. Firstly I have set the test pattern generator to generate 720x576 interlace. I assume this is correct for PAL? the documentation is a bit poor when it comes to interlace so I'm not sure if this is supposed to be set to 576 or 288?? Also is there any way to change the pattern beyond bars or a plain colour? - both are pretty useless when you are trying to fix vsync problems! :) Secondly I have set the CVO to the 'PAL' preset with seperate sync wires turned on. Now I can understand how to set 'Horizontal sync' etc. which are helpfully set to zero ;) (these are derived from the 13.5Mhz pixel clock I feed the IP) but I simply can't get my head around how the "active picture line" "F rising/falling edge line" and "vertical blanking rising edge line" are interrelated - it seems random. No matter how I fiddle with these settings I can't get a nice 50Hz interlace signal out. I always end up with half the vsync pulses missing (even though the F signal toggles) or fields which are nowhere near 50Hz. The active picture line is only correct for the very first field so this is telling me that *somthing* is wrong like I'm feeding it with active video fields that are too big and its spilling over into the next field. Its almost like its trying to generate a 60Hz output.... If I try changing the active picture line or other F edge parameters it typically kills Vsync totally. So can anyone out there tell me some settings to generate a 720x576i output from the CVO? My current settings are as follows (with a 13.5Mhz pixel clock and a 100MHz 'system' clock driving the IP ) Preset conversion: PAL Image width: 720 Image height: 576 Bits per pixel per colour plane:8 Number of planes: 3 Colour plane transmission format: Parrallel Interlaced video box: Ticked (on) Pixel fifo size: 720 Fifo level at which to start output: 719 Video in out use same clock? : NO Use control port?: NO Sync signals: on seperate wires Active picture line: 23 (I am using V9.1 sp2 IP so this box works) Field 1 parameters: Horizontal sync: 63pixels (63 x 74nS = ~4.7uS) H front porch: 22 pixels (~1.6uS) H back porch: 76 pixels (~5.6uS) Vertical sync: 5 lines Vertical front porch:6 lines Vertical back porch: 5 lines Field 0 parameters: F rising edge line: 313 F falling edge line: 1 Vertical blanking edge line: 311 Vertical sync: 5 lines Vertical front porch: 5 lines Vertical back porch: 4 lines But this gives me an output missing half its vsync pulses! Any suggestions most welcome! Cheers, Tom