PDA

View Full Version : LCD back-light on with command, but no text display on LCD



tvnaidu
- 5th November 2009, 12:34
I have UART1 XD connected to EDE702, then EDE702 connected to LCD.
I am able to turn on back-light with below fisrt two lines, next few lines to display text, but text not displaying on LCD, can I get some sample code or how can I debug this?. thanks for help.


//turn on backlight
uart_putc(1, 254);
uart_putc(1, 253);


//display text
uart_putc(1, 254);
uart_putc(1, 1);
uart_puts(1, "HELLO WORLD");


//2nd line on LCD
uart_putc(1, 0xFE);
uart_putc(1, 0xC0));
uart_puts(1, "2ND LINE DISPLAY");

ScaleRobotics
- 5th November 2009, 15:15
I have UART1 XD connected to EDE702, then EDE702 connected to LCD.
I am able to turn on back-light with below fisrt two lines, next few lines to display text, but text not displaying on LCD, can I get some sample code or how can I debug this?. thanks for help.


//turn on backlight
uart_putc(1, 254);
uart_putc(1, 253);


//display text
uart_putc(1, 254);
uart_putc(1, 1);
uart_puts(1, "HELLO WORLD");


//2nd line on LCD
uart_putc(1, 0xFE);
uart_putc(1, 0xC0));
uart_puts(1, "2ND LINE DISPLAY");

You might try giving the lcd an initial delay from 1/20 to 1/4 a second to turn on before you write to it.

Looks like you are using the wrong language for this forum. We use Michrochip PIC's here, and a language called PicBasic. Hence the name PicBasic Forum.

There are some examples here for a few different languages:
http://www.componentkits.com/dslibrary/EDE702.pdf

tvnaidu
- 5th November 2009, 17:07
I have given initial delay for LCD to comeup. Then I issued commands like above, first Two lines to turn back-light on, then next command to set cursor, then to display text on LCD, next Three lines for second line to display.

whatever the language is, I think this isto turn LCD on I believe.