Dumb beginners question.

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

Moderators: Henry, Mods

Post Reply
Dlopez6605
LCD?
Posts: 1
Joined: Mon Jan 29, 2007 8:05 am
Location: Chicago

Dumb beginners question.

Post by Dlopez6605 »

I am new to all this and I am wondering if anyone can help me. I just started learning how to use and program the PIC16F84A with PicBasic I tried connecting my LVPK162-12 (LK162-12) display to my pic the program I used is simple.

Pause 1000
serout 1,N2400,(254, 1)
Pause 250
Serout 1,N2400,("HELLO")
END

All I got is was garbage so I know it works its just a configuration problem with that in mind my questions are.

1. How do I change the baud rate to 2400?
2. Do I need to switch from the 232 setup to a TTL or I2C?

Any help will be appreciated thank you.
Raquel
Matrix Orbital
Matrix Orbital
Posts: 834
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Post by Raquel »

Hello Dlopez6605,

Thanks for your post.

To change the LK162-12 to 2400 baud, you will need to connect the module to a PC. Keep it in 232 configuration and follow the steps in this thread

When you are done with the baud rate changes, reconnect your LK162-12 to the PICBasic. See if you can write to the display properly, if not, there might be a need to set the module to TTL.

Please let me know how it turns out.
Raquel Malinis
Design and Development
Matrix Orbital
Post Reply