Edward LaBudde - 2009-02-23

Hi all, newbie here.  I acquired a parallax serial LCD model #27977. 
I thought this would be better as it has a one-wire interface instead of using a whole port.
I sent the baud rate to 2400. 

I used the example program below to input something to it.   With Button on I get a series of backslashes ”\\\\\\\”

When the button is off I get all kinds of gibberish like “\$2@@  $$.” The cursor jumps all around and it is never the same sequences on each power up.

OK I would really like to get this to print out data for diagnostic purposes.

Somebody help me out!!!!  Regards, ED.

'A testing LCD

'Chip model
#chip 16F88, 8
#config INTRC_IO

#define SendAHigh Set PORTB.2 ON
#define SendALow Set PORTB.2 OFF
#define Button PORTA.0
   
    Dir Button In    'pin 17
    Dir PORTB.2 Out    'pin 8
   
    InitSer 1, r2400, 1+WaitForStart, 8, 1, none, normal
    Do
        If Button On Then Temp = 0
        If Button Off Then Temp = 100
        SerSend 1, Temp
         Wait 200 ms
    Loop