TI E2E Community
MSP430 Ultra-Low Power 16-bit Microcontroller Forum
initialize the LCD in msp430
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?
The LCD need at least 4,5V. MSP430 runs on 3,3V. The main question: how did you connect LCD with MCU?
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
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?
looks like he's my LCD
i change __delay_cycles to 500
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.
I am using the IAR.
i change code to 15ms, even don´t work
Please, show the main file.
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.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.