In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sparks-R-Fun wrote: John, Here are some of the LCD subroutines that I use. I hope they are helpful. I must confess that this collection is a bit of a hack job. Most of the information I obtained from previous posts. Unfortunately, I have since had trouble relocating most of those posts. The bulk of the subroutines are from a posting from someone with the initials "JJC" from a few years ago. I used those as a base and simply modified them to work for my projects. I know from some of the original comments that his coding was heavily influenced by Jon Williams. I guess it all just goes to show how good ideas are shared and passed around in this community! For these subroutines to work as written you will need to connect the four data lines of the LCD to the four most significant pins of the RB port. If you connect the data lines to the highest four pins of a different port just change the definition of LCDData to that port. LCDRS and LCDE can be assigned to pins of your choosing. Other variables will need to be defined as well. Hopefully you will be able to follow most of the logic and get your display working. Please post follow-up questions if you have any and let us know if you are able to get your display working. I wish I had time to create a fully working demo. Now that the topic of using SX/B to communicate with an LCD has been raised it really deserves a tutorial! It is not hard; but it may not appear to be as obvious as it could be. I hope this helps. - Sparks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=229781#m270963 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)