Greetings,
We are using a ADV7401 on a new video board to perform VGA to 24-bit RGB conversion, however the video after the conversion looks jumbled up. The board is converting a VGA input to a Composite output. At this point I am not sure if the problem is with the ADV7401 that is the analog front end or our digital decoder that is performing the 24-bit TTL to Composite conversion. I could use some advice for debugging.
So far I have verified that the HS (pin 4), VS (pin 99) and LLC1 (pin 36) frequencies are accurate look and signals look good. They were 48.363 KHz, 60 HZ and 65 MHz respectively . We only need to use 1024x768 at 60 HZ so the software is configuring the ADV7401 using the provided script from the datasheet, which are the following register value pairs.
0x05, 0x02, // ; Prim_Mode =010b for GR
0x06, 0x0C, // ; VID_STD=1100b for 1024x768 _@ 60
0x1D, 0x47, // ; Enable 28MHz Crystal
0x3A, 0x21, // ; set latch clock settings to 010b (55 MHz - 111 MHz), Power Down ADC3
0x3B, 0x80, // ; Enable External Bias
0x3C, 0x5D, // ; PLL_QPUMP to 101b (500 uA)
0x6A, 0x00, // ; DLL Phase Adjust
0x6B, 0xC2, // ; HSync out, Field Signal, Swap Pr & Pb
0x73, 0x90, // ; Set man_gain
0x7B, 0x1D, // ; TURN OFF EAV & SAV CODES Set BLANK_RGB_SEL
0x85, 0x03, // ; Synchronous VS, Enable DS_OUT
0x86, 0x0B, // ; Enable stdi_line_count_mode
0xF4, 0x3F, // ; Max Drive Strength
0x0E, 0x80, // ; ADI Recommended Setting
0x52, 0x46, // ; ADI Recommended Setting
0x54, 0x00, // ; ADI Recommended Setting
0x0E, 0x00 // ; ADI Recommended Setting
To me the this looks like a digital problem and not analog. I have tried inverting the sync signal polarities (with reg 0x7C) out of the ADV7401 and tested with a 800x600 60 HZ resolution (instead of XGA 60 HZ), but the video quality looked the same. Also, on our pattern generator I have gated the R, G, B to show each primary the colors individually, but problem is in each path.
I didn't see it in the datasheet, but is there any debug modes to output test patterns out of the ADV7401? This would be a great way to isolate the problem to the digital side. Below are images of a focus test pattern showing the issue and a page of our schematic with the ADV7401. Any advice is welcome!
Video Through ADV7401. Note the broken video.
PATTERN REFERENCE (Composite from Pattern Generator direct to TV)
edit to schematic image
[edited by: MatthewDSE at 9:03 PM (GMT 0) on 29 Oct 2019]