Parallax LCD Help
· I am using the BasicMicro 08/18 development board to connect to a Parallax serial LCD, model 27979.· I am having problems.· I am using the 16F628.
CPU = 16F628
MHZ = 10
CONFIG 16142
·
·
·
DISP CON B0
DISP_BAUD CON i19200· 'invert data at baud of 19200
·
·
SEROUT DISP,DISP_BAUD,[noparse][[/noparse]"TEST"]
has anyone here had problems like this or did I miss something?
CPU = 16F628
MHZ = 10
CONFIG 16142
·
·
·
DISP CON B0
DISP_BAUD CON i19200· 'invert data at baud of 19200
·
·
SEROUT DISP,DISP_BAUD,[noparse][[/noparse]"TEST"]
has anyone here had problems like this or did I miss something?
Comments
The Stamps in Class LCD link is at the bottom of this page
www.parallax.com/detail.asp?product_id=27979
Your information is outdated - the new Stamps in Class tutorial I linked to is for the Parallax serial LCD. The examples are in PBasic - and will need to converted to MBasic before you can run them on a PIC processor.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
DISP CON B0
DISP_BAUD CON n19200 ' data at baud of 19200
SEROUT DISP,DISP_BAUD,[noparse][[/noparse]"TEST"]
then the LCD shows ?>>>?>>
when I invert it shows TEST, that's why I have been inverting the data...right, wrong or otherwise, I'm still cracking the code using this MBASIC and a PIC 16F628...I should have just went from PBASIC to Assembly to begin with. Anyway, what I'm thinking about doing now is using the BS2 to control the LCD and Keypad with MEMKEY and seperate the target and use the PIC 16F628 for the I/O commands (The reason behind NOT using the STAMP is $$$$, the PIC 16F628 runs for under $3.00 a pop and the life cycle of the target we deal with is less that 30 minutes before it gets destroyed. That being said, now I'm thinking trying to get the STAMP to communicate with the 16F628 might be a whole new can of worms. The LCD and keypad will be detachable so the operator can select the variables in the program and we don't replace 15 STAMPS a day.
They may have a different definition of inverted data; we consider inverted data when the start bit = 1, true data has the start bit = 0. So, just figure out which works with their compiler and the rest of it should be easy. The Parallax Serial LCD behaves like a simpler terminal; once you can write something, you can do anything. Once you understand who their serial stuff works, you should be able to communicate with the Stamp fairly easily, you can even using our SERIN/SEROUT examples.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax