CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Connecting 2 LCD's together

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
RF
Guest







Connecting 2 LCD's together
PostPosted: Wed Jul 23, 2003 9:33 am     Reply with quote

Hi,

My project requires 2 off 16x2 LCD’s (HD44780 based) to be displayed together ie. the same information is displayed on both LCD’s in 4-bit databus mode. Without connecting the hardware, can anyone confirm whether the following lines can be connected together?

LCD1 LCD2 16F876A
---------------------------------------
RS to RS to TBD
E to E to TBD
R/W to R/W to TBD
D4 to D4 to TBD
D5 to D5 to TBD
D6 to D6 to TBD
D7 to D7 to TBD

Thanks in advance.
RF
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516286
R.J.Hamlett
Guest







Re: Connecting 2 LCD's together
PostPosted: Wed Jul 23, 2003 10:17 am     Reply with quote

:=Hi,
:=
:=My project requires 2 off 16x2 LCD’s (HD44780 based) to be displayed together ie. the same information is displayed on both LCD’s in 4-bit databus mode. Without connecting the hardware, can anyone confirm whether the following lines can be connected together?
:=
:=LCD1 LCD2 16F876A
:=---------------------------------------
:=RS to RS to TBD
:=E to E to TBD
:=R/W to R/W to TBD
:=D4 to D4 to TBD
:=D5 to D5 to TBD
:=D6 to D6 to TBD
:=D7 to D7 to TBD
:=
:=Thanks in advance.
:=RF

Yes, you can drive two displays like this. However there are some 'caveats'. You have to ensure that the driver is written, to allways allow enough time for each operation (you cannot 'poll' the busy flag on the displays), and you may well find there is a problem with noise on the second display (depends on the enviroment, and the wiring length).
I have done this in the past, with 8bit data, and using an interrupt driven 'sender', which transferred just one character every 1/100th second. This is slow enough, that the 'worst case' timing (usually a CLS operation), is still executed before the next character is transferred.

Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516288
RF
Guest







Re: Connecting 2 LCD's together
PostPosted: Thu Jul 24, 2003 1:38 am     Reply with quote

:=:=Hi,
:=:=
:=:=My project requires 2 off 16x2 LCD’s (HD44780 based) to be displayed together ie. the same information is displayed on both LCD’s in 4-bit databus mode. Without connecting the hardware, can anyone confirm whether the following lines can be connected together?
:=:=
:=:=LCD1 LCD2 16F876A
:=:=---------------------------------------
:=:=RS to RS to TBD
:=:=E to E to TBD
:=:=R/W to R/W to TBD
:=:=D4 to D4 to TBD
:=:=D5 to D5 to TBD
:=:=D6 to D6 to TBD
:=:=D7 to D7 to TBD
:=:=
:=:=Thanks in advance.
:=:=RF
:=
:=Yes, you can drive two displays like this. However there are some 'caveats'. You have to ensure that the driver is written, to allways allow enough time for each operation (you cannot 'poll' the busy flag on the displays), and you may well find there is a problem with noise on the second display (depends on the enviroment, and the wiring length).
:=I have done this in the past, with 8bit data, and using an interrupt driven 'sender', which transferred just one character every 1/100th second. This is slow enough, that the 'worst case' timing (usually a CLS operation), is still executed before the next character is transferred.
:=
:=Best Wishes

Thanks for your reply. The second LCD will be upto 10 metres away and therefore I assume that all the delays within the CCS lcd.c functions will have to be increased. I may give it a try. I think I might get rid of the second LCD and connect the analog signal to a Lascar DPM (digital voltmeter with built-in A/D). The advantage of using the DPM is that there are less wires to deal with.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516304
R.J.Hamlett
Guest







Re: Connecting 2 LCD's together
PostPosted: Thu Jul 24, 2003 2:09 am     Reply with quote

