View previous topic :: View next topic |
Author |
Message |
sjharris
Joined: 11 May 2006 Posts: 78
|
Vishay 80x32 LCD |
Posted: Tue May 19, 2009 4:53 am |
|
|
Hello All,
I am a newbie to LCD interfacing and wondered if anyone could give me any tips on interfacing to the following module:-
Vishay 80x32 Graphics LCD
http://www.datasheetcatalog.org/datasheet/vishay/080x32a.pdf
Is there an example of interfacing to this type of display?
Any help would be most appreciated.
Thanks
SH |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue May 19, 2009 1:53 pm |
|
|
This thread has a KS0713 serial-mode driver. Note the comments
made with suggested improvements.
http://www.crystalfontz.com/forum/showthread.php?t=5123
Some #include lines in the source code are not visible. Just go to the
"View Source" menu in your web browser to see those lines. |
|
|
sjharris
Joined: 11 May 2006 Posts: 78
|
|
Posted: Wed May 20, 2009 6:46 am |
|
|
Thanks for help,
It has helped me understand how to interface / control greatly.
The one thing that I am still a little unsure of is the different controllers on LCD's.
How may the code need to be changed to control a different controller on a different LCD??
Are the commands sent to the controller (i.e. 0xa0, 0xc0, 0xA3 etc) going to be the same across different controllers?
Also what are the pins on the PIC connected to,
B1 - Reset
B2 - SID pin (Serial Data??)
B3 - SCLK (Serial clock??)
B4 - CS1B (?????)
B7 - RS (Register Select??)
Cheers
SH |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed May 20, 2009 11:29 am |
|
|
Quote: |
Are the commands sent to the controller (i.e. 0xa0, 0xc0, 0xA3 etc)
going to be the same across different controllers? |
It's possible, but I would not depend upon it. There's no requirement
that manufacturers make their controllers compatible with each other.
Some are, but some are not. It has to be verified by closely comparing
the data sheets (or by looking for some notice of compatibility from
the manufacturer).
Quote: |
How may the code need to be changed to control a different controller on
a different LCD?? |
You gave a specific LCD that you wanted to make a driver for.
I found sample code for that one for you. If you acquire another LCD
then new sample code will have to be found (or written). Your current
LCD has an SPI interface, which most LCD's do not have. Most of them
have a parallel interface.
Quote: | Also what are the pins on the PIC connected to, |
Look on page 2 of the data sheet from your link:
http://www.datasheetcatalog.org/datasheet/vishay/080x32a.pdf
It gives the pinout of the LCD.
You can make up a table of the pin connections between the PIC and
the LCD by looking at the #define statements in the sample code
and the list on page 2 of the LCD data sheet. |
|
|
|