Page 1 of 2

LCD-09351 interface

Posted: Tue Feb 12, 2013 3:16 am
by YahooArchive
i have purchased a sparkfun lcd display with a back pack. only 3 wires
pos gnd and rx. connected the rx to pin io1 on the armmite. using serout i can
get empty blocks to appear but no characters and no control . sku: LCD-09351
this is the lcd from sparkfun that i am using.
thanks
phijoh62

Re: LCD-09351 interface

Posted: Tue Feb 12, 2013 3:16 am
by YahooArchive
Sounds like you're communicating.

Are you sure, you've got the baud rate set correctly. You should be able to
work through the command sequences on the spec here

http://www.sparkfun.com/datasheets/LCD/ ... ataSheet-0\
8884-SerialGraphicLCD-v2.pdf

Re: LCD-09351 interface

Posted: Tue Feb 12, 2013 3:16 am
by YahooArchive
I scrolled through some of the user comments on the SparkFun page, and it looks
like a lot of people have a lot of trouble with this LCD, though some have got
it to work.

Among some notes, seems like you have to slow down the baud rate, and to wait a
while between commands.

You're really going to have to dig into the SparkFun forums, to find the
information needed to get it to work.

While it looks a bit discouraging, I ran into a similar problem with a TCM8230MD
from SF. Looking at most of the comments, seems like no on got it to work, but
there was one person who did and his setup was pretty simple. So I ended up
buying the camera and it was indeed fairly easy to get working.

Re: LCD-09351 interface

Posted: Tue Feb 12, 2013 3:17 am
by YahooArchive
works!!!! had to use 115200 and can only use the txd right now. how do you send
multiple commands on one line?? thanks for the help

Re: LCD-09351 interface

Posted: Tue Feb 12, 2013 3:18 am
by YahooArchive
baud rate worked at 115200, can send commands as well as text .need to find out
how to send a string of comands on the same line. thanks for the help. great
forum!!

Re: LCD-09351 interface

Posted: Tue Feb 12, 2013 3:20 am
by YahooArchive
Sorry, but I don't understand your question. BASIC or C? And some more details
would help.

Re: LCD-09351 interface

Posted: Tue Feb 12, 2013 3:21 am
by YahooArchive
i am using BASIC. when i try to send commands on the txd line i can only put one
command in. for example

TXD1=$07c is ok but if i try TXD1=$07c,$00

Re: LCD-09351 interface

Posted: Tue Feb 12, 2013 3:21 am
by YahooArchive
The compiler does flag that as an error

TXD1 = &H7c
TXD1 = &H00

$ is OK, I'm just trying to ween myself over to the VB syntax

Re: LCD-09351 interface

Posted: Tue Feb 12, 2013 3:22 am
by YahooArchive
is there a way to put multiple commands on the same line??

Re: LCD-09351 interface

Posted: Tue Feb 12, 2013 3:22 am
by YahooArchive
You can create strings, and then write a string routine that will send out the
string. Note that 0 is a special character for a string, the character that
terminates it.

sub sendstring (byref s as string)
dim i as integer

i=0
while s(i)
txd1 = s(i)
i = i+1 ' could use +=1 if you upgrade to the new compiler
loop

txd1 = 0 ' if the LCD needs it
endsub

...

dim s(20) as string
s = chr(&H7c) ' you can concatenate more characters here with + or &
sendstring (s)

should do it