AnsweredAssumed Answered

ADV7181C RGsB Conversion

Question asked by rsavage on Feb 12, 2013
Latest reply on Jul 1, 2013 by HongZhengWei

I have an ADV7181C which I have been using to convert CVBS and Y\C Video to 20bit 4:2:2.

 

I am now trying to convert RGsB to the same format.

 

I am using the following script. I am sure this was working in the past but having returned to the RGsB input I cannot now get it to work.

 

I require a LLC of 13.5MHz.

 

My script is as follows:

 

##CP 625i##

:625i/50Hz RGsB In 20Bit 422 EAV/SAV out Encoder:

42 C3 56 ; Red on AIN5, SOGreen on AIN6

42 C4 84 ; ADCs I/Ps to Manual Switching; Blue on AIN4

42 03 04 ; 20-bit 4:2:2 Output

42 04 4B ; Force HS, VS and F Output Pins Active

42 05 00 ; Prim_Mode = 0000b for SD-M

42 06 0B ; VID_STD = 1011b for SD 625i 4x1 (720 x 480)

42 1D 47 ; Enable 28.63636MHz External Crystal

42 3A 11 ; Set Latch Clock to 0001b (LLC = 13.5MHz to 55MHz), Power Down ADC3 (Not Used)

42 3B 81 ; Enable internal Bias

42 3C 5A ; PLL_QPUMP to 010b (With 05 and 06 sets PLL Divisor and VCO Range Automatically)

42 52 00 ; CSC_1  Channel A Offset = 0 Colour Space Conversion from RGB->YCrCb, No 2x Scaling

42 53 00 ; CSC_2 

42 54 12 ; CSC_3  Channel A3 Coefficient = 1188

42 55 90 ; CSC_4  Channel A2 Coefficient = 451

42 56 38 ; CSC_5 

42 57 69 ; CSC_6  Channel A1 Coefficient = 2376

42 58 48 ; CSC_7

42 59 08 ; CSC_8  Channel B Offset = 2048

42 5A 00 ; CSC_9

42 5B 75 ; CSC_10 Channel B3 Coefficient = 7496

42 5C 21 ; CSC_11 Channel B2 Coefficient = 2048

42 5D 00 ; CSC_12

42 5E 1A ; CSC_13 Channel B1 Coefficient = 6840

42 5F B8 ; CSC_14

42 60 08 ; CSC_15 Channel C Offset = 2048

42 61 00 ; CSC_16

42 62 20 ; CSC_17 Channel C3 Coefficient = 2048

42 63 03 ; CSC_18 Channel C2 Coefficient = 7866

42 64 D7 ; CSC_19

42 65 19 ; CSC_20 Channel C1 Coefficient = 6472

42 66 48 ; CSC_21 last

42 67 13 ; DPP Filters on Channels B & C have shallow role-off in transition band,

         ; Channels A, B and C Oversampled by 2 & Channel A Decimated by 2,

         ; Channels B & C Decimated by 4, giving a 4:2:2 Output 

42 6B C1 ; HSync and Field Sync Output Pins Enabled. Select 20-bit YPrPb Output from CP

42 73 CF ; Enable Manual Gain

42 74 A3 ; Channel A Gain = 250

42 75 E8 ; Channel B Gain = 250

42 76 FA ; Channel C Gain = 250

42 7B 06 ; Spread AV Code over Channels A & B, Clamped and Gained Data during H\V Blanking

         ; Channels A, B & C = 64 NOT SET for YPrPb I/Ps

42 85 19 ; Force SOG Sync Selection, Output Synchronous V Syncs

42 86 0B ; Enable stdi_line_count_mode

42 8A 10 ; Automatic VCO_RANGE Selection

42 8F 07 ; Automatic LLC1 Output Selection

42 90 29 ; FR_LL Decoded from PRIM_MODE and VID_STD

42 BF 02 ; Output Default Colour when Missing Video (Not Required ?!)

42 C5 01 ; CP_CLAMP_AVG_FACTOR[1-0] = 00b

42 F3 07 ; Enable Anti Alias Filters on ADC Channels 0, 1 & 2

42 0E 80 ; ADI Recommended Setting

42 52 46 ; ADI Recommended Setting

42 54 00 ; ADI Recommended Setting

42 F6 3B ; ADI Recommended Setting

42 0E 00 ; ADI Recommended Setting

 

Any help would be greatly appreciated.

 

Regards, Rob.

Outcomes