Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] PIC 16f877a & lcd

Status
Not open for further replies.

mustafa alkhani

Newbie level 3
Joined
Jan 14, 2015
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
20
i have a problem where the LCD showing wrong data when i am use along cable to connect it with the pic, when i am use a short cable its work fine
 

the cable is Ethernet cable cad 6, long about 25 meter.
 

Cough cough.....

There is no technical maximum, it varies according to the type of cable but I would not recommend more than about 10cm with CAT-6 cable. The wires are twisted pairs which in an unbalanced system like an LCD will create havoc with the signals, the cable capacitance and inductance is also far too high.

If the LCD has to be positioned remotely, you need to use a more appropriate link, for that distance. You stand almost zero chance of carrying TTL level voltages at relaively high speed. A better idea would be to use a serial link to send the data and some 'intelligence' (=MCU) at the LCD end to recover it and format it for the LCD module to use. Given the relatively slow speed an LCD works, you should be able to do it over a simple RS232 link at modest Baud rate.

Brian.
 

thank you, but i am ask if i reduce the crystal (speed micro-controller) and using delay in the code is that helpful ?
 

That might work but over such a long distance you would need to reduce your clock speed to maybe 0.25MHz or even lower. Adding delays may help but only if you are using your own LCD driver routines. Adding delays between normal LCD library functions will not work. The problem lies with the time it takes for the voltage on each wire to rise and fall rather than the timing between commands or data being sent to the LCD.

Brian.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top