Menu

Serial LCD interface

Help
John_Mac
2008-10-08
2013-05-30
  • John_Mac

    John_Mac - 2008-10-08

    I'm kinda new here and think I messed up the last post on this topic....so here it is again.

    I have a Parallax Serial LCD display with a 3 wire connector, 5v, Gnd, and RX.

    The only examples I have been able to find on LCD interfaces is the Morse Code that uses a parallel interface.

    On the Basic Stamp I use the Serout command to write to the LCD.

    I found the documentation for InitSer, SerSend, and SerPrint and am trying to impliment a simple test with not so much luck.

    The manual talks about writing to channels (1,2,3).  I am using a 16F627.  Is the SerSend sending to the TX pin (RB2)?  Do I have to do something special to make this the TX pin rather than abi-directional port?

    Any help is appreciated.

    Thanks

     
    • kent_twt4

      kent_twt4 - 2008-10-11

      The SerSend and SerPrint are software RS232 functions, so the TX pin can be any digital I/O pin.   You should set the Tx pin as an output like:  Dir PortB.0 out.  There seem to be mixed results on using this function.

      In the contributors section is a hardware USUART library that works well and would use the TX pin (RB2)of your 16f627. Have used this on many different devices, including the 16f648 (same family as 16f627).

      An example for USUART coms using an alternate software routine is also in the contributors, including the Bin2Ascii sub which is the same as the SerPrint in the lcd.h library.  For byte size variables you can comment out the word variable stuff and save a bunch of code.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.