simmetry lcd
Al
Posts: 3
I am trying to use a simmetry lcd with my BS2-SX and I am having some problems.
My lcd works fine with my pc but when I try to use my stamp I get no where.
·Here is an example of code:
serout 15,240,[noparse][[/noparse]"W100",CR]
gosub wait_char
serout 15,240,[noparse][[/noparse]"C",CR]
gosub wait_char
serout 15,240,[noparse][[/noparse]"BC",CR]
gosub wait_char
wait_char:
serin 15,240,1000,wait_timeout,[noparse][[/noparse]WAIT(">")]
return
wait_timeout:
debug "Timed out"
return
·· When I run this the screen goes black and my debug screen gives me continuous timed out.
· Any help out there?
··· Thanks,········ Al
···
··
·
My lcd works fine with my pc but when I try to use my stamp I get no where.
·Here is an example of code:
serout 15,240,[noparse][[/noparse]"W100",CR]
gosub wait_char
serout 15,240,[noparse][[/noparse]"C",CR]
gosub wait_char
serout 15,240,[noparse][[/noparse]"BC",CR]
gosub wait_char
wait_char:
serin 15,240,1000,wait_timeout,[noparse][[/noparse]WAIT(">")]
return
wait_timeout:
debug "Timed out"
return
·· When I run this the screen goes black and my debug screen gives me continuous timed out.
· Any help out there?
··· Thanks,········ Al
···
··
·
Comments
Is your baud rate setting correct?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
·
And Jon has identified the probable problem.
Daniel
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
·
·· Thanks for the help. The Serin 15 was a· typo.
·I am using serin 14. The lcd is operating at a baud
·of 9600. I am using a baud mode· of 240. I believe
·this to be correct for the SX. When I run the program
·the screen goes black.· This program is what simmetry
·recommended as a test. When I disconnect the wire from BS2
·pin 15 the screen goes to the lcd power on screen.
································
····· Thanks again,········· AL
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
·
Dumb question: did you remove the jumper between pins 4 and 6 of J1 to set the module up for use with a BASIC STAMP instead of a PC?
From the simmetry download page, they provide some guidance for hooking up to a stamp in the "RS-232 Interface Connection" link.· Did you follow these?
"For 8051, PIC, Basic Stamp and similar microprocessors a direct connection be connected as follows;
A. Connect the external microprocessor's ground to pin 2 of J4.
B. Connect the pin you are using to receive data from the display to pin 3 of J4.
C. Connect the pin you are using to transmit data to the display to pin 4 of J4."
Again, I have been too lazy to hook up the module to my stamp, although it works great with my PC.· I will be interested to hear your solution to the problem, so I can avoid all the hard work ·
·
······· The "C" command clears the screen.
········ The "BC" command displays a template.
········· The template is part of the lcd software.
····················· Thanks,·············· Al
Also try a baudmode of 16624 in case it needs inverted mode.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Chris Savage (Parallax)) : 3/28/2006 3:14:19 PM GMT
I am at work right now so I dont have the code to post, but when I get home I with post it with some pictures.
One thing I notice with those displays... They seem to need very small delays or they freeze up.
like:
serout bla bla bla
pause 1 or pause 10 (try different value to see what works)
serout bla bla bla ect...
the bs2's value was different from the bs2p40's value
if you dont use the small delay the screen freezes and you need to reset it
also the delay is larger between serin and serout
Dan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
DTQ
I'm sure Dan's comments above are very pertinant, as they are with many LCD's, especially customized LCD's as this one is. There may be even more to it than what Dan has mentioned too.
Did you notice that changes may have to be made in the last routine in the sample program you provided, depending on whether you have implemented flow control (pin port 13 apparently):
wait_char:
' Use the following command if you do not have
' pin 13 connected to the flow control pin
' of the display module
' SERIN 15,84,1000,wait_timeout,[noparse][[/noparse]WAIT(">")]
PAUSE 3
IF IN13 = 0 THEN wait_char
RETURN
You also don't mention which PBASIC Stamp you're using?
Just for the record, the Simmetry documentation leaves a LOT to be desired.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
Post Edited (HIBITDAC) : 3/31/2006 3:49:01 PM GMT
Hibitdac