Two LCDs on one PIC


Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Apr 2003
    Location
    Cambridge - UK
    Posts
    1,033

    Default Two LCDs on one PIC

    Originally posted by NavMicroSystems on - 4th August 2004 11:22

    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
    ------------------------------
    Attached Images Attached Images  

Similar Threads

  1. Two LCDs on one PIC
    By NavMicroSystems in forum Schematics
    Replies: 6
    Last Post: - 29th January 2013, 06:56
  2. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  3. 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
  4. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14
  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