You are here

Programming graphil LCD | Cypress Semiconductor

Programming graphil LCD

Summary: 26 Replies, Latest post by pavloven on 16 Feb 2015 02:53 PM PST
Verified Answers: 0
Last post
Log in to post new comments.
Habibi's picture
User
6 posts

Hi Everyone,

                      I am currently using 320*240 graphical Lcd with PSoc 5.I am having problem using the graphical lcd function.If I dont want to use this functions then how can I configure the pins of GLCD in PSoc programming?

 

user_189995688's picture
User
138 posts

 I think we are going to need a bit more information before we can all help you out :-)

First of all, which make/model of GLCD are you using?

How do you have it hooked up?

What problems are you having when trying to use the built in component?

Habibi's picture
User
6 posts

Hi

   I am using GLCD from evolute solutions(GM-G320240B-BTSES W-M-TP) for the home automation project using CYC5588AXI-060ES1.

The problem is I have never used cypress LCD graphics controller and i dont know how to use the functions of the same.

Is it necessary to use the functions of LCD_Intf from the .h file?

Can I use my own functions?Please help me with the same

 

user_189995688's picture
User
138 posts

 Assuming that you have wired up the controller in accordance with the data sheet, then  you should use the functions in the .h file.

If you double click on your LCD component in the schematic editor you'll see a button 'datasheet' - read the datasheet which will give you a full description of every function you will need for working with the GLCD.

 

If you wish to use your own functions, and not the auto generated ones, then don't add the graphic LCD component to your design, just add the appropriate amount of Digital Pins, and write your own routines to drive the pins appropriately.

Some of the pins will be outputs, some will be inputs and some will be bi-directional.

You call also use the 'Find Exampe Project...' link on the start page to load up a sample project which will give an example of how to use the component.

I hope this helps. 

user_49271930's picture
User
493 posts

I also found no examples of use of the GLCD components.
As an example I can offer you to look this project (128x64)):
Interfase Modulo LCD Grafico para el PSoC5       
http://ea4frb.blogspot.com/2010/07/interfase-modulo-lcd-grafico-para-el.html

I used this project to create my components GLSD 128x64:
the library component with an example application:   LCD128X64.cylib    http://mylab.wmsite.ru/ftpgetfile.php?id=79
the option of using DMA     DMA_for_GLCD_128x64.zip :   http://mylab.wmsite.ru/ftpgetfile.php?id=82

I used it in my project:
temperature data logger at the CY8CKIT-014 PSoC®5
http://mylab.wmsite.ru/moi-razrab/cypress-psoc/temperature-logger/
Unfortunately most of the comments are in Russian.
Perhaps this will help you.
good luck, Evgeny

dasg's picture
Cypress Employee
730 posts

Hi Qutub,

 

I haven't interfaced GLCD. Looking at the datasheet of the GLCD (GM-G320240B-BTSES W-M-TP), what I understand is that you can use GraphicLCDIntf Component configured for 8-bit parallel mode.

This LCD is compatible with 8080 processor family. The default setting seems to be 6800. It can be changed to 8080 by minor tweak to the GLCD board. The GraphicLCDIntf component also implements 8080 interface.

 

user_202683688's picture
User
42 posts

Hi pavloven,

I have downloaded your LCD128X64.cylib, changed pins according to my hardware but no matter how I try, LCD doesn't shows anything. After that I have debug code, it seems that program stuck in LCD128x64_TimerWait function, so I have dug in and found that timer in one shot mode does not seems to contains the zero value,

So I have made changes in your library, I have attached my code. Now There is picture, scrolling text and images shown on GLCD.

Please see to this and comment if I have mistaken somewhere.

user_49271930's picture
User
493 posts

Unfortunately LCD128x64.cylib is missing in the project ))))
Perhaps this is due to the transition to psoc_creator.3.0
I still use creator.2.2 for older chips (no LP)
I will be happy to correct the project with your help for psoc_creator.3.0

user_202683688's picture
User
42 posts

Sorry my bad. Unfortunately I just gone to Menu : Build>Clean and Project>Archive Workspace / Project, and generated zip file from that and posted. Now just cleaned from build menu and made zip from windows explorer.

user_202683688's picture
User
42 posts

I also needed to change Chip Select logic to display correctly

 

user_1377889's picture
User
10573 posts

Afaik there is a setting in "Create Workspace Bundle" that will inclue your libraries into the .zip. I didn't try yet but should work.

 

Bob

Log in to post new comments.