AMcTools Forum 
  HomeHelpSearchLogin  
 
Pages: 1 2 
Send Topic Print
KS0108B Graphic LCD (Read 59797 times)
culibin_100
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 16
u.a  donbass
Re: KS0108B Graphic LCD
Reply #15 - 02/14/11 at 19:22:02
 
All hello! Forgive for bad English. I have read all posts and the acid has downloaded last library for for graphic lcd . If not difficultly lay out a program slice on авр the microcontroller (written on the assembler) for management of the display where it will be possible to understand as it works. All my attempts are unsuccessful.версия programs 3.15 display wh12468 (winstar) in advance many thanks :'(
Back to top
 
 
  IP Logged
ThVortex
Global Moderator
*****
Offline



Posts: 160
Austin, TX, USA
Gender: male
Re: KS0108B Graphic LCD
Reply #16 - 02/14/11 at 20:26:42
 
I can't find the "wh12468" part number you mention. Can you provide me with a link to the datasheet? This is the website where I was looking for "winstar" displays:

http://www.cresttech.com.au/lcd_index.html
Back to top
 
 
WWW   IP Logged
culibin_100
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 16
u.a  donbass
Re: KS0108B Graphic LCD
Reply #17 - 02/15/11 at 08:41:12
 
http://catalog.compel.ru/lcm/info/WG12864A-YGH-TEA%20%28WINSTAR%29
Here all description but at me leaves nothing.буду is very grateful for any help

Back to top
 
 
  IP Logged
ThVortex
Global Moderator
*****
Offline



Posts: 160
Austin, TX, USA
Gender: male
Re: KS0108B Graphic LCD
Reply #18 - 02/15/11 at 14:12:26
 
That link didn't work for me, but I found the WG12864A model on the manufacturer's website:
http://www.winstar.com.tw/products_detail_ov.php?lang=en&ProID=48

This LCD uses a KS0108 controlller chip which is the same thing that the [url=http://sites.google.com/site/thvortex/vmlab/graphiclcd]graphiclcd[/url] component emulates, and which is used by many manufacturers for their 128x64 displays. You should read the [url=http://www.eng.auburn.edu/~nelson/courses/elec5260_6260/LCD/KS108B.pdf]KS0108 datasheet[/url] to understand how to actually program the display.

I also recommend looking at the [url=http://www.geocities.com/dinceraydin/lcd/index.html]LCD Info Page[/url] for a good introduction (look under the Graphics LCD section)
Back to top
 
 
WWW   IP Logged
culibin_100
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 16
u.a  donbass
Re: KS0108B Graphic LCD
Reply #19 - 02/15/11 at 16:24:25
 
Thanks for the answer. During what time of days you are at a forum. That correspondence was faster?  
In a web a simulator the display works for me but in practice doesn't want.не there passes even a command of initialization without speaking about all the rest

Back to top
 
 
  IP Logged
culibin_100
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 16
u.a  donbass
Re: KS0108B Graphic LCD
Reply #20 - 02/16/11 at 17:00:18
 
Tell please readiness flags to read at each chip separately or it is possible at both chips at once?

Back to top
 
 
  IP Logged
ThVortex
Global Moderator
*****
Offline



Posts: 160
Austin, TX, USA
Gender: male
Re: KS0108B Graphic LCD
Reply #21 - 02/16/11 at 17:55:07
 
You can write data to both chips at once, but when reading either the readiness flags or the memory data, you can only do it one chip at a time. If you tried reading from both, you can end up with a conflict where one chip tries to drive 0V while another tries to drive 5V on the same data lines.
Back to top
 
 
WWW   IP Logged
culibin_100
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 16
u.a  donbass
Re: KS0108B Graphic LCD
Reply #22 - 02/16/11 at 19:29:40
 
Thanks for the answer.в the new description lcd  taimings  differ from those that I had before and probably therefore it turned out nothing. And in vmlab taimings coincide with mine for the display wg12864A-ygh?
Back to top
 
 
  IP Logged
ThVortex
Global Moderator
*****
Offline



Posts: 160
Austin, TX, USA
Gender: male
Re: KS0108B Graphic LCD
Reply #23 - 02/16/11 at 23:19:32
 
The KS0108B chip supports clock speeds from 50KHz to 400Khz so there can be a lot of variation between LCD modules from different manufacturers. Right now, the graphiclcd component assumes the slowest 50KHz speed.

The most reliable way to write code is to not assume any timings at all. Always read back the status flags after every command to check if the LCD panel is finished with the previous command.
Back to top
 
 
WWW   IP Logged
culibin_100
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 16
u.a  donbass
Re: KS0108B Graphic LCD
Reply #24 - 02/17/11 at 10:21:36
 
it makes sense. thank you very much. I will try to write the new program

Back to top
 
 
  IP Logged
culibin_100
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 16
u.a  donbass
Re: KS0108B Graphic LCD
Reply #25 - 02/27/11 at 10:50:45
 
I again have failure. It is possible to load here archive of my project for your help?

:'(
Back to top
 
 
  IP Logged
ThVortex
Global Moderator
*****
Offline



Posts: 160
Austin, TX, USA
Gender: male
Re: KS0108B Graphic LCD
Reply #26 - 02/27/11 at 21:25:45
 
Sure, you can attach your project files in the forum. You'll have to put them into a .zip file first or the forum will not accept the file.
Back to top
 
 
WWW   IP Logged
culibin_100
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 16
u.a  donbass
Re: KS0108B Graphic LCD
Reply #27 - 03/01/11 at 19:12:09
 
Here my project prompt where I have made a mistake

Back to top
 
  IP Logged
ThVortex
Global Moderator
*****
Offline



Posts: 160
Austin, TX, USA
Gender: male
Re: KS0108B Graphic LCD
Reply #28 - 03/07/11 at 04:08:53
 
Sorry for not responding sooner but I was a little busy this week. Looking at the your code, I think you may be mixing up the polarity on several signals. When debugging these kinds of problems, look at the scope window carefully.

For example. the first operation your code does is a read (PD1 high) with both chips selected (PD4 & PD3 low). Keep in mind that the chip select lines can be either active high or active low on real hardware (each controller chip has multiple chip select lines; it's up to the LCD manufacturer which CS line is used). In the VMLAB component, the chip select lines are active low.
Back to top
 
 
WWW   IP Logged
culibin_100
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 16
u.a  donbass
Re: KS0108B Graphic LCD
Reply #29 - 11/15/11 at 14:59:35
 
Thanks for the answer.я has understood all works as thanks
Back to top
 
 
  IP Logged
Pages: 1 2 
Send Topic Print