Rules & Points | Recent posts | topic RSS | Search | Register  | Log in

INTERFACING GRAPHIC LCD

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers
Author Message
nitinrakheja



Joined: 15 Sep 2006
Posts: 2


Post15 Sep 2006 12:15   INTERFACING GRAPHIC LCD

I am trying to procure a graphic LCD and interface it with pic18F452 or pic16F877A . Can some one please guide me which LCD should i procure and the way of programming it. I am using "mikroc" . i think it supports only 128x64 GLCD. Please send in help at nitinrakheja(at)yahoo.com
thanx
Back to top
cristianp



Joined: 04 Jul 2006
Posts: 81
Helped: 9
Location: Romania


Post15 Sep 2006 13:20   Re: INTERFACING GRAPHIC LCD

You can use a GSM LCD display.
Some link's with project that use different types of LCD's:
- Nokia 6100 LCD: http://thomaspfeifer.net/
- Nokia 3310 LCD http://www.microsyl.com/

More information could be found at http://forum.lcdinfo.com/index.php

Regards,
Cristian
Back to top
Code Warrior



Joined: 30 Dec 2004
Posts: 215
Helped: 7


Post15 Sep 2006 16:42   INTERFACING GRAPHIC LCD

What is the logic behind graphics LCD. For example 128X64. How to drive this.
Back to top
TechToys



Joined: 16 May 2006
Posts: 151
Helped: 17


Post16 Sep 2006 5:22   Re: INTERFACING GRAPHIC LCD

Have interfaced

1. T6963C LCD with 16F877a. Can be modified for resolution other than 128x64 by changing the MAX_WIDTH and MAX_HEIGHT
2. A color LCD of 128x160. Controller is Samsung S6B33BC. The uP is 18LF4550. The intention is to develop a photo album with SD card.
3. Not related to PIC, but this project is more involved with AT89S52. The LCD is KS0108-based 128x64 LCD.

All source code download at

www.TechToys.com.hk

Because all three LCDs requires 8-bit parallel port, they can be accessed via discrete I/O manner, or memory mapped manner. All examples above make use of discrete I/O manner for easier porting to other uPs. However, the side effect is that, the operation is slower. For faster and more efficient LCD access, memory mapped method should be used.

John
Back to top
jaime



Joined: 15 Jul 2005
Posts: 39
Helped: 2
Location: Porto-Portugal


Post23 Sep 2006 0:40   Re: INTERFACING GRAPHIC LCD

humm..

photo album will be nice...

are you working on it??

Added after 35 minutes:

humm..

photo album will be nice...

are you working on it??
Back to top
TechToys



Joined: 16 May 2006
Posts: 151
Helped: 17


Post23 Sep 2006 7:42   Re: INTERFACING GRAPHIC LCD

Quote:
photo album will be nice...

are you working on it??


Yes, please refer to my web site at www.TechToys.com.hk

Right now, the USB Mass Storage works nice (as it is a Microchip application anyway!). Color LCD also working, in the sense that I could display a picture of 65k color on screen. There remains to write the jpeg decode software for the PIC. Honestly, no idea how to do it yet. Any link or comment would be welcome.

John Leung
Back to top
Darth.Vader



Joined: 03 Jan 2002
Posts: 52
Location: France


Post01 Jun 2007 2:45   Re: INTERFACING GRAPHIC LCD

heya Very Happy

the 2.2" TFT LCD module on PCB with CAT32 LED driver is a interresting toy for 40$ ...
I think i am going to get one or 2 from you Smile

i mail you soon

cya
Back to top
TechToys



Joined: 16 May 2006
Posts: 151
Helped: 17


Post19 Jun 2007 5:58   Re: INTERFACING GRAPHIC LCD

Thank you. and I have just updated the driver the that 2.2" TFT LCD module for PIC18. However, its full power has not been unladhed yet. It should be able for animation display. Still working on it.



John Leung
www.TechToys.com.hk
[img][/img]



Sorry, but you need login in to view this attachment

Back to top
Prabakaran



Joined: 22 Jan 2007
Posts: 127
Helped: 4


Post19 Jun 2007 15:38   INTERFACING GRAPHIC LCD

Hope the Pic Complier have the sample code of Driving the Graphical LCD . Try to that code and share the ideas what the problem ur facing while interfacing.
Back to top
Darth.Vader



