Parallel or Serial LCD?
jengel
Posts: 3
I have an application that needs to read a sensor and print that value to a parallel 4X20 LCD.
I know how to save a text string as data and print that, so I know the LCD and connections are working.
Is it possible to do this to a parallel LCD or should I get the serial LCD, which looks much easier?
Thanks in advance.
J. Engel
Edit: Added Subject Line
Post Edited By Moderator (Chris Savage (Parallax)) : 10/16/2006 5:25:59 AM GMT
I know how to save a text string as data and print that, so I know the LCD and connections are working.
Is it possible to do this to a parallel LCD or should I get the serial LCD, which looks much easier?
Thanks in advance.
J. Engel
Edit: Added Subject Line
Post Edited By Moderator (Chris Savage (Parallax)) : 10/16/2006 5:25:59 AM GMT
Comments
I guess I should have been more specific...
I'm using the BS2 and can save string data with the Msg1 DATA "Line 1" command. The program will print that to the LCD fine. I need to read a variable that can go from 20 to 0 and be able to print the variable value to the LCD. That's where I'm having the problem.
Thanks.
J. Engel
I don't recommend modifying the "Line 1" by using WRITE statements (which you can do) because of the limited number of WRITEs you can do to a memory location before it actually wears out.
You can get the two characters (msd and lsd) of the number with the following two statements (assuming the variable is called 'x'):
If you want a leading zero changed to a blank, do:
All you have to do is send these characters to the LCD display using whatever routines you use for sending the "Line 1".
I was stuck in a rut and couldn't get away from my initial line of thought.
Thanks again for the simple solution.
J. Engel