Search found 7 matches

by ndyguy
Fri Feb 09, 2007 4:11 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: sending commands using C
Replies: 5
Views: 5639

Thanks for the response. The link you gave me seems to be focused on opening COM ports in Windows. What I'm looking for is help on sending raw hex (like 0xFE) in C using a microcontroller. I have the micro connected to the LCD and it's displaying text, but I'm not sure of the best way to send hex ...
by ndyguy
Sat Feb 03, 2007 4:43 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: sending commands using C
Replies: 5
Views: 5639

sending commands using C

I'm using a LK162-12 and I was wondering if anyone knew how to send commands using C. I've tried


#define command 0xFE
#define clear_screen 0x58

while(1)
{
......display some text.......
......wait a second.............
printf("%X%X", command, clear_screen);
}


but it just displays them as ...
by ndyguy
Sat Feb 03, 2007 3:44 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: Text with Atmel micro
Replies: 5
Views: 6384

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.
by ndyguy
Sat Feb 03, 2007 9:33 am
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: Text with Atmel micro
Replies: 5
Views: 6384

The Atmel is TTL, but then it goes through a MAX232 which converts it to RS232. So the short answer is RS232.
by ndyguy
Fri Feb 02, 2007 5:08 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: Text with Atmel micro
Replies: 5
Views: 6384

I removed the PC cable and there is no change, its still doing the same thing.
by ndyguy
Fri Feb 02, 2007 4:43 pm
Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
Topic: Text with Atmel micro
Replies: 5
Views: 6384

Text with Atmel micro

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