Post Go back to editing

Configuration of ADV7403 for Stanag class B as input and 20 bit YUV422 as output

Category: Software
Product Number: ADV7403

Hi ADI,

Can you provide the procedure to configure the ADV7403 for stanag 3350 class B as input and 20-bit YUV422 as output?

Thank you in advance,

With regards
Rashmika

  • Hi,

      Please refer configuration table from Page306 at "ADV7403_Manual_RevB.pdf"

      STANAG Class B belongs to '625i(PAL)' component analog RGB signal so kindly configure '0x00','0xC3','0xC4' for YPbPr selection and also crosscheck '0x03' register configuration for 20-bit YUV422 output.

      Reference link (+) ADV7403 Design Support Files - Documents - Video - EngineerZone

    Thanks,

    Poornima S  

  • Hi Poornima,

    Do we have to configure color space converter registers? Because we are converting RGB to YUV422 20 bit(ycbcr) andif yes,  how to do it?

    Thanks,

    Rashmka Thota

  • Hi,

       Please configure CSC registers from 0x52 to 0x66 for RGB IN to YPbPr OUT. Kindly refer below snap for reference.

        And configure '0x6B' register as '0xC1' for '20 bit 422 output'

    Thanks,

    Poornima S

  • Hi Poornima
    We are using the following requirement for configuration of ADV7403

    I/P video - STANAG 3350 with Sync on Green input to chip, interlaced video input (Class B)
    O/P video - 20 Bit YCbCr, BT656 format as output from the chip

    For hardware connection we are using a custom hardware who's input configuration for RGsB is
    Ain 1 - G and SOG
    Ain 2 - B
    Ain 3 - R

    We are observing an issue with the video output colors. When a red color is given as input with overlay 'R', the display shows pink instead of red. Similarly, when blue or green is provided as input, the display appears dark greenish in color. Additionally, a horizontal pink lines are visible on the screen, which flickers and changes it position
    The register configuration we are currently using is attached below. Based on this configuration, we were expecting the output colors to accurately match the input colors (i.e., red → red, blue → blue, and green → green), but that is not the behavior we are seeing.

    Additionally, when no input is connected, we expect the display to show a black background with the programmed letter "R". However, the background is appearing green instead. We would appreciate any insights into whether this behavior could also be related to the current register configuration or if there are any additional settings that should be verified.

     

    Could you kindly review the register configuration and let us know if any registers appear to be incorrectly configured or if there are any additional registers or settings that should be configured to achieve the expected output?

     

    :STANAG 3350, 20-Bit YCbCr 422 out:
    42 03 04 ; Output control 
    42 04 44 ; //EXTENDED OUTPUT CONTROL
    42 05 01 ; PRIMARY MODE (Component video for STANAG 3350)
    42 06 01 ; VIDEO STANDARD (625i 2x2(1440x576))
    42 1D 47 ; ADI Control 2 Enable 28.6363636 Mhz Crystal
    42 3A 10 ; Set latch clock and ALL ADC are ON
    42 3B 80 ; //Enable External Bias
    42 3E 6A ; //BLM Optimization
    42 3F A0 ; //BGB Optimization
    42 4D EE ; //Disable CTI
    42 67 01 ; Format 422
    42 85 18 ; //CP DETECTION CONTROL 1
    42 86 0B ; Enable STDI Line Count Mode
    42 93 78 ; // Clamp optimization
    42 94 23 ; // Clamp optimization
    42 95 11 ; // Clamp optimization
    42 96 C0 ; // Clamp optimization
    42 C5 00 ; // Clamp Mode 0 for FB HC based
    42 ED C4 ; // Enable Static Switching Mode and Select RGB Input
    42 F3 0F ; // Enable Anti Alias Filter on all ADCs
    42 0E 80 ; ADI Recommended Sequence
    42 52 46 ; ADI Recommended Sequence
    42 54 00 ; ADI Recommended Sequence
    42 7F FF ; ADI Recommended Sequence
    42 81 30 ; ADI Recommended Sequence
    42 90 C9 ; ADI Recommended Sequence
    42 91 40 ; ADI Recommended Sequence
    42 92 3C ; ADI Recommended Sequence
    42 93 CA ; ADI Recommended Sequence
    42 94 D5 ; ADI Recommended Sequence
    42 B6 08 ; ADI Recommended Sequence
    42 C0 9A ; ADI Recommended Sequence
    42 CF 50 ; ADI Recommended Sequence
    42 D0 4E ; ADI Recommended Sequence
    42 D1 B9 ; ADI Recommended Sequence
    42 D6 DD ; ADI Recommended Sequence
    42 D7 E2 ; ADI Recommended Sequence
    42 E5 51 ; ADI Recommended Sequence
    42 0E 00 ; ADI Recommended Sequence
    42 C3 31 ; ADC SWITCH 1 Manual Muxing for AIN1 on ADC0 | AIN3 on ADC1
    42 C4 C2 ; ADC SWITCH 2 Manual muxing for AIN2 on ADC2 | SOG enable
    42 6B C1 ; CP Output Selection (20 bit YUV)
    42 52 00 ; Conversion from RGB --> YPbPr
    42 53 00 ; CSC start
    42 54 07 ; CSC Register
    42 55 0C ; CSC Register
    42 56 99 ; CSC Register 
    42 57 A9 ; CSC Register
    42 58 71 ; CSC Register
    42 59 08 ; CSC Register
    42 5A 00 ; CSC Register
    42 5B 20 ; CSC Register
    42 5C A7 ; CSC Register
    42 5D A9 ; CSC Register
    42 5E 1A ; CSC Register
    42 5F 8F ; CSC Register
    42 60 08 ; CSC Register
    42 61 00 ; CSC Register
    42 62 7A ; CSC Register
    42 63 E1 ; CSC Register
    42 64 05 ; CSC Register
    42 65 39 ; CSC Register
    42 66 1F ; CSC End


    1st image represents is the output when red color is given as input 

    2nd image represents when green or blue color is given as input

    Regards

    Rashmika Thota

  • Hi,

    Please configure the registers listed below and check whether we are able to get the free run output ? 

    42 BF 06 ; Blue Screen Free Run color
    42 C0 00 ; Blue Screen Free Run color
    42 C1 87 ; Blue Screen Free Run color
    42 C2 00 ; Blue Screen Free Run color

    Also, please note that the ADV7403 part is not recommended for new designs.

    Thanks,

    Poornima S

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.