Joined: 03 Jan 2002
Posts: 52
Location: France


Post20 Jun 2007 19:57   Re: INTERFACING GRAPHIC LCD

TechToys , you are true when you say for ... animation Wink
I have send you my Rotating 3D cube and a BreakOut Game.
You will see that the display do it very ''Fluid'' Smile
I have to implement some other routines on the SSD1289 driver , but as
you will see , it's ROCK ! Very Happy
What you have to look on programming is that you never go outside the screen
with your Pixels coordinates , or the screen become flashy when he try to write outside the coords .
Another point to know is that you need a routine like Delay_Cycles(1); when your
PIC run at more than 32Mhz. (Only in the LCD_CMD and LCD_Data routines) ,
or the screen will loose data or interpret wrong commands.
but well , with the speed of this TFT i think we can do ALOT fun stuff !!

Cya latter , i have a TFT to play with Wink
Back to top
Darth.Vader



Joined: 03 Jan 2002
Posts: 52
Location: France


Post23 Jun 2007 2:15   Re: INTERFACING GRAPHIC LCD

heya all Smile

I post my SSD1289 driver here.
It's to control the 2.2" color TFT from Techtoys.

@ Techtoys : apparently your mailbox dont allow zipped file , fix it Smile

On this file you will found 2 "CCS C " project.

One is a 3D Cube rotating on the screen .
The other is a Breakout , just one level , programmed in like 30min to show
how the screen work.
The Hex files are for PIC18F4680 , but you can use smaller PIC easy , it take
very low ammount of ROM/RAM (the 3D Cube a little more because the pre calculate sin/cos table).
The SSD1289.c file is the TFT controller driver itself.
So , i think i say you all you need to know.
Other info are on readme.txt Wink

Enjoy !



Sorry, but you need login in to view this attachment

Back to top
Darth.Vader



Joined: 03 Jan 2002
Posts: 52
Location: France


Post24 Jun 2007 18:43   Re: INTERFACING GRAPHIC LCD

Hi Wink

All my bla bla is ok but ... some pics from the result will be better.









I hope you found this litte project interresting for you Smile

Cya.
[/img]
Back to top
godlycean



Joined: 29 Apr 2008
Posts: 1


Post29 Apr 2008 23:12   Re: INTERFACING GRAPHIC LCD

Hello,
I was wondering how you would go about changing the code for the PIC18f452, im still new to PICs and when i start looking at code i get lost. any ideas would be great. Im thinking about using the 24f to better use the display. Thank you
Back to top
Darth.Vader



Joined: 03 Jan 2002
Posts: 52
Location: France


Post30 Apr 2008 18:51   Re: INTERFACING GRAPHIC LCD

Hi,

This driver will work on every Pic.
The only you have to change for other Pic model is the header you include in you main file, i use it for the 18F4680 , if you use the CCS C Compiler then juste make a new project with the project wizard and select your CPU.
Then copy/paste my code to your new project.
Now for use other pins from your cpu to control the screen just change the:
#define glcd_wr PIN_C0
#define glcd_rd PIN_C1
#define glcd_cs PIN_C2
#define glcd_cd PIN_C6
in what you want for your PIC , this some lines are in the drivers file ''SSD1289.c''
For the data port i use the 'D' port , if you have to use another port like the PortB then just replace all :
Output_D(.....); in Output_B(...);
Just as info , last time i was on TechToys page this screen was in grey , probably discontinued for better ones or bigger Wink
If you want to use that screen better than with a 8 bits controller , then look that your controller can adresse a full 16Bits port for send the data to the 16 bits data port from the screen , it can then be 2x faster.
But be carrefull how fast you send the data !! , or you will get glitch or your screen will not work.
Atm , i use the 18F4680 at 40Mhz (10 Mips) and it work like a charm.

Cya Wink
Back to top
Sayem Ahmed



Joined: 07 Apr 2008
Posts: 43
Location: Dhaka,Bangladesh


Post01 May 2008 5:11   Re: INTERFACING GRAPHIC LCD

Good work.

I am starting with PIC18F452.

I have wondered that they have 1500+ byte's of RAM.

They are perfect for interfacing GLCD.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers
Page 1 of 1 All times are GMT + 2 Hours


Abuse
Administrator
Moderators
topic RSS 
sitemap