Author Topic: messed up lcd data lines  (Read 1057 times)

0 Members and 1 Guest are viewing this topic.

Offline tristantechTopic starter

  • Jr. Member
  • **
  • Posts: 34
  • Helpful? 0
messed up lcd data lines
« on: August 20, 2009, 03:35:22 PM »
I am interfacing a graphic LCD i bought at sparkfun with an Atmegat644. I know the code is fine, because this has worked a few times, but it fails 99% of the time. Anyways, to make sure the code was working, i probed some of the lines with a 'scope and saw this on the data lines. (see picture below)

I think this is the problem... The signal has these funny decays and all kinds of noise that is mis-interpreted by the display. This is on every data line, but not any control lines. data lines are on PORTB. The internall pullup resistors are off and the data lines are bi-directional

My Question is: why does this happen and how can i fix it?

Hey! Visit my website @ http://www.tristantech.net

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: messed up lcd data lines
« Reply #1 on: August 22, 2009, 09:38:50 PM »
Hi,

[...] I know the code is fine, because this has worked a few times, but it fails 99% of the time.
"Fine" and "Fails 99% of the time" seems to me to be *ahemm* slightly conflicting terms.


Anyways, to make sure the code was working, i probed some of the lines with a 'scope and saw this on the data lines. (see picture below)

I think this is the problem... The signal has these funny decays and all kinds of noise that is mis-interpreted by the display. This is on every data line, but not any control lines.
If you're absolutely sure it's soldered perfectly, try slowing the comms down just a bit, to see if the errors diminish or vanish completely. What happens then?

Did you perhaps use long leads between the controller and the display?

Do you use the busy signal to pause comms, or do you just spurt it out as fast as possible?
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

 


Get Your Ad Here