• 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 » Microcontrollers » MSP430™ Microcontrollers » MSP430 Ultra-Low Power 16-bit Microcontroller Forum » initialize the LCD in msp430
Share
MSP430™ Microcontrollers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
MSP430 Resources
  • MSP430 Product Folder
  • MSP-EXP430G2 - MSP430 LaunchPad Value Line Development kit
  • MSP430 Getting Started Guide
  • MSP430 Microcontroller Projects
  • More Resources >
  • Forums

    initialize the LCD in msp430

    This question is not answered
    felipe paulo
    Posted by felipe paulo
    on May 04 2012 22:50 PM
    Intellectual400 points

    I'm trying to initialize the LCD but I'm in trouble, he gets the first line all connected and not write anything. My LCD is MGD1602-FL and this is my code

    http://pastebin.com/E0YuT7XJ

    but does not work, I think the same is prioblema at startup. Can anyone help me?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Mikolaj Filar
      Posted by Mikolaj Filar
      on May 06 2012 05:00 AM
      Expert1290 points

      Hi,

      The LCD need at least 4,5V. MSP430 runs on 3,3V. The main question: how did you connect LCD with MCU?

      Regards,

      Mikolaj

      MSP430 initialization MSP430 initialize MSP430 LCD MSP430 MGD1602-FL
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • felipe paulo
      Posted by felipe paulo
      on May 06 2012 09:02 AM
      Intellectual400 points

      My msp isp MSP430 Launchpad, then i connect the msp in the usb, the LCD i connect in +5V, R/W in ground, Rs, En, D4, d5, d6, and d7 i connect in the pins of msp

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mikolaj Filar
      Posted by Mikolaj Filar
      on May 07 2012 15:19 PM
      Expert1290 points

      Ok, I have found any datasheet of your LCD and the physical layer seems be ok.

      What sequence (commands) do you use for initialization? In datasheet I have found (http://www.modtronix.com/products/lcd/mc1602b-series.pdf : page: 29) information about waiting 100 sec after one instr. (what is very strange) . In your code in line 232. I can see:

      "__delay_cycles(100000);"

      This is: 10^5 cycles * 10^-6 s / cycle = 100 ms .

      Maybe am I looking into wrong datasheet?

      Did you wait 100 seconds to see reaction of LCD?

      How do you know that you initialize it wrong?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • felipe paulo
      Posted by felipe paulo
      on May 07 2012 21:02 PM
      Intellectual400 points

      looks like he's my LCD

      imageshack.us/photo/my-images/135/dsc05376t.jpg/

      i change __delay_cycles to 500

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mikolaj Filar
      Posted by Mikolaj Filar
      on May 08 2012 09:48 AM
      Expert1290 points

      Ok, so it is for sure not initialized. Where did you buy the LCD? Is there a link to a datasheet?

      I don't think you should set lower time.

      Do you wait some time (~15 or 20 ms) after you turn power on.?

      If you use a Code Composer Studio you can debug the program to check you haven't any unwanted reactions.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • felipe paulo
      Posted by felipe paulo
      on May 08 2012 11:06 AM
      Intellectual400 points

      I am using the IAR.

      i change code to 15ms, even don´t work

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mikolaj Filar
      Posted by Mikolaj Filar
      on May 11 2012 03:03 AM
      Expert1290 points

      Please, show the main file.

      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