Shop OBEX P1 Docs P2 Docs Learn Events
Initialising LCD — Parallax Forums

Initialising LCD

vincentvincent Posts: 11
edited 2005-07-21 10:50 in BASIC Stamp
Hi, i have already successfully power up a 2x16 LCD with the 2p24/40 demo board. But we tried to input some initialising programs but it dosen't seems to respond. Any suggestion?

Some things·observed: One line of the LCD have a rather darker tone.

Vincent

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-20 12:30
    If you have one line very dark the LCD is not in fact initialized properly. Double-check your connections and your code.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • vincentvincent Posts: 11
    edited 2005-07-20 14:36
    Thanks for the info.

    But can you give us some suggestions on how to go about doing. We are really novice to this and need guidance. Thanks

    Vincent
  • YanroyYanroy Posts: 96
    edited 2005-07-20 14:49
    I don't know which LCD you're using or even whether it's serial or parallel, but I once had a problem similar to your using a standard parallel 2x17 LCD.· I fixed it by following the instructions in this powerpoint presentation to the letter.· Courtesy of google: http://coen.boisestate.edu/ssmith/ee533/overheads/LCD.pdf
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-07-20 14:50
    vincent,

    ·· What programs are you using now?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • vincentvincent Posts: 11
    edited 2005-07-20 15:51
    BS2p24/40 demo board
    Tm202a LCD
    BS2p40 IC
    Windows version BS2p.exe

    Vincent
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-07-20 16:05
    Okay,

    ·· What I mean is, what PBASIC Code are you running to initialize the LCD?· Please attach your code.· There might be a minor error in it which can be resolved.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • dandreaedandreae Posts: 1,375
    edited 2005-07-20 16:12
    If you are using the parallel LCD, try this code that is attached.· Make sure that the jumper is attached on the board next to the LCD connector.· Make sure that you·don't have anything connected to I/O pin 0 on the·board, if you do this will conflict with the parallel LCD.



    Dave


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Tech Support
    dandreae@parallax.com
    Http://www.parallax.com
  • vincentvincent Posts: 11
    edited 2005-07-20 16:31
    To: Chris

    Basically i reffered to the basic stamp manual version 2.0 and copy out the following codes below.

    Pg161:

    Init CD:
    PAUSE 1000
    LCDCMD 1,48
    PAUSE 10
    LCDCMD 1,48
    PAUSE 1
    LCDCMD 1,48
    PAUSE 1
    LCDCMD 1,32
    LCDCMD 1,40
    LCDCMD 1,8
    LCDCMD 1,12
    LCDCMD 1,6
    LCDCMD 1,1

    And also the demo program on page 165.

    To[noparse]:D[/noparse]ave

    What about the LCD(TM202A) that i have mention? Is it compatible with the basic stamp as well? Can you also attached a drawing of the connections, don't quite get what you are getting here.

    Sorry guys for all the trouble

    Vincent
  • dandreaedandreae Posts: 1,375
    edited 2005-07-20 16:40
    Do you have a data sheet for this LCD?

    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Tech Support
    dandreae@parallax.com
    Http://www.parallax.com

    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-07-20 16:46
    Here is a datasheet, link takes you directly to pinout page.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·1+1=10
  • dandreaedandreae Posts: 1,375
    edited 2005-07-20 16:58
    The pin out is the same as ours, therefore you may have a wiring issue?



    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Tech Support
    dandreae@parallax.com
    Http://www.parallax.com

    ·
  • Larry~Larry~ Posts: 242
    edited 2005-07-20 18:09
    Pinout is the same but the connector is on the side and pins are staggered.
    I have had trouble with the hookup on these, when in a hurry.
    ·
  • Larry~Larry~ Posts: 242
    edited 2005-07-20 18:23
    Parallax plug is made to plug onto this LCD so the parallax diagram is opposite of·the LCD
  • dandreaedandreae Posts: 1,375
    edited 2005-07-20 18:28
    Here is a document that has a schematic of the LCD connector.



    Dave


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Tech Support
    dandreae@parallax.com
    Http://www.parallax.com
  • vincentvincent Posts: 11
    edited 2005-07-21 04:39
    i jus realise that my LCD(TM202A) is a 2x20 LCD. Any issue with that if use it??

    Vincent
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2005-07-21 05:14
    Vincent -

    There is no specific issue or restriction on using such an LCD with a PBASIC Stamp, but both the initialization and use of such an LCD may be different from the (more usual) 2 x 16 model LCDs. Also, any advice or comments made prior to this discovery may need to be reviewed in light of your latest finding. Lastly, most sample/example programs utilize the concepts inherent in a 2 x 16 LCD such as the positional data (DDRAM address), and such programs may well need to be modified to operate properly with a 2 x 20 units.

    Regards,

    Bruce Bates
  • vincentvincent Posts: 11
    edited 2005-07-21 08:31
    Thanks guys, finally got it thru . Got it thru with Dave program and found out that i need to set to pin 0 and not pin 1
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-21 10:50
    Yes, as was stated earlier always check your connections related the the code you're running.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.