Text with Atmel micro

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
ndyguy
LCD?
Posts: 7
Joined: Fri Feb 02, 2007 4:32 pm

Text with Atmel micro

Post 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.
Raquel
Matrix Orbital
Matrix Orbital
Posts: 834
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Post 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.
Raquel Malinis
Design and Development
Matrix Orbital
ndyguy
LCD?
Posts: 7
Joined: Fri Feb 02, 2007 4:32 pm

Post by ndyguy »

I removed the PC cable and there is no change, its still doing the same thing.
Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

Is you Atmel communicating at TTL or RS232 levels to the LCD?
Henry J.
President
Matrix Orbital
ndyguy
LCD?
Posts: 7
Joined: Fri Feb 02, 2007 4:32 pm

Post by ndyguy »

The Atmel is TTL, but then it goes through a MAX232 which converts it to RS232. So the short answer is RS232.
ndyguy
LCD?
Posts: 7
Joined: Fri Feb 02, 2007 4:32 pm

Post 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.
Post Reply