Forum Discussion

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

Output VGA with DE2

Hi all,

I'm having a problem with my project, i need to output a video on a LCD screen from the DE2 board.

My source video is an interlaced PAL signal.

My system is actually a pipeline that converts the video format:

4:2:2 interlaced => 4:4:4 progressive

720X566 => 640X480.

My problem is that the video that i'm reciving on the screen is scrambled:

only one third of the screen have a runing video on it, the other two thirds are blue and flickring.

I'm pretty sure is got something to do with my timing, but i really don't know

from where to start.

This is how my screen looks like:

https://www.alteraforum.com/forum/attachment.php?attachmentid=2664

My project QAR:

https://www.alteraforum.com/forum/attachment.php?attachmentid=2665

Thanks a lot!

9 Replies

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

    I had the same problem, using an NTSC imput it worked well.

    How did you configure the on-board ADV converter?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Phate,

    I was hoping that you were the one how will answer me, according to your qustions on this forum it seems like i'm doing the same project as you were doing.

    First i would like to ask if you finally make it work?

    I configure the ADV via the I2C bus, i took the standard configuration file from the Altera DE2_TV demo:

    https://www.alteraforum.com/forum/attachment.php?attachmentid=2666

    As i understand this gives an auto fromat detection.

    I realy could use any help, i really appreciate if you will send me your email on private.

    Thanks again.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    First check your camera's working by using DE2 demonstrations programs in the Altera CD attached with the board by the name of DE2_TV. Hopes it works.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Phate,

    I was hoping that you were the one how will answer me, according to your qustions on this forum it seems like i'm doing the same project as you were doing.

    First i would like to ask if you finally make it work?

    I configure the ADV via the I2C bus, i took the standard configuration file from the Altera DE2_TV demo:

    https://www.alteraforum.com/forum/attachment.php?attachmentid=2666

    As i understand this gives an auto fromat detection.

    I realy could use any help, i really appreciate if you will send me your email on private.

    Thanks again.

    --- Quote End ---

    Well, I made it work, but only with NTSC. I didn't try again to detect PAL format because I lost lots of time and I was a little hurry.

    Reading ADV datasheet, it seems that "altera audio and video config" configures ADV registers to autodetect both NTSC or PAL format.

    BUT any of the registers the ip core writes on the ADV seems to be a little differents from the settings that are given in the data sheet.

    I would try to config the ADV trough an I2C (taken form the an427, or from opencores.org) and using the nios proc to write correct values to the ADV.

    Well, I am not going to do it now, but maybe next week I'll try that.

    I don't know if this is going to work or not, it seems strange to me that with NTSC the video ip works and with PAL not.

    Because Altera tests wry well the ip cores is going to seel, i don't think is a matter of the video ips.

    just my two cents.

    Best Regards

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

    I tried to run the DE2_TV (version 2 for PCB v2) from terasic site.

    All i'm reciving is a black screen.

    Now i really could use some help.

    Could some one send a QAR of a 100% working project?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    check FPS and aspect ratio of your camera. May be it is creating trouble

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

    --- Quote Start ---

    I tried to run the DE2_TV (version 2 for PCB v2) from terasic site.

    All i'm reciving is a black screen.

    Now i really could use some help.

    Could some one send a QAR of a 100% working project?

    --- Quote End ---

    remember that DE2_TV example works only with NTSC, 4:3.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Good news, i managed to make the DE2_TV project work( probably a wrong NTSC signal).

    With the same signal i modified my project to NTSC and it's working now:D .

    Thanks a lot for your help, but i'm still curious about the PAL issue.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I still belive that the ADV auto detect configuration is wrong, and that we need to configure with the rigth signals the converter..