• 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 » Digital Signal Processors (DSP) » C5000 Ultra Low Power DSP » C5000 Ultra Low Power DSP Forum » LCD Display issue
Share
C5000 Ultra Low Power DSP
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Top 6 Wiki Links
  • C5000 Main Wiki
  • C5000 Software
  • C5515 Boot-Image Programmer
  • CSL (including CSL 3.00)
  • C5000 Connected Audio Framework
  • Porting C5000 Teaching ROM to C5535 eZdsp
  • Forums

    LCD Display issue

    This question has suggested answer(s)
    mandala muneendra
    Posted by mandala muneendra
    on Sep 04 2009 05:45 AM
    Prodigy10 points

    Hi All,

     

    We are working on C5505 EVM board

    We were trying to test the LCD driver using example 3
    (CSL/examples/LCD/example3).


    When we run this application, we are able to see the BLUE and WHITE
    colors properly on the LCD screen.


    When we tried to display RED and GREEN colors (code is same; we changed
    only the color values) we are seeing BLACK and YELLOW instead
    (respectively).

    It would be great if you could suggest a solution.

    Regards,

    Muneendra.

     

    LCD driver
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • TommyG
      Posted by TommyG
      on Sep 11 2009 16:30 PM
      Genius12455 points

      Muneendra,

      I have duplicated your results.  Not sure what the problem is yet, but I am consulting with the CSL team.  I will come back to you when I have something.

      Regards.

       ---------------------------------------------------------------------------------------------------------

      ACAT/DCAT Team

      ---------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      --------------------------------------------------------------------------------------------------------- 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TommyG
      Posted by TommyG
      on Sep 22 2009 10:38 AM
      Suggested Answer
      Genius12455 points
      example3.zip

      Muneendra,

      A colleague made a hack that will now allow the example 3 to display all three primary colors: Red, Green and Blue.  I have atatched the revised project here for you to use.  Consider this a temporary work around.  I am consulting with the C5000 Apps team to get an official patch.

      Regards.

       ---------------------------------------------------------------------------------------------------------

      ACAT/DCAT Team

      ---------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      --------------------------------------------------------------------------------------------------------- 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • DSP_KungFu_Master
      Posted by DSP_KungFu_Master
      on Oct 28 2009 05:04 AM
      Intellectual700 points

      Hello, Are the any news on the patch? is the problem in the CSL or in the Display itself?

      I also have a question concerning the LCD DMA transfer.

      As I can see from the examples and documentation DMA data transfer towards LCD is 32 bit (you set a pointer to the buffer as uint32), but the display graphics RAM is 16 bit. Does this mean that for every DMA transfer two pixels will be transmitted or does this mean that 16 bit value of each pixel in the buffer will be trasmitted as 32 bit and then stored again in the graphics RAM as 16 bit value?

      I noticed a really strange behavior of the LCD display when using DMA. For example I fill the frame buffer with value 0xFFFF then I get correctly filled LCD screen with white color. But then I fill the pixel buffer alternatively with 0xFFFF and 0x0000. Instead of getting one white and one black pixel I get screen filled with blue colored pixels? Can you help me with this problem, am I doing something wrong?

      Thank you....

      C5505 EVM C5505 LCD driver DMA LCD
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ming Wei
      Posted by Ming Wei
      on Oct 29 2009 10:39 AM
      Suggested Answer
      Intellectual2055 points
      example3.zip

      Hello,

      The problem is caused by the inproper use of the LCD panel interface. The DMA and LCD controller on C5505 works fine. The OLED panel on C5505 EVM can use either 8 bit data line or 16 bit data line, but on C5505 EVM we physically connect to it using 8 bit data line. On the other hand, the C5505 LCD controller data receive/transmit register is always using 16 bit data. In this case, only the lower 8 bit is effective. If the 256 color mode (8 bit per pixel) is used, then there is no problem. If the 16 bit color mode is used, then you will need to transmit 16 bit per pixel data via 8 bit data bus, so you have to seperate the data into two 8 bit data and put them into two word (lower 8 bit of 16 bit word), then send them to the LCD panel one after another. The example3 in LCD folder is actually using 16 bit color mode, but it sends the 16 bit color data in one word, therefore the higher 8 bit of the colro data is lost. That is why you did not get the right color when you changed color to a non white or black color. 

      The LCD DMA does work at 32 bit unit. It will break a 32 bit word into two 16 bit words and send it to the data receive/transmit register. It works properly.

      I have changed the example3 to works for both 256 color and 16 bit color. It will display 120x120 image with half screen filled with blue and half screen as black and white alternative. You will need to make sure to use USE_COLOR_256 macro in the project to make the program to use the 256 color mode. If USE_COLOR_256 is not defined, then the program will use 16 bit color. Attacthed please find modified LCD example3. The CSL code remains the same.

      Best regards,

      Ming

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • DSP_KungFu_Master
      Posted by DSP_KungFu_Master
      on Oct 29 2009 16:22 PM
      Intellectual700 points

      Thank you for the response and the example. Things are much clearer now! I just need to clear one more thing.

       

      From Your example I see that the framebuffer you use is defined as:

      // 132x132x2, 132 row, 132 column, 2 word per pixel

      #define LCD_MAX_BUFFER_SIZE    (0x8820u)

      so one pixel is 32 bits (2 words) (btw why define it as 132 when the LCD on the EVM board is 128 by 128)

       

      Can't we use instead Uint32 framebuffer and avoid shifting of pixel data before sending? DMA will send the 32 bit data correctly and we will simplify the process. In that case I define green as

      #define GREEN                     0x000700E0

      instead of

      #define GREEN                     0x07E0

      Do you see any drawbacks in this approach? I tested this and it works properly...

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ming Wei
      Posted by Ming Wei
      on Nov 03 2009 10:00 AM
      Intellectual2055 points

      Hi,

      According the the LCD panel spec, the physical size of the panel is 132x132.

      Your way should work too. The only drawback is that the 16 bit color defination is not straightforward.

      Ming

      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