LCD Terminal AppMod
DynamoBen
Posts: 366
I'm building a prototype that uses an LCD and some buttons for menu control. I decided to use the LCD Terminal AppMod since I had one on the bench. Because it runs at 5V I added some 1K resistors inline for the data bus and any bi-directional I/O. The displays works great, however when I manipulate the switches it alters the text on the display (the text is written in a repeat loop).
I thought this was an issue of noise so I tried some 10K resistors instead but the symptoms/problems still persist. I've checked my code and it all looks good, so I think this might just be an electrical/interface issue.
Any thoughts on what to try next?
I thought this was an issue of noise so I tried some 10K resistors instead but the symptoms/problems still persist. I've checked my code and it all looks good, so I think this might just be an electrical/interface issue.
Any thoughts on what to try next?
Comments
The switches are connected to the 4-bit inputs to the display. When you manipulate them, it will alter the text being written to the display. That's the way the device is designed. You have to stop writing new text to the display when you expect the user to press a button. If you want the pushbuttons and the display to work independently, they can't share the same I/O lines.
As the code is written I don't believe that I'm writing to the buss while reading the switch state. If that is the case then thats the source of my problem. I've attached my driver.
If you can replace the resistors on the LCD AppMod, change the 10K to 100K and the 1K to 10K, that will let it work with either a Propeller (with a 1K series resistor) or a Stamp.
You also may be able to operate the LCD AppMod off 3.3V and eliminate the 1K Propeller I/O pin series resistors which would fix the problem as well.