| Author |
Message |
nitinrakheja
Joined: 15 Sep 2006 Posts: 2
|
15 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
|
|
| Back to top |
|
 |
Code Warrior
Joined: 30 Dec 2004 Posts: 215 Helped: 7
|
15 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
|
16 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
|
23 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
|
23 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
|
01 Jun 2007 2:45 Re: INTERFACING GRAPHIC LCD |
|
|
|
heya
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
i mail you soon
cya
|
|
| Back to top |
|
 |
TechToys
Joined: 16 May 2006 Posts: 151 Helped: 17
|
19 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]
|
|
| Back to top |
|
 |
Prabakaran
Joined: 22 Jan 2007 Posts: 127 Helped: 4
|
19 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
|
20 Jun 2007 19:57 Re: INTERFACING GRAPHIC LCD |
|
|
|
TechToys , you are true when you say for ... animation
I have send you my Rotating 3D cube and a BreakOut Game.
You will see that the display do it very ''Fluid''
I have to implement some other routines on the SSD1289 driver , but as
you will see , it's ROCK !
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
|
|
| Back to top |
|
 |
Darth.Vader
Joined: 03 Jan 2002 Posts: 52 Location: France
|
|
| Back to top |
|
 |
Darth.Vader
Joined: 03 Jan 2002 Posts: 52 Location: France
|
24 Jun 2007 18:43 Re: INTERFACING GRAPHIC LCD |
|
|
|
Hi
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
Cya.
[/img]
|
|
| Back to top |
|
 |
godlycean
Joined: 29 Apr 2008 Posts: 1
|
29 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
|
30 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
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
|
|
| Back to top |
|
 |
Sayem Ahmed
Joined: 07 Apr 2008 Posts: 43 Location: Dhaka,Bangladesh
|
01 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 |
|
 |