• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Data Converters » Video Converters » Video Converters - Forum » TVP5150AM1 patch code
Share
Video Converters
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Check out
Analog Wire blog
  • $core_v2_blog.Current.Name

    RS-485 - Who says you can't teach an old dog new tricks?

    Posted 2 days ago
    by Neel Seshan
    Would you agree that RS-485 has turned out to be one of the most...
  • $core_v2_blog.Current.Name

    Filter for thought

    Posted 4 days ago
    by Soufiane Bendaoud
    Have you ever wondered how engineers designed active filters...
  • $core_v2_blog.Current.Name

    Let’s take this driver out for a spin

    Posted 9 days ago
    by Soufiane Bendaoud
    Before I suggest a suitable op amp to drive an ADC, I look at...

Forums

TVP5150AM1 patch code

This question is answered
Purvin Pandit
Posted by Purvin Pandit
on Aug 28 2010 06:09 AM
Prodigy110 points

Hi 

I am trying to write square pixel patch code to TVP5150AM1 on our system. I am able to get the initial version number as 0x4 & 0x0 from 0x82 & 0x83 respectively. When I follow the instruction to load the patch, I get -1 returned when I try to load the unsigned char array which has the patch code. All other write have no errors. Any idea why this would happen?

This is my code:. The highlighted text returns -1. pData is an unsigned char array which has the patch.

#define TVP5150AM1_ADDR 0x5C 


    result += I2CWriteByte(TVP5150AM1_ADDR,0x21,0x51);  // unlock password for patch code download & register write
    result += I2CWriteByte(TVP5150AM1_ADDR,0x22,0x50);  // unlock password for patch code download & register write
    result += I2CWriteByte(TVP5150AM1_ADDR,0x23,0xFF);  // unlock password for patch code download & register write
    result += I2CWriteByte(TVP5150AM1_ADDR,0x24,0x04);  // unlock password for patch code download & register write

    result += I2CWriteBuffer(TVP5150AM1_ADDR, 0x7E, nNumBytes, pData ); //load patch

    result += I2CWriteByte(TVP5150AM1_ADDR,0x7F,0x00);      // Restart TVP5150 uP

    result += I2CWriteByte(TVP5150AM1_ADDR,0x21,0x00);  // lock password for patch code download & register write
    result += I2CWriteByte(TVP5150AM1_ADDR,0x22,0x00);  // lock password for patch code download & register write
    result += I2CWriteByte(TVP5150AM1_ADDR,0x23,0xFF);  // lock password for patch code download & register write
    result += I2CWriteByte(TVP5150AM1_ADDR,0x24,0x04);  // lock password for patch code download & register write

Thanks,
-Purvin

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Viet Dinh
    Posted by Viet Dinh
    on Aug 30 2010 10:27 AM
    Genius15290 points

    Hello Purvin,

    Could you send us your code of I2CWriteBuffer()?  Could you let me know where do you get the patch and what version it is?  Our latest patch is located at:

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

    Please download the latest if your version is not up to date.

    Regards,

    Viet

    TVP5150AM1
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Purvin Pandit
    Posted by Purvin Pandit
    on Aug 30 2010 19:15 PM
    Suggested Answer
    Prodigy110 points

    Hi Viet,

    The write buffer code is a call to the i2c psp API.

    Int32 I2CWriteBuffer(unsigned char nSlaveAddr, unsigned char nSubAddr,
                        int nNumBytes, unsigned char* pData )
    {
        return i2c_writeReg(nSlaveAddr, nSubAddr, pData, nNumBytes);
    }
    
    
    
    I am using a version before the latest version of the patch. What I noticed is that I dont get any problem when I write up to 30 bytes of the patch. Anything beyond that returns -1. 
    What could that mean? I will try the latest patch also but I doubt it will work.
    
    
    -Purvin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Michael T
    Posted by Michael T
    on Aug 31 2010 10:34 AM
    Expert6680 points

    Purvin:

    Please let us know which TI processor and which PSP software version you are using and we can look further into

    the requirements for the i2c_writeReg() API fcn.   If there is a byte count limitation, it may be neccessary to do multiple

    calls to write to i2c sub-address 0x7E.   After that, perform one write to i2c sub-address 0x7F to restart the TVP5150 CPU.

    Regards,

    Michael T

    TVP5150 I2C Patch code load
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Purvin Pandit
    Posted by Purvin Pandit
    on Aug 31 2010 19:06 PM
    Prodigy110 points

    Hi Michael

    Its DM648 & PSP 1.10.0. Where can I find information/documentation on the byte count limitation?

    -Purvin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Purvin Pandit
    Posted by Purvin Pandit
    on Aug 31 2010 19:36 PM
    Prodigy110 points

    Follow up:

     

    I tried to send the data in 30 byte chunks. This seems to do the trick!! I can see the version number come out as 0x4 0xA1!!! Perfect. I just need to visually verify that the patch works. But this looks promising.

     

    Thanks for the help!! I will confirm once I visually verify the result.

    -Purvin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Michael T
    Posted by Michael T
    on Sep 01 2010 09:51 AM
    Verified Answer
    Verified by Purvin Pandit
    Expert6680 points

    Purvin:

    I'm glad you are able to get the firmware patch loaded now.

    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

    Regards,

    Michael T

    TVP5150AM1 I2C Patch code load
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use