Harikrishnan
Harikrishnan

Reputation: 3812

LCD screen corrupting

I am using an MSP430F5418 with the ST7565R LCD controller with easyGUI. I am using SPI to communicate with the LCD.

Suppose I have a screen like this:

Actual Screen

But sometimes (rarely) when I press a key (anything which make the testing board to move, usually it comes when pressing the key) the screen goes like this:

Jumbled

I didn't do anything on the code for this change... Why did it happen?

Upvotes: 0

Views: 307

Answers (3)

Harikrishnan
Harikrishnan

Reputation: 3812

I tried by adding the 'Display start line to zero' command before each LCD command so that the screen will never be corrupted. And That works for me :-). So it avoid the loose connections while moving the device.

Upvotes: 1

Soren
Soren

Reputation: 14698

It sounds like a bug in your code -- I am not familiar with the particulars of easyGUI or the particular controller, so this is just a wild guess, but would it so happen that somewhere in your code you would do a printf or write to stdout which then would go to the same device which is also your display, and when one of these characters is a newline or when the line wraps around the display would roll up one character?

Upvotes: 2

mjh2007
mjh2007

Reputation: 776

It looks like you are using custom LCD glass. If that's the case check your connections between the display controller and the LCD glass. If the connections are not good it's possible that the display controller is turning on the wrong segments.

Check the pinout of the LCD glass along with the segments that are programmed to be on vs. the segments that are actually on to see if they are on adjacent pins. If they are then your connector is likely the problem.

Upvotes: 0

Related Questions