Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

PAL Clocked Video Out with Embedded Sync

Hi,

I am trying to get a PAL output form the clocked video out core using embedded sync. This is supposed to be fairly straight forward, but for some reason I just cannot get it to work. My setup is as follows:

Test Pattern Generator -> Clocked Video Output.

The SOPC system clock is 50MHz and the video output clock 27MHz. I have setup the TPG with the following parameters:

Frame Width: 720

Frame Height: 576

Data Width: 8 bits

Interlaced (F0 first)

4:2:2 colour bars with colour planes in seqeunce.

I have setup the CVO with the following parameters:

I have loaded the PAL preset and changed the bits per colour plane to 8-bits. Apart from that I have not changed anything.

What I see is that my TV cannot sync to the image. I have looked the embedded sync codes (F,V and H) and found that the F field is not toggling as expected 50 times per second. It is high for two consecutive fields (going low only during the vertical blanking period) and then low for one field, then high for two fields and low for one field again. I monitor the FIFO UF and it never underflows. This is about as simple a system as is possible! I have also generated the BT.656 stream with a simple state machine to check my video encoder, and it works. So the problem must lie within the FPGA.

The embedded syncs are obviously created incorrectly and there must be some parameter that I have set incorrectly. Anyone who has been a working PAL with embedded syncs that can shed some light?

Thanks!

Niki

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Jake,

    Yes, the test pattern generator is setup to output an interlaced frame. I am not 100% sure if the I need to divide the framwe height by 2 (i.e. 288 instead of 576).

    Also, on the CVO, I am not sure if I should divide the frame height by 2. The default parameters for PAL does not, so I assume it is not required.

    Regards,

    Niki
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I have since tried the same with the CVO set to NTSC and the TPG set to output 720 by 488 interlaced frames, and this works perfectly. So I am still not sure why PAL is not working.

    Regards,

    Niki