Page 1 of 1

Text with Atmel micro

Posted: Fri Feb 02, 2007 4:43 pm
by ndyguy
I recently purchased the LK162-12 and I'm having difficulty getting it to properly display text. I created a simple program in C that prints the string "Hello" every second. I have the micro connected to the LCD and a PC at the same time. I can see in a hyperterminal on the PC the "Hello" string every second with no problem, but the LCD prints garbage once every second. It typically prints "HY(lowercase i with two dots)(not-equal sign)". Both the micro and the LCD are using 19200,8N1 baud rate. I also tried 9600 baud rate, on both, with the same results.

Any help would be appreciated.

I can also provide the code, if that would help.

EDIT: I did try the uProject program and I can change brightness, send text, etc.

Posted: Fri Feb 02, 2007 4:57 pm
by Raquel
Hello ndyguy,

Thank you for your post.
I have the micro connected to the LCD and a PC at the same time.
Try disconnecting the PC and only have the LK162-12 connected to your Atmel.

Please let me know how it turns out.

Posted: Fri Feb 02, 2007 5:08 pm
by ndyguy
I removed the PC cable and there is no change, its still doing the same thing.

Posted: Fri Feb 02, 2007 10:49 pm
by Henry
Is you Atmel communicating at TTL or RS232 levels to the LCD?

Posted: Sat Feb 03, 2007 9:33 am
by ndyguy
The Atmel is TTL, but then it goes through a MAX232 which converts it to RS232. So the short answer is RS232.

Posted: Sat Feb 03, 2007 3:44 pm
by ndyguy
I've resolved the issue. It was a slight problem with the prescale for the baud rate clock. After a slight tweak it works perfectly now. It looks like perhaps a PC is better able to account for this issue. Thanks for the help.