LCD 2x18 display NOT WORKING
I have the LCD 2x18 display and it just stopped working after probably a hour of use
all it does is show the cursor or if I unplug it flip the switches and plug it back in it'll say Parallax, inc. www.parallax.com and then show pacman eating the words, I've checked my connections 23 times (I counted) and still have the same problem. Here is my code if you need it, my LCD is in p15. my switches
are ON ON meaning baud19200
Please reply
Shane
![cry.gif](http://forums.parallax.com/images/smilies/cry.gif)
are ON ON meaning baud19200
' {$STAMP BS2} ' {$PBASIC 2.5} TxPin CON 15 Baud19200 CON 32 HIGH TxPin ' Set pin high to be a serial port PAUSE 100 ' Pause for Serial LCD to initialize SEROUT TxPin, Baud19200, [noparse][[/noparse]"Hello, My name is Shane"] END
Please reply
Shane
Comments
Baud19200 CON 32
will turn baud19200 to the decimal val 32. You could try not declaring the constant and just put the desired baud rate next to the serout command. Try this code sample instead of declaring the constants
Serout 15, T9600, [noparse][[/noparse]"hello world"]
you will need to flip the switch to 9600baud and you will need to keep the initial delay. Hope it helps.
I'm sorry I steered you down the wrong road. The BS2 will communicate with the LCD module at 19,200 baud. I have had trouble with that speed on other projects.
I tried your code and it works fine on my LCD. Since you get a cursor when SW 1 and 2 are on, means the LCD is probably working. I would just double check if you have the RX pin of the LCD connected to Pin 15 on your BS2.
Jim
Baud19200 CON 32
-does, but i figured out how to get it to work by reading the syntax manual. This code does work but only at 9600baud
' {$STAMP BS2}
' {$PBASIC 2.5}
TxPin CON 15
DO
HIGH TxPin ' Set pin high to be a serial port
PAUSE 100 ' Pause for Serial LCD to initialize
SEROUT TxPin, 84, [noparse][[/noparse]"Hello, My name is Shane"]
LOOP
Unlike other micros, the basic stamp does not allow you to chose the baudmode directly. you must enter some kind of code that represents several different parameters. Like for instance this is also taken from the book.
Baud rate 8-bit, no parity, inverted 8-bit, no parity, true 7-bit, even parity, inverted 7-bit, even parity, true
300 19697 3313 27889 11505
600 18030 1646 26222 9838
1200 17197 813 25389 9005
2400 16780 396 24972 8588
9600 16468 84 24660 8276
So you enter in the corresponding code for the baudmode variable. I know there is higher baud rates, but the stamp syntax manual doesn't cover them...... OR your display might be damaged in some way...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I don't have a basic stamp, I AM The basic stamp 2
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I don't have a basic stamp, I AM The basic stamp 2