Need help with 2 X 16 Parallel LCD Display
mike_s
Posts: 42
I am just about at my wits end trying to reliably integrate a hitachi· type 44780 16x2 lcd to a basic stamp 2
I am running it in four bit mode but the results are really inconsistent.
If the power goes down it does not always initialise and show the message in a variable named msg.
I have also found that spaces do not work in strings. All I get is a muddled up mess.
I have started the main sub with a 150 pause and have tried various other intervals to allow the ideal power conditions for initialisation.
What could be causing the problem?
I find if I download the program again sometimes this works but that is useless once it is installed in the appliance.
I am at the point of writing obscene messages into the variable please someone put an end to my frustration.
I am running it in a loop for testing purposes but the display seems to either get stuck on the message without clearing the screen and rewriting or it has no display or just a screen full of blocks.
Post Edited By Moderator (Chris Savage (Parallax)) : 12/24/2005 1:50:24 AM GMT
I am running it in four bit mode but the results are really inconsistent.
If the power goes down it does not always initialise and show the message in a variable named msg.
I have also found that spaces do not work in strings. All I get is a muddled up mess.
I have started the main sub with a 150 pause and have tried various other intervals to allow the ideal power conditions for initialisation.
What could be causing the problem?
I find if I download the program again sometimes this works but that is useless once it is installed in the appliance.
I am at the point of writing obscene messages into the variable please someone put an end to my frustration.
I am running it in a loop for testing purposes but the display seems to either get stuck on the message without clearing the screen and rewriting or it has no display or just a screen full of blocks.
Post Edited By Moderator (Chris Savage (Parallax)) : 12/24/2005 1:50:24 AM GMT
txt
904B
Comments
http://www.parallax.com/detail.asp?product_id=603-00006
P.S. - You should try to use a descriptive subject line when posting.· I added one for you this time.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
http://www.parallax.com/detail.asp?product_id=27220
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
I heard lcds were difficult to init but this is ridiculous.
Where did you pick up the LCD and/or what is the manufacturer and model number?
Regards,
Bruce Bates
While it is not a genuine hitachi and in fact in the attached pdf for it you will notice the ground and postive supply are opposite to the arrangement on the hitachi. Could this be a printing error I dare not reverse polarity to the lcd fearing the consequences.
Only markings on the back of the lcd are SDEC ssc2a16dry-01
2k05-03
Like I said if I patiently hit the reset enough times the lcd finally changes to the correct display. Hope that I have given enough information?
I don't know whether it's because of my inadequate programming skills or incomplete understanding of the 4 bit timing chart but I'll just have to budget enough pins to run in 8 bit mode unfortunately.
How to do this programatically I don't know.