Advanced Techniques with Serial LCDs
Cogburn
Posts: 62
On·Scott Edward's website,·http://www.seetron.com/pdf/lcd_an1.pdf·there is available for download the·"LCD Serial Backpack App Note No.1 which has the big numbers I want on my LCD
I have a Parallax #27979 4 by 20 LCD.· Using the template available from Parallax's website for that LCD, I have tried to cut and paste some of Scott Edward's code into that template so that I can display 1 inch numbers on the Parallax LCD.· I have not had much luck and I am confused with some of the code·in the Scott Edwards program called BIGNUM.bs2 such as:
cgRAM con 64
and:
pat VAR EEptr
I have never seen a variable declared as anything but a bit, byte, nibble or word
what about this one:
SEROUT 0,N96N,[noparse][[/noparse]32]
I realize that it is a serout command for pin 0 on the bs2 and that N96N is a baud rate but what does the [noparse][[/noparse]32] signify?
He also sets his serout pin on the bs2 low when he initializes and waits for 1 sec.· The parallax version sets this pin high to initialize
I guess what I am trying to discover is how much of the code from his example can be used with the #27979 and how much is proprietary to his own serial backpack.·
I believe that much of his code especially the data statements and the assignment of special characters to lines 1,2,3, and 4 will transfer to any 4 line serial LCD but so far I just get gibberish on the LCD.
Anyone out there have experience with this Scott Edwards program on a Parallax LCD?
·
I have a Parallax #27979 4 by 20 LCD.· Using the template available from Parallax's website for that LCD, I have tried to cut and paste some of Scott Edward's code into that template so that I can display 1 inch numbers on the Parallax LCD.· I have not had much luck and I am confused with some of the code·in the Scott Edwards program called BIGNUM.bs2 such as:
cgRAM con 64
and:
pat VAR EEptr
I have never seen a variable declared as anything but a bit, byte, nibble or word
what about this one:
SEROUT 0,N96N,[noparse][[/noparse]32]
I realize that it is a serout command for pin 0 on the bs2 and that N96N is a baud rate but what does the [noparse][[/noparse]32] signify?
He also sets his serout pin on the bs2 low when he initializes and waits for 1 sec.· The parallax version sets this pin high to initialize
I guess what I am trying to discover is how much of the code from his example can be used with the #27979 and how much is proprietary to his own serial backpack.·
I believe that much of his code especially the data statements and the assignment of special characters to lines 1,2,3, and 4 will transfer to any 4 line serial LCD but so far I just get gibberish on the LCD.
Anyone out there have experience with this Scott Edwards program on a Parallax LCD?
·
Comments
Better break out the PBASIC Reference Manual and review the pages on constants and variables. Here is what you have:
cgRAM con 64 'Assign the variable to decimal 64 ($40 or space)
and
pat VAR EEptr 'Assign an alias name·to the variable EEptr
You then asked:
what about this one:
SEROUT 0,N96N,[noparse][[/noparse]32] 'Output decimal 64 ($40 or space)
Regards,
Bruce Bates
Post Edited (Bruce Bates) : 10/15/2006 7:57:45 AM GMT
They have different "controllers" and [noparse][[/noparse]therefore] command sets. Plus it doesn't look like the Parallax has a "Big Character" mode - so it would be a non-trivial task to produce them.