Programming graphil LCD

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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?

0 Likes
26 Replies
kemic_264446
Level 4
Level 4
First like received

 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?

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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

0 Likes
kemic_264446
Level 4
Level 4
First like received

 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. 

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

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

0 Likes
Anonymous
Not applicable

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.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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.

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

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

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

I also needed to change Chip Select logic to display correctly

   

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

Indeed, Timer_LCD does not work, but for timer_v_2.50 (PSoC Creator 2.2) function Timer_LCD_ReadCounter () returns 0, so the project works.
  If I use the PSoC Creator 3.0 - function Timer_LCD_ReadCounter () does not return 0, so the function TimerWait () lasts forever.
I remembered that there were other projects with this problem. But I did not understand the reasons - I used CyDelay (xxx) instead of the function TimerWait ().
Thanks for the help! I will add your project to my collection.
 

0 Likes
Anonymous
Not applicable

Hi Bob,

   

Thanks for the suggestion. I have gone to File>Create Workspace Bundle and selected Bundle option, which also included my component in zip file.

   

Pavloven,

   

I am digging over your driver, will post later updates here, which will help others.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi Pavloven,

   

I have tested your GLCD driver (without DMA) for a week now and it seems running smooth. Latest changes is in my last post.

   

Now I am testing your GLCD with DMA, So far:

   

1. I have downloaded from your link

   

2. Changed pin assignments

   

3. Added a RW pin as it required in my HW.

   

4. Changed the component clock input to use a 24MHz bus clock.

   

5. Working fine. "A dog is running on LCD"

   

6. Now I inserted a while(1); after first pic "Dog_1" displayed in for loop of main.c

   

But now it could not print the "Dog_1", which it suppose to print. Herewith including my project. Can you help me to find where is the problem?

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You wrote a semicolon after your while(1) which is an infinite loop. Program stops here.

   

 

   

Bob

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

Hi, DhruvAcharya.
Bob rights as always. If you remove the while (1); all works.
I have a question: Why do you want to use while ()?
And thanks for the modernization project for psoc_creator.3.0.

0 Likes
Anonymous
Not applicable

Hi Bob and Pavloven,

   

My intention was to include previous "text with various fonts" and other "draw shape" functions in this DMA based screen update program. My Plan was:

   

1. Apply all other above mentioned functions to change the internal buffer memory

   

2. Use this DMA based method to update this Internal PSoC buffer to GLCD. (We are doing this in UPDATE ALL function without DMA).

   

I used "while(1);" to check what happen if I update buffer one time.

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

   

Then take a look at this project yet:

   

   

 logger signal recording to SD-card on PSoC®5

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Very interesting project. What do you think achievable sample rates

   

in the analog and digital channels would be if NOT using SDCARD ?

   

 

   

Regards, Dana.

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

   

What will the next bottleneck?

   

ADC(max SPS) data memory, ISRs, etc. - I'm not that good in theory ((

   

By the way, this project is very noisy recording in SD-cart.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

What will the next bottleneck?

   

ADC(max SPS) data memory, ISRs, etc. - I'm not that good in theory

   

 

   

Not really a theory, rather simply looking at each signal stream. Start

   

with need to meet Nyquist on Analog and Digital inputs, and add them

   

up. DMA use very helpful as DMA is an engine working in parallel with

   

CPU (to a significant extent).

   

 

   

By the way, this project is very noisy recording in SD-cart.

   

 

   

Could be that layout and grounding producing analog noise, disable

   

SDCARD use and compare results. Use DSO on infinte persistance,

   

look at all supply rails to get a handle on pk-pk noise. Use Polymer

   

Tants as bulk bypass, they have an order magnitude better Z vs F

   

response.

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi Pavloven,

   

Here is another approach to GLCD with DMA, I wanted a flag to check if screen is updated and automated screen sequence.

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

Thank you, DhruvAcharya.  Now I have more projects than LCDs :))

0 Likes
Anonymous
Not applicable

 hi all i am a student of the university district of Colombia and in my graduation project I am using a psoc 4 need to drive a graphic lcd my question is there any library for psoc 4 ??? because all I've found are for psoc 5, and the truth I do not have much budget thank you very much ..

0 Likes
Anonymous
Not applicable

 hi all i am a student of the university district of Colombia and in my graduation project I am using a psoc 4 need to drive a graphic lcd my question is there any library for psoc 4 ??? because all I've found are for psoc 5, and the truth I do not have much budget thank you very much ..

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Please, if you have a new question, open a new thread. Buried it in here means fewer people will read the question, and even fewer read the answer when they have the same question.

   

Did you ever bother to enter "psoc4 glcd" into google? It return a number of results that will help you. Most of them are from the "100 projects in 100 days" for the PSoC4 page: http://www.element14.com/community/thread/23736/l/100-projects-in-100-days

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

for PSoC4 and  display    2.2" Serial SPI TFT Color LCD Module Display 240X320 w/ PCB Adpater / SD Socket
Project archive:  TFT240_320_SD.zip        It is   here.
or    TFT240x320_ECG_Simulator.zip          It's  here.
If the project is an unused DMA, usually, it is not difficult to convert PSoC4

0 Likes