How can I do it? I could not find correct vid_std setting from Table 2 of ADV7850 HW manual Rev A.
I'd look at using script 7-1a or 7-1b for the 7850. It sets it up the chip for UXGA60 which is close enough to work with 1080p60. You can try setting PRIM_MODE = 5 (HDMI-COMP) and VID_STD = 1E, (1080p). Running in either graphics for component mode should work, just watch your color space.
Thank you for advise. By setting PRIM_MOD=5 and VID_STD=1E, it works. But the color have a purple tint while overall color looks correct. Do you have any idea?
In addition, the 7-1a and 7-1b scripts are for UXGA format and what value we should use for VID_STD?
I was unable to force the 7850 to do purple tint, especially since you say the color is right, just with a purple tint. So I can't blame it on the wrong color space. Normally I'd say this was a stuck bit on the green bus but the bus is internal on this part. Is it possible there's a stuck bit down stream?
I'm a colleague of rqiu. Actually what we've done is set PRIM_MODE=1 for Component Video (setting it to 5 doesn't work as it doesn't go through CP block) and VID_STD=1E for 1080p. Also we set INP_COLOR_SPACE=1 to indicate that input is RGB, and set RGB_OUT=1 (Hence register A0 02 is set to 0x12). All other configuration is left unchanged from the way we are currently doing other RGB formats like SVGA, etc. With this configuration red and blue channels appear correct, but green channel is wrong (pure green colors appear white/gray scale).
If we set register A0 02 to 0x14 (disable RGB_OUT). We get an overall purple tint. Here basically black appears purple, and only pure white seems to be free of a purple tint.
I might have misunderstood, you want to do analog component VGA at 1080p resolution comprised of RGB, not YCbCr.
If so have you tried script 7-1b?
Also if this is analog RGB coming in. You may have a mismatch in input signal or impedance problems.
I've tried script 7-1b and it doesn't work. We want to support 1080p RGB formats using the VGA input of 7850 (PC/laptops are the usual sources). I don't think there are any impedance issues since we are feeding standing VGA formats to the VGA port. To me the color artefcats seem to be caused by colorspace conversion issues.
Make sure VFE INP_COLOR_SPACE = 0x1; full RGB range. If it is =0x4 black will appear purple
Note: VFE 0x02 = 0x12
That fixed the issue for us. Thanks!
On a side note, in our adv7850 evaluation board we noticed that when using VGA inputs the green and blue color channels in the output are swapped. This appears when using the standard 7850 scripts. Just thought I would report that.
Glad you got it working.
Yes, VGA green and blue are swapped. There's a hardware up date note at http://ez.analog.com/docs/DOC-2151. This will be fixed for the next build.
Retrieving data ...