Serial LCD with SX28
Hey Everyone,
I'm using the LK202-25 LCD with Keypad interface that Parallax sells.· I can send it a single letter just fine, I can also send it a string to display, but I have to do it one letter or number at a time, which is a big pain.· If I send the string all at one (as in serout TX, baud, "string"), I only see the first letter of the string.· Why is this so?· Is there anyway around this?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
I'm using the LK202-25 LCD with Keypad interface that Parallax sells.· I can send it a single letter just fine, I can also send it a string to display, but I have to do it one letter or number at a time, which is a big pain.· If I send the string all at one (as in serout TX, baud, "string"), I only see the first letter of the string.· Why is this so?· Is there anyway around this?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
Comments
·
·· If you could post (attach) the code you’re using that might help us to help you.· Also, are you using a resonator or crystal for your clock or the internal osc?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
Eric
SailorMan is right. The serout command transmits one serial byte at a time. To send several characters one after the other you will need to loop and update the character to be sent until all have been transmitted. This is not hard. In fact, there is a good example of how to do this in the SX/B help files. Click on the serout command. Scroll to the bottom of the page to where is says "Related projects:." Click on the RFID Reader Interface link and look at the serial subroutines in contains. Of particular interest to what you are trying to do is the LCD_OUT: subroutine. I have copied it here for you below but you may wish to examine the entire sample program to figure out how it works.
LCD_OUT gets called as shown below which sends the entire string to the LCD.
I hope this helps!
- Sparks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
Post Edited (crgwbr) : 10/9/2006 6:49:19 PM GMT