[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
Visit site
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
 

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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…