Two LCDs on one PIC


Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762

    Default Two LCDs on one PIC

    As this has been asked several times:
    Here is an example how to connect two LCDs (or one LCD with two controllers) to the PIC.

    You need just one additional Port Bit to toggle between the two controllers.

    As only one Controller is enabled at a time
    and the LCD is initialized when the first LCDout command is issued
    you will need to reset the "INIT Flag" after the first LCD has been initialized.
    Then select the second LCD and send a "CLEAR" to initialize the second LCD.

    See PBP Manual Section 5.37

    Example:
    (assuming LCD-Select is connected to PortB.1)

    Add to the beginning of your code:

    ------------------------------
    LOW PortB.1 ' Select LCD 1
    LCDout $Fe,1 ' initialize and Clear LCD 1
    Flags=0 ' Reset "INIT-Flag"
    HIGH PortB.1 ' Select LCD 2
    LCDout $Fe,1 ' initialize and Clear LCD 2
    ------------------------------

    See the schematic:
    Attached Images Attached Images  

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  3. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14
  4. Two LCDs on one PIC
    By lester in forum FAQ - Frequently Asked Questions
    Replies: 3
    Last Post: - 22nd February 2005, 02:28
  5. how to connect 2 LCDs on a PIC
    By f1fco in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 15th April 2004, 17:59

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