PDA

View Full Version : Parallax Serial LCD and issues



nbrucew
- 15th September 2009, 03:55
Beginner so be patient. Using MPLAB 8.33, Pickit2 Demo board, and PicBasicPro DEMO compiler (trying to decide whether I should buy PRO or go C). Have Parallax Serial LCD #27977. Trying to write basic code to LCD module with little success.

ansel = 0
Define OSC 4
N2400 CON 4

High Portb.7
pause 500

Serout portb.7, N2400, ["Hello World"]
End

LCD module power separate with 5v supply, baud rate jumpers set correct.
No back light comes on, no visible character appears.

Using PICF690 with demo board. Portb.7 listed as serial transmission port.
LCD module has +5, Grd and Rx pin which I connected to portb.7
Have tried different baud rates and use 8mhz . According to info I gathered this should work. Any comments, offerings appreciated.

mackrackit
- 15th September 2009, 04:40
No back light sounds like a bad LCD or power problem.

nbrucew
- 15th September 2009, 18:50
I know the back light works because if I set jumpers on LCD module to TEST and apply 5v the back light comes on and PARALLAX INC, etc is spelled outon the module. Rests jumpers to 2400 Baud rate and nothing with program I described in note. All examples for PIC Basic Pro use LCD modules designed for Hitachi 44780 controller or equivalent which I believe use parallel input. I thought for serial input this LCD controller would work. SO question does PBP software support serial input ?? Hope this makes sense .. getting to limit of my understanding ........ thanks for any input.

mackrackit
- 15th September 2009, 19:47
I just looked at the documentation from Parallax and it looks like you should be using T2400.

And scratch
N2400 CON 4

nbrucew
- 18th September 2009, 03:25
Tried about everything. My Parallax seria LCD connected to TX Portb.7 and both using T2400 and N2400 baud rate did not change anything. Had friend check LCD module with "C" program and pickit2 and works fine so module is good. Friend knows "C" but not Pic Pro but believe issue could be using Pro Demo software .. of course wants to convert me to "C"

ansel = 0

T2400 Con 0

High portb.7
pause 100

Serout portb.7, T2400, ["Hello"]
end

Basic program I have tried with lots of variations but I think this should work from all that I have read.

Is there any additions, changes to above or examples of small example software to just write one character that is available.

Thanks

mackrackit
- 18th September 2009, 04:42
T2400 Con 0
is pretty much setting the baud to "0"'

Like I said before, scratch the CON

Here is a project using a serial LCD
http://www.rentron.com/PicBasic/one-wire3.htm