Pages: [1]   Go Down
Author Topic: Clear Screen on KS0108 128x64 GLCD  (Read 697 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is using a MSP430, but with converted code from an Arduino library.

The GLCD is 128x64, using two KS0108 controllers. The display initializes fine, but when I clear screen (fill screen with 0x00), I get many little things leftover, as seen here:


The location/width of the leftover bits is random, but they are always arranged in those rows, and are 8 blocks high.

Any ideas on what is going wrong?
Logged

Dallas, TX USA
Offline Offline
Edison Member
*
Karma: 47
Posts: 2341
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Any ideas on what is going wrong?

So you ported the glcd library to the MSP430?
How do you really know that the display initializes fine?
Given you have had to modify the code to port it to the TI MCU, there is no way for me to accurately predict what is going on.
My suspicion is that the control line timing is being violated.
Violating the timing can cause all sorts of strange issues because the module is not accurately seeing
commands/data nor is the MCU accurately seeing data that is attempted to be read from glcd memory.

Almost always when you see these sorts of weird displays, it is due to timing being violated.
It can be from improper BUSY polling to simply not strobing the control lines with the proper delays
between them.

--- bill
Logged

Pages: [1]   Go Up
Jump to: