ADV7180

Hello

I am  using ADV7180 in a video capture project.

My cammera`s output is PAL 720*544 which  i want to connect  to ADV7180.

I connect ADV7180 chip  to Xilinx Spartan3 FPGA and  program its registers via I2C.

i have a problem when i connect my cammera to ADV7180.

the problem is that  when  i check stus register 0x10 data,  Fsc lock bit some times is high and some times is low.,  means not locked.

alos  when i reset chip via I2C ,  teh chip stays at reset state and does not work  more.

please help me how can i check that my cammera`s video is detected by ADV7180 correctly or not.( I have  not video encoder)

Thanks.

  • 0
    •  Analog Employees 
    on Sep 12, 2011 2:08 PM

    Hi Aydin,

    Answers below in red:


    My cammera`s output is PAL 720*544 which  i want to connect  to ADV7180.

    720*544 are you sure this is correct? PAL is normally 720 active pixels * 576 active lines. This could be a problem.

    I connect ADV7180 chip  to Xilinx Spartan3 FPGA and  program its registers via I2C.

    What writes are you using?

    i have a problem when i connect my cammera to ADV7180.

    the  problem is that  when  i check stus register 0x10 data,  Fsc lock bit  some times is high and some times is low.,  means not locked.

    If you have a valid PAL input and the part programmed then this should not be happenning. One of the first two things might fix this.

    alos  when i reset chip via I2C ,  teh chip stays at reset state and does not work  more.

    The chip will continue to work, the problem is the software. The ADV7180 when reset via I2C resets the I2C state machine before it can send and ACK so the software hangs waiting for this ACK that will never come. If the software ignores the ACK then it can begin to reprogram the ADV7180.

    please help me how can i check that my cammera`s video is detected by ADV7180 correctly or not.( I have  not video encoder)

    In order to rule the camera out as a problem, connect a DVD player to the ADV7180 and see does it work.

    Regards,
    Mike
  • Hello Mike  and thanks for  your answer,

    according to answer i should say that:

    1) i have been used SAA7110 chip from Philips Semincondauctor for my project , and i did not have problem with my camera.

    Also  when i connect my camera to a display directly, i can see video on display and display detects a PAL video( PAL Led is turned on).

    2) Now  i want to use ADV7180.

    I program ADV7180 registers as you can  find valuse in the attached file.

    When I program the x00 register as x00 (Autodetect mode)  and  i check  status registers , i find:

    in Reg x10:  bit(0) = 1 ,bit(1) = 0 ,bit(2) = 0 ,bit(3) = 1 ,bit(4) = 0 ,bit(5) = 1 ,bit(6) = 1 ,bit(7) = 0

    in Reg x12:  bit(0) = 0 ,bit(1) = 0 ,bit(2) = 0 ,bit(3) = 0 ,bit(4) = 1 ,bit(5) = 0 ,bit(6) = 0 ,bit(7) = 0

    But

    When I program the x00 register as x90 (PAL N mode)  and  i check  status registers , i find:

    in Reg x10:  bit(0) = 1 ,bit(1) = 0 ,bit(2) = (0 or 1) ,bit(3) = 1 ,bit(4) = 0 ,bit(5) = 1 ,bit(6) = 1 ,bit(7) = 0

    in Reg x12:  bit(0) = 0 ,bit(1) = 0 ,bit(2) = 0 ,bit(3) = 0 ,bit(4) = 1 ,bit(5) = 0 ,bit(6) = 0 ,bit(7) = 0

    I am looking forward your help

    Thanks

  • 0
    •  Analog Employees 
    on Sep 13, 2011 8:33 PM

    Hi Aydin,

    From your file it appears that you write the default value to each register expect for 3 registers:


    00 90* PAL N = PAL B/G/H/I/D (with pedestal).

    04 40* BT.656 and deocde and output colour.

    2D A4* written to two reserved bits. Would write F4 here instead.

    These writes alone are not sufficient to program the ADV7180 correctly.

    Please see page 107 of the Rev F datasheet for example scripts.

    You have to program at a minimum

    3D A2 MWE enable manual window, color kill threshold to 2
    3E 6A BLM optimization
    3F A0 BGB optimization
    0E 80 Hidden space
    55 81 ADC configuration
    0E 00 User space

    Regards,

    Mike

  • Hi

    i programed these registers,  but there is no difference.

    steel not working.

    But i found a new question, and  it is that in the datasheet(rev F) registers x55 and x3E and x3F not mentioned,

    so i could not find a task  of these registers.

    thanks

  • 0
    •  Analog Employees 
    on Sep 18, 2011 7:46 PM

    Hi Aydin,

    Those registers optimise the ADV7180 and the values were determined during the evaluation of the ADV7180.

    They must be programmed when using the ADV7180.

    Regards,

    Mike