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:
Bookmarks