:=:=:=Hi,
:=:=:=
:=:=:=My project requires 2 off 16x2 LCD’s (HD44780 based) to be displayed together ie. the same information is displayed on both LCD’s in 4-bit databus mode. Without connecting the hardware, can anyone confirm whether the following lines can be connected together?
:=:=:=
:=:=:=LCD1 LCD2 16F876A
:=:=:=---------------------------------------
:=:=:=RS to RS to TBD
:=:=:=E to E to TBD
:=:=:=R/W to R/W to TBD
:=:=:=D4 to D4 to TBD
:=:=:=D5 to D5 to TBD
:=:=:=D6 to D6 to TBD
:=:=:=D7 to D7 to TBD
:=:=:=
:=:=:=Thanks in advance.
:=:=:=RF
:=:=
:=:=Yes, you can drive two displays like this. However there are some 'caveats'. You have to ensure that the driver is written, to allways allow enough time for each operation (you cannot 'poll' the busy flag on the displays), and you may well find there is a problem with noise on the second display (depends on the enviroment, and the wiring length).
:=:=I have done this in the past, with 8bit data, and using an interrupt driven 'sender', which transferred just one character every 1/100th second. This is slow enough, that the 'worst case' timing (usually a CLS operation), is still executed before the next character is transferred.
:=:=
:=:=Best Wishes
:=
:=Thanks for your reply. The second LCD will be upto 10 metres away and therefore I assume that all the delays within the CCS lcd.c functions will have to be increased. I may give it a try. I think I might get rid of the second LCD and connect the analog signal to a Lascar DPM (digital voltmeter with built-in A/D). The advantage of using the DPM is that there are less wires to deal with.

If it is only an analog signal, go the second route. 10m, is a long way, and you would really have to look at using some form of terminated transmission line to reliably send the signals this far. However don't send the signal as a voltage, but build a simple V-I converter (you don't have to go to the complexity of a system like 4-20mA, with the current offset from ground). Instead just use an op-amp, to drive the voltage into the line, and have the second pin of the connection, connected to a fixed resistor (perhaps 100ohm), then have the feedback loop of the op-amp, set to maintain the required voltage across this resistor. Add an identical resistor at the DPM, and you can have the same voltage developed here, despite the line voltage drops. :-)

Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516305
RF
Guest







Re: Connecting 2 LCD's together
PostPosted: Thu Jul 24, 2003 2:29 am     Reply with quote

:=:=:=:=Hi,
:=:=:=:=
:=:=:=:=My project requires 2 off 16x2 LCD’s (HD44780 based) to be displayed together ie. the same information is displayed on both LCD’s in 4-bit databus mode. Without connecting the hardware, can anyone confirm whether the following lines can be connected together?
:=:=:=:=
:=:=:=:=LCD1 LCD2 16F876A
:=:=:=:=---------------------------------------
:=:=:=:=RS to RS to TBD
:=:=:=:=E to E to TBD
:=:=:=:=R/W to R/W to TBD
:=:=:=:=D4 to D4 to TBD
:=:=:=:=D5 to D5 to TBD
:=:=:=:=D6 to D6 to TBD
:=:=:=:=D7 to D7 to TBD
:=:=:=:=
:=:=:=:=Thanks in advance.
:=:=:=:=RF
:=:=:=
:=:=:=Yes, you can drive two displays like this. However there are some 'caveats'. You have to ensure that the driver is written, to allways allow enough time for each operation (you cannot 'poll' the busy flag on the displays), and you may well find there is a problem with noise on the second display (depends on the enviroment, and the wiring length).
:=:=:=I have done this in the past, with 8bit data, and using an interrupt driven 'sender', which transferred just one character every 1/100th second. This is slow enough, that the 'worst case' timing (usually a CLS operation), is still executed before the next character is transferred.
:=:=:=
:=:=:=Best Wishes
:=:=
:=:=Thanks for your reply. The second LCD will be upto 10 metres away and therefore I assume that all the delays within the CCS lcd.c functions will have to be increased. I may give it a try. I think I might get rid of the second LCD and connect the analog signal to a Lascar DPM (digital voltmeter with built-in A/D). The advantage of using the DPM is that there are less wires to deal with.
:=
:=If it is only an analog signal, go the second route. 10m, is a long way, and you would really have to look at using some form of terminated transmission line to reliably send the signals this far. However don't send the signal as a voltage, but build a simple V-I converter (you don't have to go to the complexity of a system like 4-20mA, with the current offset from ground). Instead just use an op-amp, to drive the voltage into the line, and have the second pin of the connection, connected to a fixed resistor (perhaps 100ohm), then have the feedback loop of the op-amp, set to maintain the required voltage across this resistor. Add an identical resistor at the DPM, and you can have the same voltage developed here, despite the line voltage drops. :-)
:=
:=Best Wishes

Yes, you are right. The V-I and I-V method is a good idea to overcome the problem of line voltage drop. Thanks again.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516307
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group