This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TVP5150 burst issue

Other Parts Discussed in Thread: TVP5150AM1, TVP5150, TVP5150A, TVP5151, TVP5160, TVP5146, TVP5147

My customer is using the TVP5150AM1 TV decoder.  Having a problem where the color carrier  being digitized in addition to the regular TV signal.  Normally this color carrier is filtered out before being digitized.  It causes oscillations on the luminance data at the color carrier frequency when its not being filtered.    

Any ideas for a possible reason!

 

Thanks- 

  • Hello Saeb,

    This question makes no sense as worded.

    The entire composite video waveform including the color subcarrier is always supposed to be digitized by the TVP5150AM1.

    Please describe the observed issue in detail.

    There will always be some false color and dot crawl artifacts due to comb filter limitations.

    Regards,

    Jim

  • Hi,

    Let me try and clarify the question.  And this could all be just a Register mistake.  I've attached as much info as I can.

    Here you can see the inner block diagram.  At the top "Composite" is where the Luma data is processed.  The bottom is where the Cr and Cb enter.  Chrominance is re-modulated and is subtracted from the Luma data.  Now the luma data should not have color, and is then digitized.  In S-video, the path goes through the mux without being subtracted.  For NTSC, it is subtracted, filtered, and then digitized.

    The problem almost looks like it's set for S-video, where the Color burst information is riding on the Y data.  That shouldn't happen I don't believe, when setup properly.  In the end, the digital data coming out should just be separate in the form YCrCb 4:2:2.

    So I've created a video frame with a single yellow line on it.  I've attached a picture.  You can see how there are pixels are changing brightness.

    I've captured the YCrCb data coming from the decoder where the line is.  I find the Cr and Cb are pretty much constant as you would expect.  Y has an oscillation on it.  You can calculate that oscillation frequency to be about the color burst frequency.  I've attached pictures.  The video resolution is 720x242.

    Using the Data I've graphed the amplitude of the Y data.

    When I move the plug from the DVD player composite output and plug it into the "Y" portion of the component output I get this.  And is in vary good shape.

    Unfortunately, I can't seem to figure out exactly what the problem is.  I've reviewed the registers, and they look ok to me.  Maybe a second set of eyes would help.

    I've also attached the schematic.  The video input "INPUTA_GREEN" is driven from an onboard video amplifier.

    Also on this board is a VGA video decoder which is fed data from the same source.  It does not have any issues like this.

    Anyways, Please help if you can.  Thanks.

    Regards,

    James McNeill

    3073.TVP5150 RegDump.txt
    Register : 0x00 : 0x00
    Register : 0x01 : 0x15
    Register : 0x02 : 0x00
    Register : 0x03 : 0x6d
    Register : 0x04 : 0xc0
    Register : 0x05 : 0x00
    Register : 0x06 : 0x10
    Register : 0x07 : 0x60
    Register : 0x08 : 0x00
    Register : 0x09 : 0x80
    Register : 0x0a : 0x80
    Register : 0x0b : 0x00
    Register : 0x0c : 0x80
    Register : 0x0d : 0x47
    Register : 0x0e : 0x00
    Register : 0x0f : 0x00
    Register : 0x10 : 0x00
    Register : 0x11 : 0x00
    Register : 0x12 : 0x00
    Register : 0x13 : 0x00
    Register : 0x14 : 0x00
    Register : 0x15 : 0x01
    Register : 0x16 : 0x80
    Register : 0x17 : 0x00
    Register : 0x18 : 0x00
    Register : 0x19 : 0x00
    Register : 0x1a : 0x0c
    Register : 0x1b : 0x14
    Register : 0x1c : 0x00
    Register : 0x1d : 0x00
    Register : 0x1e : 0x00
    Register : 0x1f : 0x00
    Register : 0x20 : 0x00
    Register : 0x21 : 0x00
    Register : 0x22 : 0x00
    Register : 0x23 : 0x00
    Register : 0x24 : 0x00
    Register : 0x25 : 0x00
    Register : 0x26 : 0x00
    Register : 0x27 : 0x00
    Register : 0x28 : 0x00
    Register : 0x29 : 0x00
    Register : 0x2a : 0x00
    Register : 0x2b : 0x00
    Register : 0x2c : 0x95
    Register : 0x2d : 0x6a
    Register : 0x2e : 0x0f
    Register : 0x2f : 0x01
    Register : 0x30 : 0x00
    Register : 0x31 : 0x00
    Register : 0x32 : 0x00
    Register : 0x33 : 0x00
    Register : 0x34 : 0x00
    Register : 0x35 : 0x00
    Register : 0x36 : 0x00
    Register : 0x37 : 0x00
    Register : 0x38 : 0x00
    Register : 0x39 : 0x00
    Register : 0x3a : 0x00
    Register : 0x3b : 0x00
    Register : 0x3c : 0x00
    Register : 0x3d : 0x00
    Register : 0x3e : 0x00
    Register : 0x3f : 0x00
    Register : 0x40 : 0x00
    Register : 0x41 : 0x00
    Register : 0x42 : 0x00
    Register : 0x43 : 0x00
    Register : 0x44 : 0x00
    Register : 0x45 : 0x00
    Register : 0x46 : 0x00
    Register : 0x47 : 0x00
    Register : 0x48 : 0x00
    Register : 0x49 : 0x00
    Register : 0x4a : 0x00
    Register : 0x4b : 0x00
    Register : 0x4c : 0x00
    Register : 0x4d : 0x00
    Register : 0x4e : 0x00
    Register : 0x4f : 0x00
    Register : 0x50 : 0x00
    Register : 0x51 : 0x00
    Register : 0x52 : 0x00
    Register : 0x53 : 0x00
    Register : 0x54 : 0x00
    Register : 0x55 : 0x00
    Register : 0x56 : 0x00
    Register : 0x57 : 0x00
    Register : 0x58 : 0x00
    Register : 0x59 : 0x00
    Register : 0x5a : 0x00
    Register : 0x5b : 0x00
    Register : 0x5c : 0x00
    Register : 0x5d : 0x00
    Register : 0x5e : 0x00
    Register : 0x5f : 0x00
    Register : 0x60 : 0x00
    Register : 0x61 : 0x00
    Register : 0x62 : 0x00
    Register : 0x63 : 0x00
    Register : 0x64 : 0x00
    Register : 0x65 : 0x00
    Register : 0x66 : 0x00
    Register : 0x67 : 0x00
    Register : 0x68 : 0x00
    Register : 0x69 : 0x00
    Register : 0x6a : 0x00
    Register : 0x6b : 0x00
    Register : 0x6c : 0x00
    Register : 0x6d : 0x00
    Register : 0x6e : 0x00
    Register : 0x6f : 0x00
    Register : 0x70 : 0x00
    Register : 0x71 : 0x00
    Register : 0x72 : 0x00
    Register : 0x73 : 0x00
    Register : 0x74 : 0x00
    Register : 0x75 : 0x00
    Register : 0x76 : 0x00
    Register : 0x77 : 0x00
    Register : 0x78 : 0x00
    Register : 0x79 : 0x00
    Register : 0x7a : 0x00
    Register : 0x7b : 0x00
    Register : 0x7c : 0x00
    Register : 0x7d : 0x00
    Register : 0x7e : 0x00
    Register : 0x7f : 0x00
    Register : 0x80 : 0x51
    Register : 0x81 : 0x50
    Register : 0x82 : 0x04
    Register : 0x83 : 0x00
    Register : 0x84 : 0x02
    Register : 0x85 : 0x0d
    Register : 0x86 : 0x87
    Register : 0x87 : 0x00
    Register : 0x88 : 0x1e
    Register : 0x89 : 0x08
    Register : 0x8a : 0x19
    Register : 0x8b : 0xf5
    Register : 0x8c : 0x81
    Register : 0x8d : 0x00
    Register : 0x8e : 0x00
    Register : 0x8f : 0x00
    Register : 0x90 : 0x00
    Register : 0x91 : 0x00
    Register : 0x92 : 0x00
    Register : 0x93 : 0x00
    Register : 0x94 : 0x00
    Register : 0x95 : 0x00
    Register : 0x96 : 0x00
    Register : 0x97 : 0x00
    Register : 0x98 : 0x00
    Register : 0x99 : 0x00
    Register : 0x9a : 0x00
    Register : 0x9b : 0x00
    Register : 0x9c : 0x00
    Register : 0x9d : 0x00
    Register : 0x9e : 0x00
    Register : 0x9f : 0x00
    Register : 0xa0 : 0x00
    Register : 0xa1 : 0x00
    Register : 0xa2 : 0x00
    Register : 0xa3 : 0x00
    Register : 0xa4 : 0x00
    Register : 0xa5 : 0x00
    Register : 0xa6 : 0x00
    Register : 0xa7 : 0x00
    Register : 0xa8 : 0x00
    Register : 0xa9 : 0x00
    Register : 0xaa : 0x00
    Register : 0xab : 0x00
    Register : 0xac : 0x00
    Register : 0xad : 0x00
    Register : 0xae : 0x00
    Register : 0xaf : 0x00
    Register : 0xb0 : 0x1f
    Register : 0xb1 : 0x00
    Register : 0xb2 : 0x00
    Register : 0xb3 : 0x00
    Register : 0xb4 : 0x00
    Register : 0xb5 : 0x00
    Register : 0xb6 : 0x00
    Register : 0xb7 : 0x00
    Register : 0xb8 : 0x00
    Register : 0xb9 : 0x00
    Register : 0xba : 0x00
    Register : 0xbb : 0x00
    Register : 0xbc : 0x00
    Register : 0xbd : 0x00
    Register : 0xbe : 0x00
    Register : 0xbf : 0x00
    Register : 0xc0 : 0xc0
    Register : 0xc1 : 0x00
    Register : 0xc2 : 0x04
    Register : 0xc3 : 0xdc
    Register : 0xc4 : 0x10
    Register : 0xc5 : 0x00
    Register : 0xc6 : 0x40
    Register : 0xc7 : 0x00
    Register : 0xc8 : 0x80
    Register : 0xc9 : 0x00
    Register : 0xca : 0x00
    Register : 0xcb : 0x4e
    Register : 0xcc : 0x00
    Register : 0xcd : 0x01
    Register : 0xce : 0x00
    Register : 0xcf : 0x00
    Register : 0xd0 : 0x00
    Register : 0xd1 : 0xff
    Register : 0xd2 : 0xff
    Register : 0xd3 : 0xff
    Register : 0xd4 : 0xff
    Register : 0xd5 : 0xff
    Register : 0xd6 : 0xff
    Register : 0xd7 : 0xff
    Register : 0xd8 : 0xff
    Register : 0xd9 : 0xff
    Register : 0xda : 0xff
    Register : 0xdb : 0xff
    Register : 0xdc : 0xff
    Register : 0xdd : 0xff
    Register : 0xde : 0xff
    Register : 0xdf : 0xff
    Register : 0xe0 : 0x00
    Register : 0xe1 : 0xff
    Register : 0xe2 : 0xff
    Register : 0xe3 : 0xff
    Register : 0xe4 : 0xff
    Register : 0xe5 : 0xff
    Register : 0xe6 : 0xff
    Register : 0xe7 : 0xff
    Register : 0xe8 : 0xff
    Register : 0xe9 : 0xff
    Register : 0xea : 0xff
    Register : 0xeb : 0xff
    Register : 0xec : 0xff
    Register : 0xed : 0xff
    Register : 0xee : 0xff
    Register : 0xef : 0xff
    Register : 0xf0 : 0x00
    Register : 0xf1 : 0xff
    Register : 0xf2 : 0xff
    Register : 0xf3 : 0xff
    Register : 0xf4 : 0xff
    Register : 0xf5 : 0xff
    Register : 0xf6 : 0xff
    Register : 0xf7 : 0xff
    Register : 0xf8 : 0xff
    Register : 0xf9 : 0xff
    Register : 0xfa : 0xff
    Register : 0xfb : 0xff
    Register : 0xfc : 0x7f
    Register : 0xfd : 0x00
    Register : 0xfe : 0x00
    Register : 0xff : 0x00
    Input Source: Composite on AIP1A
    Video Standard: Autoswitch: NTSC-M,J
    Device ID: 5150
    Rom Revision: 0400
    Detected Lines per frame: 525
    Field rate: 60 Hz
    Vertical sync  : Locked
    Horizontal sync: Locked
    Color Subcarrier: Locked
    
    

    3021.lastFrame.zip

    6165.18_2101v2_2101v2.pdf

  • Hi,

    It looks like some of my pictures got removed.

    TVP5150 Internal Diagram

    Line With Color Oscillations

    Line with Video connected to DVD Y of component output.

  • Hello James,

    I haven't found anything yet that would explain what you're seeing, but I did find a few things that concern me.

    According to registers 33h and 83h, you're not using the latest patch.  Using the latest patch is strongly recommended.

    The latest patch (v048CAA) can be downloaded from the following web site.

    http://software-dl.ti.com/dsps/dsps_public_sw/dsps_swops_houston/ANALOG_VIDEO/Analog_Video_Decoder_Versions.htm

    The source impedance of the two 300 ohm resistors (i.e. 150 ohms) is much higher than recommended (~37.5 ohms).  The TVP5150AM1 clamp performance degrades with increasing source impedance.

    Based on your schematic, I'm concerned that you're not following our PCB layout guidelines which recommends using a split ground plane (i.e. separate AGND and DGND).  You basically have everything referenced to AGND1.

    http://www.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=slea081&fileType=pdf

    Also, you don't appear to be using the recommended anti-aliasing filter.

    http://www.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=slea087a&fileType=pdf

    Regards,

    Jim

  • Hi Jim,

    Thank you very much for the help.  I'm still in the process of implementing some of these changes.  I had another question.  If I buy new chips today, will they come with the newest firmware?  Also, when I buy the chips, is there a way to identify what firmware version is in them from the packaging or part marking?  The chips I have (TVP5150AM1IPBS) are marked with 5051l.  The TI website says they should be marked with 5150Q.

    Thanks for your help.

    Regards,

    James

  • Hello James,

    No, there are currently no plans to update the on-chip ROM code.

    The latest version of the TVP5150AM1 ROM code is v04.  The ROM code version can be read from I2C register 82h.

    Recommend that you always use the latest patch from the patch download website.

        http://software-dl.ti.com/dsps/dsps_public_sw/dsps_swops_houston/ANALOG_VIDEO/Analog_Video_Decoder_Versions.htm

    Regards,

    Jim

  • Hi Jim,

    I noticed you said the latest patch code was v048CAA.  There are patch code versions with higher version numbers there.  v04.90.02 and v04.A1.02.  Is v04.8C.AA the latest?  They all seem to have been released on the same day.  Do all newer patch codes include the changes from the older ones?

    Thanks for your help.

    Regards,

    James

  • James,

    Please read the patch description.

    The other patches are for different timing standards (e.g. square-pixel timing).

    Regards,

    Jim

  • Improper video termination and signal level attenuation could lead to signal levels higher than that recommeded for the TVP5150AM1.  This could lead to chrominance clipping at the ADC.  We have seen this result in banding and artifacts when viewing certain colors.

    Regards,

    Larry

     

  • Hi Jim,

    About the Patch code..  The pdf document SLEA093 "TVP5150AM1 Patch Code Download Guidelines"  says

    Check the version number in registers 0x82 and 0x83. The values you will see are 0x04 and 0xXX,
    respectively. XX refers to the patch code revision number.

    Since the patch code is v 04.8C.AA.  What is the value that should be read back from 0x83 once the patch is done?  Would it be 8C or AA or something else.

    I've followed the download procedure from SLEA093 section 1.2.  The device returns ACKs to everything, but I still read 0x00  from address 0x83.

    Can I read back the code to be sure it was written correctly?

    Thanks for your help.

    Regards,

    James

  • Hi Jim,

    Never mind.  I found my error.  And Register 0x83 displays 8C for the current version v04.8C.AA.

    Regards,

    James

  • Hi,

    The patch code did not fix the problem I am having.  The Data coming from the decoder still appears to have color information in the Luma data.

    This can be proven in data that I captured.  The noise is there when a color picture is used and not when a black and white picture is used.  Besides the termination and Anti-aliasing filter, do you have any other suggestions?

    Is there an Eval board that I can test?  There is the TVP5150AEVM but there is no stock anywhere.

    Tomorrow I'll try adding the Anti aliasing filter and changing the termination.

    Thanks for your help.

    Regards,

    James.

  • Hi,

    Thanks for your responses, but we have tried everything suggested and the problem still persists. You can see from the traces I provided that the chip is not separating color from luminence in certain cases. This is a very big bug that is unlikely to be fixed by a few tweaks to external components. How TI could sell this chip with this problem is a mystery. We've wasted weeks trying to get this fixed.

    At this point, I can only see one solution to fix the problem, and that is to remove the chip and use a different one.

    Thanks for your help.

    Regards,

    James

  • James,

    Make sure bit 5 of REG03h is set to 1 to make pin 27 an output.  If pin 27 is floating and left configured as an input, color processing issues could result.  The symtpoms you have decribed do not seem to be related to this, but this should be tried to make sure.

    You tried attenuating the input as recommeded, right?

    Have you tried multiple TVP5150AM1 devices?

    Do you have a TVP5150EVM to try with your video source?

    If you view a color bar test pattern, are colors mostly correct and stable, and just certain colors have vertical bandiing present?

    Regards,

    Larry

     

  • Hi Larry,

    It looks like register 0x03 bit 5 is already being set to 1.

    I did try attenuating the input and lowering the value of the termination resistors.  I also patched in the anti-aliasing filter.  And updated the patch code.  Overall, I see no difference.  Not even a little difference.  I previously attached a file  "3021.lastFrame.zip " .  It shows one frame of video.  It's black with a single line in the middle. 

    This is the test because in some of our applications, there is just lines and text.  This is how the lines show up.

    Now, if you play a movie or moving video of some sort, you can't see a problem at all.  Regular active graphics looks fine.

    We have tried other TVP5150AM1 chips.  This IC is used on 4 of our products.  Each product uses 2 or 4 of these devices.  All our products exibit this problem.  Some are connected to an H.264 encoder, some to an FPGA.  All have this problem.  So we've tried multiple chips across multiple circuit cards.

    We have not tried the Eval board because it's not in stock anywhere.  It is actually for the TVP5150A and not AM1.  I downloaded the software to checkout the register settings.  There is definitely something strange there.  Check out page 3-8 of the TVP5150AEVM User's Guide ( SLEU041 ).  These Register settings don't make sense when compared to the Memory Map for the 5150A or 5150AM1.  So the EVM board may not be useful, and the reason it's not stocked anywhere.

    BEGIN_DATASET
    DATASET_NAME,”TVP5150A, Auto-switch, CVBS CH4A, 656 Out”
    // Initialize video encoder using an include file
    INCLUDE, EncoderNTSC656_RTC.INC
    // Program TVP5150A registers
    WR_REG,VID_DEC,0x01,0x00,0x0C // Input: CVBS CH4
    WR_REG,VID_DEC,0x01,0x02,0x00 // Auto−switch mode
    WR_REG,VID_DEC,0x01,0x04,0x3F // Auto−switch MASK
    WR_REG,VID_DEC,0x01,0x06,0x40 // Pedestal off
    WR_REG,VID_DEC,0x01,0x31,0x05 // RTC mode
    WR_REG,VID_DEC,0x01,0x33,0x40 // ITU 601 (extended range)
    WR_REG,VID_DEC,0x01,0x34,0x11 // OUTPUTS ACTIVE
    WR_REG,VID_DEC,0x01,0x35,0xFA // GLCO and FID ACTIVE
    WR_REG,VID_DEC,0x01,0x36,0xAF // HS and VS ACTIVE
    END_DATASET

    We have not tried the color bar test.  I could.  The banding I see is Horizontal and not vertical as in the ...lastFrame.zip file.

    What is the difference between the TVP5150AM1 and the TVP5151?  They appear to be pin / register compatible.  Would it be any use to try the TVP5151?

    Thanks for your help.  Talk to you later.

    Best Regards,

    James

  • If this occuring only on 1-2 lines of video following a black line to color line transition, this is probably due to 2D comb artifacts in the TVP.  There is a certain amount of artifacts inherent in 2D comb YC separation.   The TVP5151 will proably not show much improvement.  A TVP5146 or TVP5147 with 5-line comb might, but a device with 3D Y/C comb, such as the TVP5160, would provide  the best YC separation and minimal artifacts. 

    If you use a wider yellow bar, does the issue dissipate after the first few lines?

    Regards,

    Larry