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

Serial LCD

SeaGullSeaGull Posts: 2
edited 2007-07-11 14:27 in General Discussion
Hi!

Can I connect this LCD to the USART output pin on an AVR ATMega microcontroller?
I have seen this thread,
http://forums.parallax.com/forums/default.aspx?f=21&m=180521
but can not find information about databits, stoppbits and parity for the serial interface.

/Stefan

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2007-07-10 11:48
    SeaGull,

    Can't quite tell which LCD you're talking about. But, armed with the Parallax part number you can usually get the complete docs online. Many of the displays work at 2400,8,N1 or 9600, 8,N,1.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-07-10 11:59
    Stefan -

    The documentation for all of the Parallax LCD's can be found by clicking on the appropriate LCD on the following web page:
    http://www.parallax.com/html_pages/products/audiovisual/lcd.asp

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • SeaGullSeaGull Posts: 2
    edited 2007-07-10 19:54
    It's the 2x16 display I'am talking about. I have read these docs and can not find this information, but it should be 8 databits, and the remaining combinations are easy to test.
    But how about hardware, the Basic Stamp outputs are TTL levels (?), and an ATMega at 5V supply are also TTL levels, it should work then ... ?

    /BR. Stefan
  • stamptrolstamptrol Posts: 1,731
    edited 2007-07-11 14:12
    SeaGull,

    In the docs, the sample program uses 19.2K baud. The baud mode parameter is 32, which confirms 8,N,1.

    The display is set up to use TTL levels, and as mentioned in the advertising blurb, may need a RS232 level shifter for use with PC-style RS-232 levels.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • JonnyMacJonnyMac Posts: 8,939
    edited 2007-07-11 14:27
    The Parallax Serial LCD uses TTL serial, true mode, i.e., the idle state of the line is high and a start bit goes low. You need to ensure that the polarity out of your UART matches this; the rest is easy after you match the baud rate setting of the LCD (2400, 9600, or 19.2K).
Sign In or Register to comment.