LCDInfo.com
http://forum.lcdinfo.com/

Programming display with KS0108B HELP
http://forum.lcdinfo.com/viewtopic.php?f=9&t=554
Page 1 of 1

Author:  zarpjj [ Fri Mar 05, 2004 10:39 ]
Post subject:  Programming display with KS0108B HELP

Hello all

I am new in this forum, it is the first time i post a message hier.
As i can see, there are many usefull informations for those will use LCD display.
You have made a great job Henri, have energy to continue.

So now my questions or problems
I have a graphic lcd 128x64 dot (spec hier : http://www.e-lab.de/downloads/DOCs/DEM128064ASYH-LY.pdf).
I plan to use it for displaying informations of flight simulator extracted from a sheared memory area.
I am using a USB -> I2C interface card and the LCD is connected to the I2C bus trought a small I2C adapter.

I almost read all concerning this KS0108 on the forum, i found well and read this topic too http://www.skippari.net/phpBB2/viewtopi ... ght=ks0108, but i am completely lost, i am not able to light any pixel on this display.
What it would be usefull for me, not a program ready to use, would be a flow chart describing the manner of proceding to initialize this display and to post a character on this display (signals to be applied to the various entries of the display).

If one among you has this informations, they would be to me of a great help.

If you miss some information, do not hesitate to ask me.

Thank's in advance for all.

Zarpjj

PS : Sorry for my english, my mother tongue is french

Author:  Henri [ Mon Mar 08, 2004 16:55 ]
Post subject: 

Do you have some more info about the USB->I2C interface and the I2C adapter ? Some links, datasheet, etc...
Would make it easier for me to understand the situation.

I think I might have seen a flowchart describing KS0108 initialize and other functions somewhere. I'll have a look if I can find it.

Author:  zarpjj [ Mon Mar 08, 2004 17:20 ]
Post subject: 

Hello Henri

I am using this Interface from Devasys.com : schematics.
And i am using my own interface to connect the LCD display to the I2C bus : schematics.

Hope this info could help you.

Thanks in advance

Zarp JJ

Author:  Henri [ Mon Mar 08, 2004 17:34 ]
Post subject: 

Couldn't find a flow chart but there isn't much initialization needed for KS0108.

Have you looked at here for some KS0108 intro: http://www.geocities.com/dinceraydin/lcd/gfxintro.htm

I have also posted some code here where you can see what things I've done in initialization:
http://www.skippari.net/phpBB2/viewtopic.php?t=132
From the above link you can see the timing diagram to write data to the display also. Do you understand that ?

When writing data to the display first set R/W pin LOW to tell the display you are writing to it. Also set the RS pin to LOW or HIGH to tell the display if you are sending a command byte or data byte. Then put the data to the data lines. After that strobe the E line and the display should read the byte from data lines.

Here's a summary of what the commands that can be sent to the display:
Image

These are the things you need to do to get something to the display:
Send the DISPLAY ON command. Send DISPLAY START LINE command and set it to 0. Also send both SET PAGE and SET Y ADDRESS commands with 0 as parameter. Now you should be able to write data to the display.

Page 1 of 1 All times are UTC + 2 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/