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?
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
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
imageshack.us/photo/my-images/135/dsc05376t.jpg/
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.