2 LCD Displays, one Pic


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2003
    Posts
    985

    Default 2 LCD Displays, one Pic

    Hi Guys,
    So I would like to connect 2 seperate identical LCD modules to the same pic.
    Do I just connect everything in parallel except the contrast and enable pins,
    then just toggle the enable pins to select which display I'm talking to?

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Art, I have done just that in the past for a few projects, except I have 1 enable line that is dedicated to the enable port pin declaired with 2 resistors of 1 K ohm value connected to the enable line from the processor. Then each of the other resistor legs get connected to the respective display enable lines. Then I just used 2 remaining processor pins connected to the the display enable lines respectivly, these pins would be held low and set as outputs. Now to communicate to a display you just set the respective (enable) pin to an input state then send the lcd commands to that display. The other display will keep its former displayed material as it's (enable) line would be held low.

    Dave Purola,
    N8NTA

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,802


    Did you find this post helpful? Yes | No

    Default

    Darrel had done this but cannot find the link in the forum.

    If he gets back on-line I am sure he will post it.

    Ioannis

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Sure I will ...

    Two LCDs on one PIC
    http://www.picbasic.co.uk/forum/show...=2388#post2388

    Maximun Cable Length for PIC to LCD
    http://www.picbasic.co.uk/forum/showthread.php?t=7596

    <img src="http://www.picbasic.co.uk/forum/picture.php?albumid=1&pictureid=4" />
    DT

  5. #5
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Nice neat breadboarding there DT

  6. #6
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    Cheers, that's about how I expected it would work except for the trick with the resistors.

  7. #7
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Art, What Darrel shows is what I was talking about....

    Dave Purola,
    N8NTA

  8. #8
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    No wI'm wondering why you'd use 3 pins to control 2 Enable signals?
    Why not just use one pin per LCD Enable pin, and manually set each one high
    to talk to each LCD display?

  9. #9
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Because LCD's are sent data "Synchronously".
    Which means that the data is Clocked in with a pulse, and that pulse is on the Enable line.

    For a 4-bit interface, it takes two clocks per byte.

    So the Enable lines must be controllable by LCDOUT, and LCDOUT can only control one.

    The other two Disable outputs simply keep the "Clock" from getting to that display.

    hth,
    DT

  10. #10
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,802


    Did you find this post helpful? Yes | No

    Default

    Art, think of the two extra lines as a CS (Chip Select) line of the LCD to be active.

    Ioannis

  11. #11
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    Ah, never mind, I thought the Enable pin was simply held high to talk to the LCD.
    I guess I thought wrong.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts