ADV7182A Init and strange images

Hi,

My custom board has ADV7182 to get images from two cameras and decode to my microcontroller. I've configured by I2C the init in "Free Run Mode" and in "Colors Bar Mode". In free run mode I could see that the images showed in LCD has relation to camera movements, but fully abstract. In colors bar mode I could see some pixels coloured, but without synchronization.

This I could get.

I followed the instructions from "5340.ADV7182RSD_revC" and "ADV7182CUST-VER.5.0.txt".

Any suggestion?

Thanks.

Parents
  • 0
    •  Analog Employees 
    on Aug 14, 2019 11:48 AM

    Hi,

     Please make sure this from your side - ADV7182 requires a 28.63636 MHz clock input in order to operate correctly. This clock input can be supplied from either an external crystal or an external oscillator device.

     Could you please share your register dump?

    Note: When the DEF_VAL_ AUTO_EN bit is 0, the ADV7182 outputs noise if it cannot decode the input video. It is recommended that the user keep DEF_VAL_AUTO_EN set to 1. And also crosscheck with below things,

     

    Thanks,

    Poornima

  • Hi ,

    Thanks for reply. The external crystal is ok, when I send (0x13,0x00) to enable external 28.63636MHz I checked with osciloscope and is oscillating.

    My registers init you can find below:

      ADV7182_Write(0x0F, 0x80);			/* Resets device */
      Delay_ms(20);
      ADV7182_Write(0x0F, 0x00);			/* Exit Power Down Mode */
      ADV7182_Write(0x13, 0x00);			/* Select 28.63636 MHz Clock Input */
      ADV7182_Write(0x52, 0xCD);			/* Set optimized IBIAS for AFE in Single Ended CVBS Format */
    
      /* Set for Free Run mode */
      ADV7182_Write(0x00, 0x05);				/* Select AIN1 as INPUT */
      ADV7182_Write(0x0C, 0x37);
      ADV7182_Write(0x14, 0x10);
      ADV7182_Write(0x02, 0x84);
    
      /* ADI Steps */
      ADV7182_Write(0x0E, 0x80);				/* ADI Required Write; Reset Current Clamp Circuitry (step 1) */
      ADV7182_Write(0x9C, 0x00);				/* ADI Required Write; Reset Current Clamp Circuitry (step 2) */
      ADV7182_Write(0x9C, 0xFF);				/* ADI Required Write; Reset Current Clamp Circuitry (step 3) */
      ADV7182_Write(0x0E, 0x00);				/* ADI Required Write; Reset Current Clamp Circuitry (step 4) */
    
      /* Fast Switch Mode was skipped */
    
      ADV7182_Write(0x17, 0x41	);				/* Select SH1 Chroma Shaping Filter */
      ADV7182_Write(0x03, 0x0C);				/* Enable Pixel & Sync output drivers */
      ADV7182_Write(0x04, 0x07);				/* Power-up INTRQ, HS and VS/FIELD/SFL pad */
      ADV7182_Write(0x1D, 0x40);				/* Enable LLC Output Driver */

    This configuration is to show a Blue screen to eliminate camera variable, so testing ADV7182 -> microcontroller -> TFT.

    About DEF_VAL_ AUTO_EN I kept the value set.

    Thanks.

Reply
  • Hi ,

    Thanks for reply. The external crystal is ok, when I send (0x13,0x00) to enable external 28.63636MHz I checked with osciloscope and is oscillating.

    My registers init you can find below:

      ADV7182_Write(0x0F, 0x80);			/* Resets device */
      Delay_ms(20);
      ADV7182_Write(0x0F, 0x00);			/* Exit Power Down Mode */
      ADV7182_Write(0x13, 0x00);			/* Select 28.63636 MHz Clock Input */
      ADV7182_Write(0x52, 0xCD);			/* Set optimized IBIAS for AFE in Single Ended CVBS Format */
    
      /* Set for Free Run mode */
      ADV7182_Write(0x00, 0x05);				/* Select AIN1 as INPUT */
      ADV7182_Write(0x0C, 0x37);
      ADV7182_Write(0x14, 0x10);
      ADV7182_Write(0x02, 0x84);
    
      /* ADI Steps */
      ADV7182_Write(0x0E, 0x80);				/* ADI Required Write; Reset Current Clamp Circuitry (step 1) */
      ADV7182_Write(0x9C, 0x00);				/* ADI Required Write; Reset Current Clamp Circuitry (step 2) */
      ADV7182_Write(0x9C, 0xFF);				/* ADI Required Write; Reset Current Clamp Circuitry (step 3) */
      ADV7182_Write(0x0E, 0x00);				/* ADI Required Write; Reset Current Clamp Circuitry (step 4) */
    
      /* Fast Switch Mode was skipped */
    
      ADV7182_Write(0x17, 0x41	);				/* Select SH1 Chroma Shaping Filter */
      ADV7182_Write(0x03, 0x0C);				/* Enable Pixel & Sync output drivers */
      ADV7182_Write(0x04, 0x07);				/* Power-up INTRQ, HS and VS/FIELD/SFL pad */
      ADV7182_Write(0x1D, 0x40);				/* Enable LLC Output Driver */

    This configuration is to show a Blue screen to eliminate camera variable, so testing ADV7182 -> microcontroller -> TFT.

    About DEF_VAL_ AUTO_EN I kept the value set.

    Thanks.

Children