PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Nov 10, 2010 1:20 pm |
|
|
You did it the opposite way. It's best to locate a driver first, for your
proposed lcd. Then buy it.
Here's the data sheet for your LCD:
http://www.oppod.com/LCM_SPEC%5CGraphic%5CTG12864E.PDF
Look at the block diagram in the bottom right corner. In the middle of it,
there is a block that accepts the control signals and the data. It's called
S6B0108. That's a suspicious name. It has "0108" in it. Look at this
list of CCS driver and example files for graphic LCDs.
Quote: |
c:\program files\picc\examples\ex_glcd.c
c:\program files\picc\drivers\glcd.c
c:\program files\picc\drivers\graphics.c
c:\program files\picc\drivers\hdm64gs12.c
c:\program files\picc\drivers\ks0108.c
c:\program files\picc\drivers\sed1335.c |
So it looks like ks0108.c might work. But if you look inside the driver file
it does not have the CS1 and CS2 signals that are shown in the S6B0108
block diagram. Also, ks0108.c says it only supports 64x64 pixels.
Your LCD is 128x64 pixels. So then, use a text search engine to search
all CCS driver files for "KS0108". Then we find this one:
Quote: | c:\program files\picc\drivers\hdm64gs12.c |
It has this at the top:
Quote: |
//// This file contains drivers for using a Hantronix HDM64GS12 with ////
//// a KS0108 display controller. The HDM64GS12 is 128 by 64 pixels. ////
//// The driver treats the upper left pixel as (0,0). ////
|
It also has the CS1 and CS2 signal in it. It looks like it will probably work.
Also, you use Google to search for this:
You can read all the documents where they discuss the compatibility of
these controllers.
The things I listed above show how to identify the correct CCS driver for
your LCD. |
|