We are currently using an ADV7181D to decode VGA (640 x 480 @60Hz) to 8 bit YUV 422.But there is no register
configuration in the script you provided.So I want to ask you something:
1、Does it support doing that to decode VGA (640 x 480 @60Hz) to 8 bit YUV 422.
2、If yes,could you provide such a script.
Hi,
Yes,there is no configuration script available for VGA to YUV 422 . But you can configure 8bit YUV 422 in register 0x03(OF_SEL) . It allow the user to choose different output format in 8bit,10bit,16bit,20bit in YUV 422.
Thanks,
Poornima
Please try below configuration for VGA input to 8bit YUV 422.
42 05 02 ; Prim_Mode =010b for GR42 06 08 ; VID_STD=1000b for 640x480 @ 6042 C3 31 ; ADC1 to Ain5 (R), ADC0 to Ain2 (G),42 C4 F2 ; ADC2 to Ain3 (B), enables manual override of mux, use SOG42 1D 47 ; Enable 28MHz Crystal42 3A 11 ; set latch clock settings to 001b, Power Down ADC342 3B 81 ; Enable Internal Bias42 3C 5C ; PLL_QPUMP to 100b42 6A 00 ; DLL Phase Adjust//42 6B 84 ; Enable DE output, swap Pr& Pb//42 C9 08 ; Set DDR_EN42 73 90 ; Set man_gain//42 7B 1D ; TURN OFF EAV & SAV CODES Set BLANK_RGB_SEL42 03 0C ; 8 Bit Mode - Added42 85 03 ; Enable DS_OUT42 86 0B ; Enable stdi_line_count_mode42 8A 90 ; VCO Range to 00b42 F4 3F ; Max Drive Strength42 0E 80 ; ADI Recommended Setting42 52 46 ; ADI Recommended Setting42 54 80 ; ADI Recommended Setting42 0E 00 ; ADI Recommended Setting42 52 80 ; ADI Recommended Setting42 57 08 ; ADI Recommended Setting42 5B 00 ; ADI Recommended Setting42 5C 01 ; ADI Recommended Setting42 62 20 ; ADI Recommended Setting42 63 00 ; ADI Recommended Setting42 67 03 ; ADI Recommended Setting42 68 01 ; ADI Recommended Setting
First of all, thanks for your reply!
I tried this configuration on my device.Unfortunately, the effect was not what I expected.
This picture is the effect that I used this configuration, but no VGA signal was connected.And whether you connect the signal or not, that's the state.
Here we don't have adv7181D eval board to verify. I commented some configuration for VGA input to YUV 422. Please let me know,why VGA signal was not connected?
I'm sorry, I didn't make myself clear. What I mean is that the VGA signal input has no influence on the output signal of ADV7181D.We know that when CVBS signal is collected, when CVBS signal is not connected, the output of ADV7181D shows a blue screen.But whether the VGA signal is input or not, the phenomenon displayed is the above picture.
Please let us know your Tx(DAC). And also try with below configuration.
42 05 02 ; Prim_Mode =010b for GR42 06 08 ; VID_STD=1000b for 640x480 @ 6042 C3 31 ; ADC1 to Ain5 (R), ADC0 to Ain2 (G),42 C4 F2 ; ADC2 to Ain3 (B), enables manual override of mux, use SOG42 1D 47 ; Enable 28MHz Crystal42 3A 11 ; set latch clock settings to 001b, Power Down ADC342 3B 81 ; Enable Internal Bias42 3C 5C ; PLL_QPUMP to 100b42 6A 00 ; DLL Phase Adjust42 6B 83 ; Enable DE output, swap Pr& Pb42 C9 08 ; Set DDR_EN42 73 90 ; Set man_gain42 7B 1D ; TURN OFF EAV & SAV CODES Set BLANK_RGB_SEL42 85 03 ; Enable DS_OUT42 86 0B ; Enable stdi_line_count_mode42 0C 36 ;DEF_VAL_AUTO_EN bit set to high when ADV7181D lost lock.42 8A 90 ; VCO Range to 00b42 F4 3F ; Max Drive Strength42 0E 80 ; ADI Recommended Setting42 52 46 ; ADI Recommended Setting42 54 80 ; ADI Recommended Setting42 0E 00 ; ADI Recommended Setting42 52 80 ; ADI Recommended Setting42 57 08 ; ADI Recommended Setting42 5B 00 ; ADI Recommended Setting42 5C 01 ; ADI Recommended Setting42 62 20 ; ADI Recommended Setting42 63 00 ; ADI Recommended Setting42 67 03 ; ADI Recommended Setting42 68 01 ; ADI Recommended Setting
When we collect CVBS signals, the configuration script provided by you is "AUTODETECT CVBS IN NTSC/PAL/SECAM, 8-Bit 422 encoder".This is the CVBS signal that we connected to the camera, which is displayed, and the effect is quite good.
Of course, I also compared these two scripts and found the differences in registers 0x6b, 0xc9 and 0x7b, and I found that our MCU could not collect the data output of ADV7181 when configuring the 0x7b register.
When we do not configure register 0X7B, the effect is the same as the configuration script you provided last time,Our MCU can collect some data, as shown in the figure below, but the VGA signal input has no impact on the signal output of ADV7181D.
After configuring this "42 0C 36 ;DEF_VAL_AUTO_EN bit set to high when ADV7181D lost lock". You could able to get the freerun output ?
And also please let us know your Tx(DAC -Encoder)?
Below thread seems they could get the 16bit 422 from VGA input,the same only we did for 8bit 422 by changing 0x6B register. Please crosscheck
https://ez.analog.com/video/f/q-a/10184/adv7181d-vga-decoding-to-16-bit-yuv422