Page 1 of 1

Dumb beginners question.

Posted: Mon Jan 29, 2007 8:39 am
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.

Posted: Mon Jan 29, 2007 10:00 am
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.